AI Agent Setup Guide
This guide walks you through setting up an AI Agent for your sender. You can configure agents through the Dashboard UI or programmatically via the API.Via Dashboard
1
Navigate to Agent Settings
Go to Senders in the sidebar, select your sender, and click the Agent tab.
2
Enable the Agent
Toggle the Enable Agent switch to activate automated responses for this sender.
3
Configure LLM Provider
Choose your AI provider and model:
- Provider: Select OpenAI, Anthropic, Google, Mistral, or Zavu (managed)
- Model: Choose from available models (e.g., gpt-4o-mini, claude-3-5-haiku)
- API Key: Enter your provider API key (not needed for Zavu provider)
4
Write System Prompt
The system prompt defines your agent’s personality and behavior. Write clear instructions:
5
Set Trigger Channels
Select which channels should trigger the agent:
- SMS: Text messages
- WhatsApp: WhatsApp messages
You can enable the agent on both channels or just one.
6
Configure Advanced Settings
Adjust these optional settings:
| Setting | Description | Default |
|---|---|---|
| Temperature | Creativity level (0-2) | 0.7 |
| Max Tokens | Maximum response length | 500 |
| Context Window | Previous messages to include | 10 |
7
Save and Test
Click Save to apply your configuration. Send a test message to your sender’s phone number to verify the agent responds correctly.
Via API
Create Agent
Update Agent
Enable/Disable Agent
Get Agent Configuration
Configuration Options
| Option | Type | Description |
|---|---|---|
enabled | boolean | Whether the agent responds to messages |
provider | string | LLM provider: openai, anthropic, google, mistral, zavu |
model | string | Model ID (e.g., gpt-4o-mini, claude-3-5-haiku) |
apiKey | string | Provider API key (not needed for zavu provider) |
systemPrompt | string | Instructions that define the agent’s behavior |
temperature | number | Response creativity (0 = deterministic, 2 = creative) |
maxTokens | number | Maximum tokens in the response |
contextWindowMessages | number | Number of previous messages to include as context |
triggerOnChannels | array | Channels that activate the agent: ["sms", "whatsapp"] |
System Prompt Best Practices
Be Specific
Define exactly what the agent should and shouldn’t do. Include examples of good responses.
Set Boundaries
Specify what topics to avoid and when to escalate to humans.
Match the Channel
For SMS, instruct the agent to keep responses under 160 characters when possible.
Include Context
Mention your company name, products, and common customer questions.
Example System Prompts
Customer Support Agent:Testing Your Agent
After configuring your agent, test it thoroughly:- Send test messages from different phone numbers
- Test edge cases like questions the agent shouldn’t answer
- Verify escalation works correctly
- Check response quality across different topics
- Monitor logs in the Dashboard under Agent > Execution Logs