Skip to main content
An agent is a configured AI caller: its voice, language, opening line, script, the questions it asks and the labels it can give a call. You create and edit agents in the dashboard (CRM → Calling → AI Agents) or, with the agents:manage scope, through the API; each call chooses its agent with agent_id.

Listing agents

Only agents that are turned on and can call out are listed; add ?include_disabled=true to list every agent, including those turned off and inbound-only ones. GET /v1/agents/{id} returns one agent’s whole configuration. Using one that is turned off returns 409 agent_disabled; an inbound-only agent returns 409 agent_inbound_only. If an agent is turned off while calls are waiting for it in the queue, those calls are canceled, not dialled with another voice — whether they came from the API, a workflow, a bulk campaign or the dashboard. API calls whose agent is deleted are canceled too.

Personalising the call

Agent scripts contain placeholders in double braces, such as:
Hi , this is Riya from Shiksha Academy. You enquired about in — is this a good time?
You fill them per call:
  • {{name}} comes from contact.name. When uses_contact_name is true, always send it: an agent that does not know the name greets the person without it.
  • Everything else comes from variables, including {{institute_name}}, {{lead_source}} and {{booked_slot}} when the script uses them. The variables list on each agent shows exactly which keys its script uses.
  • Date and time placeholders ({{day}}, {{today}}, {{date}}, {{time}}, {{datetime}}, {{now}}, {{tomorrow}}, {{year}}, {{month}}) are filled with the current date and time. A variable with one of these names, or named name or lead_name, is accepted but never replaces the built-in value: {{date}} is always today and {{name}} always contact.name. The agent still receives it as information about the contact, and the response carries a warnings entry (reserved_variable) so you can rename it.

Rules for variables

Variables are spoken by the agent, so send them the way a person would say them: "NEET 2027", not "neet_2027_batch_b".
Keep data the agent should not say in metadata instead. It is stored with the call and returned to you, but never shown to the agent.

What agents do differently on API calls

Agents can be set up in the dashboard to send WhatsApp messages or emails, or to book meetings, during or after a call. On API calls they do not offer or send these: the contact belongs to your CRM, not to Telleo’s. When the contact agrees to a meeting, the agreed time comes back in outcome.meeting; book it and send any follow-up from your own systems.

The contact