BotSailor allows businesses to integrate AI-powered assistants into Telegram bots to automate customer conversations, generate leads, answer product questions, and provide customer support. This Telegram AI chatbot solution helps create a smarter Telegram AI bot with advanced Telegram AI automation.
The setup process includes:
Creating AI agents inside BotSailor.
Training each agent using system prompts and knowledge sources.
Creating different agents for different purposes (Lead Qualification, Sales, Support).
Configuring AI routing rules to decide which agent handles specific customer queries.
Testing the Telegram bot to confirm each AI agent responds correctly.
With multiple AI agents, a Telegram bot can work like a complete customer service and sales team.
Prerequisites
Before setting up AI in Telegram with BotSailor, make sure you have:
A BotSailor account.
A connected Telegram bot.
Access to the BotSailor Chatbot Manager.
Business information, product details, FAQs, pricing, and policies ready for AI training.
Knowledge sources such as:
PDF files
Website URLs
Product documents
Google Sheets
API data
What is AI in Telegram with BotSailor and how does a Telegram AI chatbot work?
AI in Telegram with BotSailor allows businesses to turn a normal Telegram bot into an intelligent customer assistant.
Instead of using only fixed chatbot flows, AI agents can understand customer intent and provide dynamic responses based on business information.
For example:
A Lead Qualification Agent can identify potential customers and collect important buying information.
A Sales Agent can recommend products, explain pricing, and guide customers toward purchases.
A Support Agent can answer customer questions about orders, delivery, payments, and policies.
By combining multiple AI agents, businesses can create a complete automated customer journey inside Telegram using Telegram AI automation.
Step-by-Step Instructions: Setting Up AI Agents in Telegram Using BotSailor
Step 1: Open Chatbot Manager and Select Your Telegram Bot
First, log in to your BotSailor account.
From the dashboard:
Go to Chatbot Manager.
Select your connected Telegram bot.
Open the AI section.
Inside the AI section, you will find two main options:
AI Configuration
Agents
Before configuring AI settings, you need to create your AI agents for your Telegram AI bot.
So first, go to the Agents section.
Step 2: Create Your First AI Agent (Lead Qualification Agent)
Click the Create Agent button.
Now configure your first AI agent.
Agent Name
Enter your agent name:
Lead Qualification Agent
Make sure the agent status is set to:
Active
Add Agent Description
The description explains what your AI agent does.
Example description:
Qualifies potential customers by understanding their needs, purchase intent, budget, quantity requirements, and buying timeline before passing qualified leads to the sales team.
A clear description helps you manage multiple AI agents easily.
Add System Prompt
The system prompt is where you train your AI agent with specific instructions.
It defines:
How the agent should behave.
What information it should collect.
How it should respond.
What role it should perform.
For a Lead Qualification Agent, the prompt should explain that the agent needs to:
Identify customer requirements.
Understand buying intent.
Collect budget information.
Ask about quantity requirements.
Understand purchase timelines.
Identify valuable prospects.
Pass qualified leads to the sales team.
Example:
You are a professional Lead Qualification Agent for Halal Snacks. Your responsibility is to identify potential customers, understand their requirements, collect important information, evaluate their purchase intent, and qualify leads before transferring them to the sales team.
Step 3: Add Knowledge Sources for Lead Qualification Agent
After adding the system prompt, move to the Knowledge Sources section.
Here you can train your AI agent using different information sources.
Available options:
Content
URL
File
Media
Google Sheet
API
You can create a knowledge set name such as:
Halal Snacks Company Details
Then add your business information.
Examples:
Company details
Product information
Pricing
Delivery information
FAQ
Policies
You can upload files such as PDFs or documents.
After uploading a file, BotSailor also provides options to:
Generate Raw Response
Generate FAQ
Once everything is added:
Save the knowledge source.
Save the agent.
Your Lead Qualification Agent is now ready.
Step 4: Create Sales Agent
Now create another AI agent for sales conversations.
Go back to:
Agents → Create Agent
Set the agent name:
Sales Agent
Keep the status:
Active
Sales Agent Description
Example:
Helps customers discover suitable products, understand features, pricing, availability, and offers. It recommends products based on customer needs, answers purchase-related questions, and improves the shopping experience.
Sales Agent System Prompt
The Sales Agent should be trained to:
Explain products.
Answer pricing questions.
Recommend suitable products.
Explain features.
Guide customers through buying decisions.
Increase purchase confidence.
Example:
You are a professional Sales Agent for Halal Snacks. Your goal is to help customers choose the right products by providing accurate product information, pricing details, recommendations, and purchase assistance.
Add Knowledge Sources
The process is the same as the Lead Qualification Agent.
You can add:
Product catalogs
Pricing files
Product URLs
FAQs
Google Sheets
API information
Save the agent after completing the setup.
Step 5: Create Support Agent
Create another agent:
Agents → Create Agent
Agent Name:
Support Agent
Status:
Active
Support Agent Description
Example:
Assists customers by answering questions, resolving common issues, and providing accurate information about products, orders, delivery, payments, policies, and general inquiries.
Support Agent System Prompt
The Support Agent should focus on:
Customer questions.
Order support.
Delivery information.
Payment-related queries.
Business policies.
General assistance.
Example:
You are a professional Customer Support Agent. Your responsibility is to provide accurate answers about products, orders, delivery, payments, and policies while helping customers solve their problems quickly.
Add Knowledge Sources
Similar to previous agents, you can add:
Documents
URLs
Product information
FAQ content
Media
Google Sheets
Save the agent.
Now your three AI agents are ready for a complete Telegram AI chatbot workflow:
Lead Qualification Agent
Sales Agent
Support Agent
Step 6: Configure AI Agent Routing
After creating agents, go to:
AI Configuration
First, enable:
AI Agent
Now select your active agents.
For this setup, select:
Lead Qualification Agent
Sales Agent
Support Agent
Step 7: Setup Agent Routing Rules
Agent routing decides which AI agent handles specific customer messages and improves Telegram AI automation.
Create routing rules based on customer intent.
Example:
Sales Agent Routing
Message types:
Product questions
Menu items
Pricing
Offers
Product recommendations
Buying questions
Assign:
Sales Agent
Support Agent Routing
Message types:
Restaurant information
Location
Delivery questions
Payment issues
General support
Assign:
Support Agent
Lead Qualification Agent Routing
Message types:
Wholesale inquiry
Bulk orders
Business partnerships
Catering requests
Large quantity purchases
Assign:
Lead Qualification Agent
Step 8: Configure AI Response Mode
BotSailor provides two AI response options.
AI Agent for All Queries
This allows AI agents to answer every customer message.
The AI decides the correct response based on routing rules.
Use this when:
You want AI to manage complete conversations.
You want flexible customer interaction.
AI as a Fallback Only
This allows existing chatbot flows or keyword automation to answer first.
AI responds only when no matching flow exists.
Use this when:
You already have automation flows.
You want AI only for unanswered questions.
Step 9: Add Business Hours and AI Settings
You can also configure:
Business Hours
Example:
Time Zone: Asia/Dhaka
Business Hours: 9:00 AM – 6:00 PM
AI Reasoning Level
For customer support and sales, keeping reasoning level at:
Low or Medium
is recommended for faster responses.
After completing all settings:
Click:
Save Settings
Step 10: Test Your Telegram AI Bot
Now test your Telegram AI bot.
Example testing flow:
Test Lead Qualification Agent
Customer:
I want to order 50 burgers for my office.
The Lead Qualification Agent collects:
Order quantity
Purpose
Delivery date
Customer information
Test Support Agent
Customer:
Where is your restaurant located?
The Support Agent responds with:
We are located at E-393, Alokar Mor, Rajshahi, Bangladesh.
Test Sales Agent
Customer:
How much is your Chicken Cheese Burger?
The Sales Agent provides:
Our Chicken Cheese Burger is priced at ৳200.
If all three agents respond correctly according to their roles, your Telegram AI setup is successfully completed.
Success Verification Checklist
After setup, verify:
✅ Telegram bot is connected
✅ AI Agent is enabled
✅ Three agents are active
✅ Knowledge sources are added
✅ Routing rules are working
✅ Sales questions go to Sales Agent
✅ Support questions go to Support Agent
✅ Bulk inquiries go to Lead Qualification Agent
✅ Telegram responses are accurate
Troubleshooting Common Issues
AI Agent Is Not Responding
Check:
Is AI Agent enabled?
Is the agent status active?
Are routing rules configured?
Is knowledge source attached?
Wrong Agent Responds
Review:
Agent routing keywords.
Message type descriptions.
Active agent selection.
Make routing descriptions more specific.
AI Gives Incorrect Information
Improve your knowledge sources:
Add updated product files.
Add FAQs.
Add accurate pricing information.
Update system prompts.
AI Does Not Understand Business Questions
Add more training data:
Product catalogs
Website URLs
Customer FAQs
Company documents
Next Steps
After successfully setting up AI agents in Telegram with BotSailor, you can improve your automation further by:
Adding more specialized AI agents.
Connecting APIs for real-time information.
Integrating CRM systems.
Adding order management automation.
Creating advanced customer journeys.
With properly trained AI agents, your Telegram AI bot can work as a complete sales, support, and lead generation assistant powered by Telegram AI automation.


