Create a new phone script for AI-powered calls.
Create a new phone script for AI-powered calls.
Authentication
X-API-Keystring
API Key authentication. Generate your API key in the Gail Portal under General > Integrations > API Keys.
Request
The phone script configuration including objectives and FAQs.
agentName
Gets or sets the agent name.
greeting
Gets or sets the greeting.
goodbye
Gets or sets the goodBye.
faqs
Gets or sets the faq.
name
Gets or sets the Name.
direction
Gets or sets the direction.
useCaseAssociations
Gets or sets the UseCase associations.
voicemail
Gets or sets the voicemail.
voice
Gets or sets the voice.
voiceProvider
giveSurvey
Gets or sets the GiveSurvey indicator.
postCallScripts
Gets or sets the list of post-call script actions to run after call ends.
knowledgeBase
Response
Created
agentName
Gets or sets the agent's name.
greeting
Gets or sets the greeting.
goodbye
Gets or sets the goodBye.
useCaseAssociations
Gets or sets the UseCase associations.
giveSurvey
Gets or sets the GiveSurvey indicator.
faqs
Gets or sets the faq.
postCallScripts
Gets or sets the list of post-call script actions to run after call ends.
voicemail
Gets or sets the voicemail.
voice
Gets or sets the voice.
voiceProvider
knowledgeBase
Errors
400
Bad Request Error