POST
/
v1
/
voice-agents

Authorizations

Authorization
string
headerrequired

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'

Body

application/json
agentName
string
required
greetingMessage
string
default: Hello, how can I help you today?

Greeting Message can be customized by adding params like: {{name}}, to make the message more personal!

preamble
string
default: You are a helpful assistant that will answer users questions.

Preamble can be customized by adding params like: {{agentName}}, to make the prompt more specific and context aware!

lang
enum<string>
default: ar
Available options:
ar,
en
voice
enum<string>
default: ar-msa
Available options:
ar-msa,
en-default,
ar-gulf
pokeMessages
string[]

The messages to say to the user when he doesn't respond!

realTime
boolean
default: false
silenceThreshold
integer
default: 800
interrupt
boolean
default: false
outcome
string

A prompt to take the conversation and transform it to anything you like, like creating an article out of the conversation!

voiceId
string

You can find predefined voices in the voice agents dashboard, under the language tab

tools
object
params
object

Set the params you define in the greeting message or preamble fields here, the key is the same as the param and the value is the param value.

googleCalendarSettings
object

Send it only if the tools.googleCalendar is true.

Response

200 - application/json
error
boolean
data
object