Skip to content
VoiceMint Developers

Workflows during calls

Let an agent run your published workflows mid-conversation and use their result in the same turn.

Workflows are multi-step automations you build in Agents → Workflows (call an API, update a CRM, wait for an approval, notify someone). With the workflow tool, an agent can run them during a call or chat.

Give the agent workflows#

curl -X PATCH https://api.voicemint.io/api/v1/agents/AGENT_ID \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
  -d '{"tools": [{"type": "workflow", "name": "run_workflow", "config": {"workflows": [
        {"workflow_id": "WORKFLOW_ID", "description": "Create a support ticket for a damaged order"}
      ]}}]}'

Up to 10 workflows per agent. Only published (active) workflows of the same account are offered to the agent; drafts and paused ones are left out.

What happens during the call#

  • The agent calls the workflow with the inputs it collected, plus the call's context (call id, channel, caller number, campaign / contact, call variables).
  • A short workflow returns within the same turn and the agent uses its output in its answer.
  • A long one (or one that waits for an approval or a delay) keeps running; the agent says it will follow up, the result is added to the call record and the workflow.completed / workflow.failed webhook carries the call_id.

GET /agents/calls/{id} lists the workflows run during the call. Workflow steps are billed like any workflow run; nothing is added to the call's per-minute price.