Skip to main content
You can use a saved Voice Agent for a call in two ways: call a contact through the API, or trigger an Automation through its webhook.

Call a contact with an agent

  1. Build and configure a Voice Agent.
  2. Create a contact with a name and phone number, or use an existing contact.
  3. Call the contact with its contact_id and the agent’s interview_id.
  4. Receive call events using integration webhooks, or use an Automation with the On Call Completed trigger.
In the existing API, a Voice Agent is called an interview. For example, interview_id identifies the saved Voice Agent used for a contact call. These existing endpoints use the x-api-token header. Supply your workspace’s team_id header where required. Find both in Settings → Developer and keep the token on your server. For example, use a token with contacts:write to create a contact and call it with a saved agent from a Node.js server:
The call endpoint returns 202 Accepted when the request is queued. Use integration webhooks or an Automation to follow its progress.

Trigger an automation

Use an Automation with a webhook trigger when you want your team to manage the workflow in Thoughtly. Your application sends the webhook request; the automation decides what happens next. For a completed call, the On Call Completed trigger can run a workflow for one agent, multiple agents, or all agents. See Automation triggers.

Integration ideas

  • CRM follow-up: create or update a contact when a lead arrives, then start a call with your qualification agent.
  • Appointment reminders: send scheduled appointment details to an automation webhook that starts the reminder workflow.
  • Support callbacks: create or update a contact with the relevant context, then use a saved support agent to call them.
Validate phone numbers in E.164 format, handle API errors and retries, and avoid logging credentials or sensitive call data. See the API reference and webhook guide for details.