Auto-Reply in Telegram: Keyword Matching, AI Agents, and Response Rotation
How to set up auto-replies in Telegram: keyword-based responses, AI agent routing, rotation between accounts, and response quality optimization.
Auto-Reply in Telegram: Keyword Matching, AI Agents, and Response Rotation
Auto-replies in Telegram serve two purposes: responding to inbound interest and initiating outbound conversations. This guide covers how to set up effective auto-reply systems using keywords, AI agents, and account rotation.
Auto-Reply Modes
Mode 1: Keyword Matching
The simplest mode: detect keywords in incoming messages, send predefined responses.
How it works:- Monitor incoming messages for keyword triggers
- Match against predefined keyword-response pairs
- Send the matched response from the same account
- Log the interaction for follow-up
| Keyword | Response |
|---|---|
| "pricing", "цена", "сколько стоит" | "Our pricing starts at $75/month. Want me to send details?" |
| "demo", "показать", "демо" | "Happy to show you! What time works for a 15-min call?" |
| "integration", "интеграция" | "We integrate with AmoCRM, HubSpot, and custom APIs. Which do you use?" |
| "trial", "тест", "попробовать" | "We offer a 3-day free trial. Want me to set it up?" |
Mode 2: AI Agent
Use an LLM to generate contextual responses based on conversation history and your product knowledge.
How it works:- Receive incoming message
- Feed message + conversation history + product context to LLM
- Generate personalized response
- Send response, log for human review
- System prompt: Your company's positioning, product features, pricing
- Conversation context: Full message history
- Guardrails: Never promise discounts, never share internal data
- Escalation: Route to human for complex objections
Mode 3: Rotation
Rotate responses between multiple accounts to distribute load and avoid rate limits.
How it works:- Incoming message arrives
- System selects available account from rotation pool
- Response sent from selected account
- Account marked as "used" for cooldown period
- Next message goes to different account
- Round-robin: Simple cycle through accounts
- Health-based: Prioritize accounts with best delivery rates
- Load-based: Distribute based on current account workload
- Time-based: Rotate every N messages or hours
Setting Up Keyword Auto-Replies
Step 1: Define Keywords
Group keywords by intent:
High-intent (ready to buy):- "pricing", "cost", "how much", "цена", "стоимость"
- "sign up", "register", "demo", "регистрация", "демо"
- "features", "capabilities", "comparison", "функции"
- "integration", "API", "webhook", "интеграция"
- "what is", "how does it work", "что это"
- "case study", "example", "кейс", "пример"
Step 2: Write Responses
Each response should:
- Acknowledge the keyword/context
- Provide the requested information
- Include a clear next step
- Be natural (not robotic)
Bad response: "Our pricing is $75/month. Sign up at our website."
Good response: "Plans start at $75/month for the Starter tier -- that includes analytics, lead management, and 5 campaign slots. Want me to walk through what's included, or would you prefer to start with a free 3-day trial?"
Step 3: Configure Routing
Match keyword categories to response types:
| Keyword Category | Response Type | Follow-up |
|---|---|---|
| Pricing inquiries | Detailed pricing + CTA | Schedule demo call |
| Feature questions | Feature overview + demo offer | Send to sales |
| Support requests | Route to support team | Create ticket |
| General interest | Educational content | Nurture sequence |
AI Agent Configuration
System Prompt Template
You are a sales assistant for [Company], a B2B lead generation platform.
Your role:
- Answer questions about the product accurately
- Qualify leads by asking about their needs
- Book demos for interested prospects
- Never promise discounts without approval
Product knowledge:
- Pricing: Starter $75/mo, Pro $199/mo, Enterprise $499/mo
- Free trial: 3 days, no credit card required
- Integrations: AmoCRM, HubSpot, custom APIs
- Key features: Analytics, leads, campaigns, auto-replies
Rules:
- Keep responses under 100 words
- Always include a next step
- Escalate to human for complex objections
- Never share internal company data
Guardrails
| Rule | Implementation |
|---|---|
| No unauthorized discounts | Check with human before offering |
| No false promises | Stick to documented features |
| No competitor bashing | Focus on your strengths |
| Escalation threshold | 3+ back-and-forth without progress |
Account Rotation for Auto-Replies
Why Rotate
- Rate limiting: One account sending too many auto-replies gets flagged
- Natural appearance: Different accounts responding looks more organic
- Load distribution: Prevents any single account from being overwhelmed
- Redundancy: If one account goes down, others continue
Rotation Configuration
Pool size: 5-20 accounts for auto-reply Cooldown period: 30-60 minutes between uses per account Selection criteria: Account health score, response history, current loadImplementation
Auto-reply queue:
- Message arrives
- Select healthiest available account (health score > 80%)
- Send response
- Mark account as "cooldown" for 30 minutes
- Log: account, message, response, timestamp
- If no healthy accounts available, queue for next available
Measuring Auto-Reply Effectiveness
| Metric | Target | Notes |
|---|---|---|
| Response time | < 30 seconds | For keyword auto-replies |
| Response accuracy | > 90% | Correct keyword matching |
| Conversation continuation | > 40% | Auto-reply leads to conversation |
| Meeting book rate | > 10% | From auto-reply conversations |
| Customer satisfaction | > 4.0/5 | Post-interaction survey |
Common Auto-Reply Mistakes
- Too many keywords: 500 keywords with 500 responses is unmaintainable. Start with 20-30 high-value keywords.
- Robotic responses: "Thank you for your message. Our pricing is..." -- nobody wants to talk to a robot.
- No escalation path: If the auto-reply can't help, there must be a clear path to a human.
- Ignoring context: Auto-reply should consider the conversation history, not just the last message.
- No A/B testing: Test different response versions to optimize conversion.
Conclusion
Auto-replies in Telegram work best as a triage system: handle simple inquiries instantly, route complex ones to humans, and gather data on what prospects ask about most. Start with keyword matching for the top 20 inquiries, add AI for complex conversations, and rotate accounts to maintain deliverability.