AI Agents allow you to automate customer conversations using large language models. When a customer sends a message to your sender, the agent can respond intelligently, answer questions from your knowledge base, and execute actions via webhooks.
Configure your agent with any of these LLM providers:
Provider
Models
Notes
OpenAI
gpt-4o, gpt-4o-mini, gpt-4-turbo
Most popular, great general-purpose
Anthropic
claude-3-5-sonnet, claude-3-5-haiku
Excellent reasoning capabilities
Google
gemini-1.5-pro, gemini-1.5-flash
Cost-effective for high volume
Mistral
mistral-large, mistral-small
European data residency option
Zavu
Managed models
No API key needed, billed to your account
Using the Zavu provider means we handle the LLM API calls for you. Costs are charged directly to your Zavu balance at pass-through rates with no markup.
import Zavudev from "@zavudev/sdk";const zavu = new Zavudev({ apiKey: process.env["ZAVUDEV_API_KEY"],});// Create an agent for your senderconst agent = await zavu.senders.agent.create("sender_abc123", { enabled: true, provider: "openai", model: "gpt-4o-mini", systemPrompt: `You are a helpful customer support agent for Acme Corp.Be friendly and concise. If you don't know the answer, say so.For billing questions, ask the customer to email billing@acme.com.`, temperature: 0.7, contextWindowMessages: 10, triggerOnChannels: ["sms", "whatsapp"],});console.log("Agent created:", agent.id);
import osfrom zavudev import Zavudevzavu = Zavudev( api_key=os.environ.get("ZAVUDEV_API_KEY"),)# Create an agent for your senderagent = zavu.senders.agent.create( "sender_abc123", enabled=True, provider="openai", model="gpt-4o-mini", system_prompt="""You are a helpful customer support agent for Acme Corp.Be friendly and concise. If you don't know the answer, say so.For billing questions, ask the customer to email billing@acme.com.""", temperature=0.7, context_window_messages=10, trigger_on_channels=["sms", "whatsapp"],)print(f"Agent created: {agent.id}")
require "zavudev"client = Zavudev::Client.new(api_key: ENV["ZAVUDEV_API_KEY"])agent = client.senders.agent.create("sender_abc123", enabled: true, provider: "openai", model: "gpt-4o-mini", system_prompt: "You are a helpful customer support agent for Acme Corp.\nBe friendly and concise. If you don't know the answer, say so.\nFor billing questions, ask the customer to email billing@acme.com.", temperature: 0.7, context_window_messages: 10, trigger_on_channels: ["sms", "whatsapp"])puts "Agent created: #{agent.id}"
package mainimport ( "context" "fmt" "os" "github.com/zavudev/sdk-go")func main() { client := zavudev.NewClient(zavudev.WithAPIKey(os.Getenv("ZAVUDEV_API_KEY"))) agent, _ := client.Senders.Agent.Create(context.TODO(), "sender_abc123", zavudev.AgentCreateParams{ Enabled: zavudev.Bool(true), Provider: zavudev.String("openai"), Model: zavudev.String("gpt-4o-mini"), SystemPrompt: zavudev.String("You are a helpful customer support agent for Acme Corp.\nBe friendly and concise. If you don't know the answer, say so.\nFor billing questions, ask the customer to email billing@acme.com."), Temperature: zavudev.Float(0.7), ContextWindowMessages: zavudev.Int(10), TriggerOnChannels: []string{"sms", "whatsapp"}, }) fmt.Printf("Agent created: %s\n", agent.ID)}
$client = new Zavudev\Client(apiKey: getenv('ZAVUDEV_API_KEY'));$agent = $client->senders->agent->create('sender_abc123', [ 'enabled' => true, 'provider' => 'openai', 'model' => 'gpt-4o-mini', 'systemPrompt' => "You are a helpful customer support agent for Acme Corp.\nBe friendly and concise. If you don't know the answer, say so.\nFor billing questions, ask the customer to email billing@acme.com.", 'temperature' => 0.7, 'contextWindowMessages' => 10, 'triggerOnChannels' => ['sms', 'whatsapp'],]);echo "Agent created: {$agent->id}\n";
curl -X POST https://api.zavu.dev/v1/senders/sender_abc123/agent \ -H "Authorization: Bearer $ZAVU_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "provider": "openai", "model": "gpt-4o-mini", "systemPrompt": "You are a helpful customer support agent for Acme Corp.\nBe friendly and concise. If you dont know the answer, say so.\nFor billing questions, ask the customer to email billing@acme.com.", "temperature": 0.7, "contextWindowMessages": 10, "triggerOnChannels": ["sms", "whatsapp"] }'