AI Agents
Deploy intelligent AI chatbots powered by Google Gemini for 24/7 automated customer support.
Overview
Powered by Gemini
Advanced AI understanding
Natural Conversations
Human-like responses
Smart Handoff
Escalate when needed
Analytics
Track performance
Agent Types & Prompts
Handle FAQs, troubleshooting, and general inquiries
System Prompt Template
You are a helpful customer support agent for [Company Name].
Business Information:
- Hours: 10 AM - 7 PM IST, Monday to Saturday
- Return Policy: 7 days from delivery
- Website: www.example.com
Your Role:
- Answer common questions about products and services
- Help with order tracking and status updates
- Guide customers through troubleshooting steps
- Escalate complex issues to human agents
Rules:
- Be friendly, professional, and patient
- If unsure, admit it and offer to connect with a human
- Never make promises you can't keep
- Always confirm customer satisfaction before closingHuman Handoff
Configure when the agent should transfer conversations to human agents:
| Trigger | Description |
|---|---|
| Confidence < 60% | AI is unsure about the response |
| Keywords detected | "speak to human", "manager", "complaint" |
| 3+ failed attempts | Customer repeats same question |
| Payment issues | Refunds, payment failures |
| Explicit request | Customer asks for human support |
API Integration
create-agent.js
// Create an AI Agent via API
const response = await fetch('https://api.aerostic.com/v1/ai-agents', {
method: 'POST',
headers: {
'Authorization': 'Bearer ak_live_xxxxx',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Support Bot',
type: 'support',
isActive: true,
systemPrompt: 'You are a helpful support agent...',
handoffRules: {
keywords: ['manager', 'complaint', 'refund'],
confidenceThreshold: 0.6,
maxFailedAttempts: 3
},
knowledgeBase: ['FAQ document', 'Product catalog']
})
});
const agent = await response.json();
console.log('Agent created:', agent.id);Analytics & Metrics
Total Conversations
Number of chats handled by the agent
Resolution Rate
Percentage resolved without human handoff
Avg Response Time
Time to first response (typically <2s)
Customer Satisfaction
Based on post-chat feedback
Handoff Rate
Percentage transferred to humans
Intent Recognition
Accuracy of understanding queries