Create AI agent
Creates an AI Agent
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Authentication
Request
A key-value object for storing data that persists throughout the AI session. Can be set initially in the SWML script or modified during the conversation using the set_global_data action. The global_data object is accessible everywhere in the AI session: prompts, AI parameters, and SWML returned from SWAIG functions. Access properties using template strings (e.g. ${global_data.property_name}).
An array of JSON objects defining supported languages in the conversation.
Mutually exclusive with multilingual: if both are set, multilingual is used and
this array is ignored.
Configures a single agent to detect the caller’s language and answer in it, switching
as the caller switches. Use this instead of languages when one conversation may span
several languages. Mutually exclusive with languages: if both are set, multilingual
is used and languages is ignored.
A JSON object containing parameters as key-value pairs.
The URL to which to send status callbacks and reports. Authentication can also be set in the url in the format of username:password@url.
An array of JSON objects to create user-defined functions/endpoints that can be executed during the dialogue.