Skip to main content
An agent decides what is said on the call. In the API it is called scriptId.

Find the ID

Open the agent in the dashboard. The number in the URL is the ID:
Test the agent from the dashboard before using it in the API.

Variables

If the agent’s script contains {brand_name} or {{brand_name}}, every call must send a value for it. Send it as a normal field in the body:
Missing one returns 400:

Built-in variables

These variables fill from the normal call fields. You do not need to send them twice. Any other variable (like brand_name) is sent with its own name. brand_name and brandName both work.
Agents set to inbound only cannot place calls. You get 400 if you use one.