Customer Support Bot
Build an AI-powered customer support bot for Telegram in under 5 minutes using Aerostack’s bot platform.
What You’ll Build
Section titled “What You’ll Build”A bot that:
- Answers customer questions using your documentation (via MCP tools)
- Creates support tickets when it can’t resolve an issue
- Hands off to a human agent for complex cases
- Tracks resolution rates and response times
Prerequisites
Section titled “Prerequisites”- An Aerostack account (sign up free)
- A Telegram bot token (from @BotFather)
Step 1: Use the Template
Section titled “Step 1: Use the Template”- Go to Dashboard → Bots → New Bot
- Select the Customer Support template
- The template pre-configures:
- A system prompt optimized for support conversations
- Suggested MCP servers for knowledge base search
- A workflow with escalation logic
Step 2: Configure Your Bot
Section titled “Step 2: Configure Your Bot”{ "name": "Support Bot", "platform": "telegram", "platform_config": { "bot_token": "YOUR_TELEGRAM_BOT_TOKEN", "webhook_secret": "a-random-secret-string" }}Step 3: Add Your Knowledge Base
Section titled “Step 3: Add Your Knowledge Base”Add MCP servers to your workspace that give the bot access to your docs:
- Knowledge Base MCP — Upload your FAQ, docs, or help articles
- Ticket System MCP — Connect to your ticketing system (Jira, Linear, etc.)
Step 4: Activate
Section titled “Step 4: Activate”Click Activate in the dashboard. The bot registers its webhook with Telegram and starts accepting messages.
Step 5: Test
Section titled “Step 5: Test”Send a message to your bot on Telegram:
User: How do I reset my password?Bot: To reset your password, go to Settings → Security → Reset Password. You'll receive a verification code at your registered email. Need more help? I can create a support ticket for you.How It Works
Section titled “How It Works”User Message (Telegram) → Aerostack webhook receives message → Bot engine loads conversation history → LLM analyzes message + available tools → If tool needed: calls MCP workspace (search docs, create ticket) → LLM generates response with tool results → Response sent back to TelegramCustomizing the Workflow
Section titled “Customizing the Workflow”The template includes a visual workflow you can customize:
- Trigger → Message received
- LLM Call → Classify intent (question / complaint / feature request)
- Logic Node → Route based on intent
- MCP Tool → Search knowledge base
- Send Message → Reply with answer
- Action → If unresolved, create ticket + escalate
See the Workflow Builder guide for more details.
- Free tier: ~100 conversations/month using the prepaid wallet
- BYOK mode: Bring your own OpenAI/Anthropic key for zero platform cost
- Typical cost: ~$0.01-0.05 per conversation (varies by LLM model)
Next Steps
Section titled “Next Steps”- Add more platforms (Discord, Slack, WhatsApp)
- Create custom templates
- Build complex workflows