agents:manage scope, through the API; each call chooses its agent with agent_id.
Listing agents
?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 fromcontact.name. Whenuses_contact_nameistrue, 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. Thevariableslist 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 namednameorlead_name, is accepted but never replaces the built-in value:{{date}}is always today and{{name}}alwayscontact.name. The agent still receives it as information about the contact, and the response carries awarningsentry (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".
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 inoutcome.meeting; book it and send any follow-up from your own systems.