Call a contact with an agent
- Build and configure a Voice Agent.
- Create a contact with a name and phone number, or use an existing contact.
- Call the contact with its
contact_idand the agent’sinterview_id. - Receive call events using integration webhooks, or use an Automation with the On Call Completed trigger.
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:
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.