Chat with us
Knowledgebase/Automation/Article

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

  • 17 Sep 2026
  • 6 min read
  • 0 views
TL;DR:
Create a Telegram keyword bot with BotSailor by connecting your bot, enabling Keyword Replies, configuring trigger words, adding automated messages, saving the flow, and testing the response in Telegram. Keyword-based automation helps businesses instantly reply to customers, share information, and manage conversations without manual support. 

What Are Keyword Replies?

Keyword replies are automated chatbot responses that are sent when a customer types a predefined word or phrase. They help businesses answer common questions instantly, welcome new users, share product details, and guide conversations without manual assistance. In BotSailor, each keyword can activate a visual chatbot flow containing text, images, buttons, or other actions. This makes customer communication faster, more consistent, and available even when no human agent is online.

In this guide, we will create a simple keyword reply for a Telegram bot named Semibot . When a customer types a configured keyword such as “hi,” the bot will automatically send a welcome message.

Trigger keyword → Start Bot Flow → Automated text reply

Step 1: Open the BotSailor Dashboard

Log in to your BotSailor account and open the main dashboard. From the left-side navigation menu, go to Chatbot Manager .
This section allows you to view, select, and manage the messaging bots connected to your BotSailor account.

Step 2: Select Your Connected Bot

Inside the Chatbot Manager, you will see your connected bots and accounts. Select the bot for which you want to create the keyword reply.

For this example, select the previously created Telegram bot named Semibot .

After selecting the bot, its available management options will appear on the right side of the dashboard.


BotSailor Chatbot Manager showing the Semibot account selection and automation section for creating Telegram keyword replies
Selecting the Semibot account from the BotSailor Chatbot Manager before creating a keyword reply automation.


Step 3: Open the Automation Section

Click the Automation tab from the top menu of the selected bot.

Select Keyword Replies . This is where you can create and manage automated responses triggered by specific customer messages.

BotSailor uses keyword-triggered replies to start predefined chatbot flows when a subscriber sends a matching word or phrase.




BotSailor Keyword Replies page with the Create button used to open a new chatbot flow builder
Clicking the Create button in BotSailor to start a new keyword reply flow.




Step 4: Create a New Keyword Reply

On the Keyword Replies page, click the purple + Create button located on the right side of the screen.

BotSailor will then open the visual Flow Builder, where you can configure the trigger and design the automated conversation.




BotSailor Keyword Replies page with the Create button used to open a new chatbot flow builder
Clicking the Create button in BotSailor to start a new keyword reply flow.



Step 5: Configure the Start Bot Flow

The new Flow Builder will initially display a Start Bot Flow block. Click or double-click this block to open the Configure Reference panel.

Complete the following settings:

Trigger Keywords

Enter the words that customers may use to activate the reply. For example:

hello, hi, start

These keywords tell BotSailor when it should begin the automated flow.

Keyword Matching Type

Choose one of the available matching options:

Exact keyword match: The bot activates when the customer’s message matches one of the configured keywords.

String match: The bot may activate when the keyword appears within a longer customer message.

For this example, select Exact keyword match .

Title

Enter a clear internal title for the flow, such as:

Sanos Ice Cream Shop

The title helps you identify and manage the flow from your Keyword Replies list. BotSailor’s official guidance similarly recommends configuring the trigger keyword, matching type, and bot title from the Start Bot Flow block.

Click Save Changes after completing the configuration.




BotSailor Flow Builder showing the Configure Reference panel with trigger keywords, exact keyword match settings, flow title field, and Save Changes button.
Configuring trigger keywords and matching settings in the BotSailor Flow Builder to create an automated keyword reply workflow.



Step 6: Add a Text Message

After saving the Start Bot Flow settings, click the connector beside Compose Next Message .

A menu containing the available Flow Builder components will appear. These may include Text, Image, Video, Audio, File, AI Reply, User Input Flow, HTTP API, Condition, and other options.

Select Text to create a simple automated reply.

BotSailor’s visual Flow Builder allows different message components to be connected without writing code.



BotSailor Flow Builder showing the completed connection between Start Bot Flow and automated text reply blocks
Reviewing and saving the completed keyword reply workflow in BotSailor.




Step 7: Write the Customer Reply Message

Click the newly added Text block. The Configure Text Message panel will open on the left side.
Enter the message that customers should receive after using one of the trigger keywords. For example:
Hi! 👋 Welcome to our ice cream shop. 🍦 How can I help you today? Would you like to see our available flavours and prices?
You may also use available customer variables, such as first name or last name, to personalize the reply.
Make sure the message is:
  • Friendly and easy to understand
  • Relevant to the customer’s keyword
  • Short enough to read quickly
  • Clear about what the customer should do next
Click Save Changes after writing the message.



Telegram chat screen displaying the successful keyword-triggered automated reply from the Semibot account
Testing the Telegram keyword reply and confirming that the automated message is delivered successfully.


Step 8: Save the Complete Bot Flow

Review the connection between the Start Bot Flow block and the Text block.

The flow should follow this structure:

Trigger keyword → Start Bot Flow → Automated text reply

When everything is configured correctly, click the main Save button in the upper-right corner of the Flow Builder.

This final save is important because it stores the complete keyword reply flow in your BotSailor account.




BotSailor Flow Builder menu displaying available message components including Text, Image, Video, and AI Reply options
Saving the completed keyword reply flow from the upper-right corner.


Step 9: Test the Keyword Reply in Telegram

After saving the flow, open Telegram and search for your connected bot. In this example, the bot is named Semibot .
Open the conversation and, if necessary, press Start or send:
/start
Next, send one of the trigger keywords configured in the Flow Builder. For example:
hi
The bot should immediately return the automated reply:
Hi! 👋 Welcome to our ice cream shop. 🍦 How can I help you today? Would you like to see our available flavours and prices?
BotSailor recommends testing with the assigned trigger word and checking that it matches the keyword configured in the bot flow.




BotSailor chatbot Flow Builder showing an automated welcome message configuration with connected text block
The final keyword-triggered reply displayed successfully in Telegram.



Final Result

You have successfully created a keyword reply in the BotSailor Flow Builder. Whenever a customer sends one of the configured trigger keywords, Semibot will automatically deliver the prepared response.

You can follow the same process to create separate replies for keywords such as:

  • Price
  • Menu
  • Order
  • Delivery
  • Location
  • Support

Use a unique trigger and a relevant response for each flow to prevent multiple automations from responding to the same customer message.


Relevant Link: How to Connect Telegram to BotSailor: A Complete Step-by-Step Guide


Sanoary Rahaman Istiaque

Sanoary Rahaman Istiaque

FAQ

Frequently Asked Questions

Find answers to common questions about this topic

A keyword reply is an automated message sent when a user types a predefined word or phrase, such as “Hi,” “Price,” or “Support.”

Go to Chatbot Manager, select your bot, open the Automation section, choose Keyword Replies, and click the + Create button.

Exact Keyword Match triggers the reply only when the message matches the configured keyword. String Match can trigger the reply when the keyword appears within a longer message.

Yes. You can add multiple trigger keywords, such as “hello,” “hi,” and “start,” to activate the same automated reply.

Open Telegram, find your connected bot, and send one of the configured trigger keywords. The bot should immediately send the reply message created in the Flow Builder.

Related Articles