auto-repliesTelegramautomationAI

Auto-Reply in Telegram: Keyword Matching, AI Agents, and Response Rotation

6 min read

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:
  1. Monitor incoming messages for keyword triggers
  2. Match against predefined keyword-response pairs
  3. Send the matched response from the same account
  4. Log the interaction for follow-up
Example keyword-response pairs:
KeywordResponse
"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?"
Best for: High-volume inbound, simple qualification, lead routing

Mode 2: AI Agent

Use an LLM to generate contextual responses based on conversation history and your product knowledge.

How it works:
  1. Receive incoming message
  2. Feed message + conversation history + product context to LLM
  3. Generate personalized response
  4. Send response, log for human review
AI agent configuration:
  • 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
Best for: Complex conversations, personalized responses, after-hours coverage

Mode 3: Rotation

Rotate responses between multiple accounts to distribute load and avoid rate limits.

How it works:
  1. Incoming message arrives
  2. System selects available account from rotation pool
  3. Response sent from selected account
  4. Account marked as "used" for cooldown period
  5. Next message goes to different account
Rotation strategies:
  • 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", "регистрация", "демо"
Medium-intent (evaluating):
  • "features", "capabilities", "comparison", "функции"
  • "integration", "API", "webhook", "интеграция"
Low-intent (researching):
  • "what is", "how does it work", "что это"
  • "case study", "example", "кейс", "пример"

Step 2: Write Responses

Each response should:

  1. Acknowledge the keyword/context

  2. Provide the requested information

  3. Include a clear next step

  4. 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 CategoryResponse TypeFollow-up
Pricing inquiriesDetailed pricing + CTASchedule demo call
Feature questionsFeature overview + demo offerSend to sales
Support requestsRoute to support teamCreate ticket
General interestEducational contentNurture 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

RuleImplementation
No unauthorized discountsCheck with human before offering
No false promisesStick to documented features
No competitor bashingFocus on your strengths
Escalation threshold3+ 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 load

Implementation

Auto-reply queue:
  1. Message arrives
  2. Select healthiest available account (health score > 80%)
  3. Send response
  4. Mark account as "cooldown" for 30 minutes
  5. Log: account, message, response, timestamp
  6. If no healthy accounts available, queue for next available

Measuring Auto-Reply Effectiveness

MetricTargetNotes
Response time< 30 secondsFor 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/5Post-interaction survey

Common Auto-Reply Mistakes

  1. Too many keywords: 500 keywords with 500 responses is unmaintainable. Start with 20-30 high-value keywords.
  2. Robotic responses: "Thank you for your message. Our pricing is..." -- nobody wants to talk to a robot.
  3. No escalation path: If the auto-reply can't help, there must be a clear path to a human.
  4. Ignoring context: Auto-reply should consider the conversation history, not just the last message.
  5. 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.