Skip to main content

Agents

Agents are AI-powered assistants that handle conversations on your behalf. Each agent has a unique personality, voice, and set of instructions.

Agent Types

TypeDescription
Inbound VoiceHandles incoming phone calls
Outbound VoiceMakes outgoing phone calls
ChatText-based chat conversations
WidgetEmbeddable web widget for your website

What is an Agent?

An agent combines:
  • System Prompt - Instructions defining the agent’s behavior and goals
  • Voice Configuration - The text-to-speech settings (for voice agents)
  • Language - The language the agent speaks
  • Variables - Dynamic data injected into conversations

Agent Properties

PropertyTypeDescription
idstringUnique identifier (UUID)
namestringDisplay name for the agent
agentTypestringType of agent (Inbound Voice, Outbound Voice, Chat, Widget)
promptstringSystem prompt with instructions for the AI
voiceIdstringVoice provider ID for text-to-speech
isActivebooleanWhether the agent is active and can receive calls
backgroundSoundbooleanEnable background sound during calls
openingLinestringFirst message the agent speaks when a call starts
languagestringAgent language (english, spanish, french, etc.)
voicemailbooleanEnable voicemail detection (outbound only)
voicemailMessagestringMessage to leave when voicemail is detected
hipaaCompliancebooleanHIPAA mode - disables logs, recordings, transcriptions
callDurationintegerMaximum call duration in minutes (1-60)
speednumberVoice speed multiplier (0.5-1.5)
createdAtstringWhen the agent was created
updatedAtstringWhen the agent was last modified

Writing Effective System Prompts

A good system prompt clearly defines the agent’s role, goals, and boundaries.

Example: Appointment Reminder Agent

You are a friendly appointment reminder assistant for Acme Dental.

Your goal is to:
1. Confirm the customer's upcoming appointment
2. Offer to reschedule if needed
3. Answer basic questions about the appointment

Guidelines:
- Be warm and professional
- Keep calls under 2 minutes
- If asked about pricing or medical questions, offer to transfer to staff

Customer: {{customerName}}
Appointment: {{appointmentDate}} at {{appointmentTime}}

API Operations