Chat with us
Up to 60% OFF with Recurring Discounts on Premium Upgrades & Whitelabel FlexUp to 60% OFF on Premium Upgrade & Whitelabel00:00:00:00Claim
Knowledgebase/Automation/Article

How to Set Up AI Agents in Telegram Using BotSailor (Complete Step-by-Step Guide)

  • 27 Sep 2026
  • 9 min read
  • 0 views
TL;DR:
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.

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.


 BotSailor Chatbot Manager interface showing the selected Telegram bot and AI section where users can access the Agents tab to create AI assistants.
Open the Agents section inside BotSailor AI settings to start creating and managing custom AI agents for your Telegram chatbot.

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.


 BotSailor AI Agent setup screen showing agent configuration fields, including agent name, description, system prompt, and knowledge source settings.
Configure the Lead Qualification Agent by adding an agent name, description, system instructions, and business knowledge sources to train the AI assistant.


 BotSailor AI Agent setup screen showing agent configuration fields, including agent name, description, system prompt, and knowledge source settings.
Configure the Lead Qualification Agent by adding an agent name, description, system instructions, and business knowledge sources to train the AI assistant.


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.


 BotSailor Knowledge Sources configuration panel showing options to add content, URLs, files, media, Google Sheets, and API data for AI training.
Add business information to your AI agent using multiple knowledge sources such as documents, URLs, product files, FAQs, Google Sheets, and APIs.


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.


 BotSailor Sales Agent editing screen displaying agent name, description, system prompt, and connected knowledge sources.
Create a Sales Agent by defining its role, product assistance responsibilities, and connecting relevant knowledge sources for accurate customer responses.


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.


 BotSailor Support Agent configuration page showing support instructions, system prompt, and available knowledge source options.
Set up a Support Agent to answer customer questions about products, orders, delivery, payments, policies, and general assistance.


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


 BotSailor AI Configuration dashboard showing active AI agents, agent routing rules, response mode settings, and AI assistant overview.
Configure AI routing rules to assign customer messages to the correct agent, such as Sales Agent, Support Agent, or Lead Qualification 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.


 BotSailor AI Response Mode settings showing options for AI Agent for All Queries and AI as a Fallback Only.
Choose how BotSailor AI handles conversations by enabling AI responses for all queries or using AI only when existing chatbot flows cannot answer.

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


 Telegram chatbot conversation showing a Lead Qualification Agent collecting customer order details, quantity, delivery information, and contact requirements.
Test the Lead Qualification Agent in Telegram by sending a bulk order request and verifying that the AI collects important 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.

 Telegram AI chatbot conversation showing Support Agent answering a restaurant location query and Sales Agent responding to a product pricing question.
Verify that different AI agents respond according to their assigned roles, with Support handling information requests and Sales handling product questions.


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.


 Telegram chatbot test screenshot showing AI responding to burger pricing and bulk order questions during setup verification.
Complete the AI agent verification process by testing product inquiries and confirming that the chatbot provides accurate sales responses.


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.


Sanoary Rahaman Istiaque

Sanoary Rahaman Istiaque

FAQ

Frequently Asked Questions

Find answers to common questions about this topic

AI Agent in BotSailor is an intelligent assistant that helps Telegram bots understand customer messages and respond based on trained business information.

Yes. You can create multiple AI agents for different purposes, such as sales, customer support, lead qualification, and other business tasks.

A system prompt defines the role, behavior, and instructions of an AI agent. It helps train the agent to handle specific types of conversations.

You can add:
Text content
Website URLs
PDF files
Images/media
Google Sheets
APIs

Yes. BotSailor allows businesses to connect Telegram bots with AI agents for automated customer conversations.

Related Articles

Knowledgebase

How to Create a Keyword Based Bot in Telegram: Step-by-Step Guide

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 22 Sep 2026
Knowledgebase

How to Send Sequence Messages on Telegram Using BotSailor

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 22 Sep 2026
Knowledgebase

How to Set Up a Get Started Message in Telegram: Step-by-Step Guide

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 22 Sep 2026
Knowledgebase

How to Collect Customer Email Addresses on Telegram Using BotSailor

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 24 Sep 2026
Knowledgebase

How to Create a Location Reply Button for a Telegram Bot in BotSailor

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 24 Sep 2026
Knowledgebase

How to Create a Birthday Reply Button for a Telegram Bot in BotSailor

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 24 Sep 2026
Knowledgebase

How to Configure Webchat and Connect It to Your WordPress Website

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 28 Sep 2026
Knowledgebase

How to Configure Webchat and Connect It to Your WordPress Website Chat

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 28 Sep 2026