Ask AI
English EN
Go to Watbot

Quick start

In ten minutes you will build a chatbot that greets people, shows a button and replies to it, test it right in your account and connect it to Telegram.

Note

You can build and test a bot without a subscription. You will need a Pro subscription at the last step — to connect a messenger. See What is available without Pro for details.

1. Create a chatbot

  1. In your project, open the "Chatbots" section and click "Create".
  2. Enter a name. It helps you tell the bot apart in your account.
  3. Choose the language the bot will speak.
  4. If the form has a "Template" field, leave "Blank bot" selected.
  5. Click "Create".

Above the form is the "Build a bot with AI" block. In this guide the bot is built by hand; to build one from a description in the AI chat, see the Building a bot in the AI chat page.

Bot creation form: the "Build a bot with AI" block, name and languageBot creation form: the "Build a bot with AI" block, name and language

2. Get to know the scheme

After the bot is created, its scheme opens with the "Which messenger to connect to the chatbot?" window on top. Click "I'll connect later": we will get back to the messenger at the last step.

Messenger selection window with the "I'll connect later" buttonMessenger selection window with the "I'll connect later" button

A bot scenario is a set of blocks connected by arrows. A new bot has three of them:

  • "Start" — the conversation begins here when a person starts the bot.
  • "Request" — passes you a request from a new contact: a record in the built-in CRM and, if you turn it on, an email or a Telegram message. You can leave it as is for now.
  • "Message chain" — sends messages and shows buttons.
Scheme of a new bot: "Start", "Request" and "Message chain" blocksScheme of a new bot: "Start", "Request" and "Message chain" blocks

The rows inside a block are its outputs. You can draw an arrow from each of them to the next block:

  • a row with a button name fires when the person presses that button;
  • "Any other phrase" fires when the person types something of their own;
  • "Continue" makes the bot move on right away, without waiting for a reply.

3. Write a greeting

  1. Click the "Message chain" block. The "Block settings" panel opens on the right.
  2. Type a greeting in the message field.
Block settings: the field with the greeting textBlock settings: the field with the greeting text
  1. Below, in the "Menu" section, replace "Hello" with "What can you do?". This is the button the bot will show under the message.
The "Menu" section with the "What can you do?" buttonThe "Menu" section with the "What can you do?" button

There is no save button: changes are saved as soon as you leave the field, and "Saved" appears at the top of the panel.

Tip

The buttons under the message field ("Name", "Phone" and others) insert the contact's data into the text. See Templates for details.

4. Add a reply to the button

  1. Close the block settings.
  2. Hover over the circle to the right of the "What can you do?" row, hold the mouse button and drag an arrow to an empty spot on the scheme.
  3. Choose "Message chain" in the list that appears.
An arrow from the "What can you do?" button and the list of blocksAn arrow from the "What can you do?" button and the list of blocks
  1. Click the new block, click "Text" in its settings and type the bot's reply.

The scheme now has four blocks, and an arrow leads from the button to the reply:

Finished scheme: an arrow leads from the "What can you do?" button to the new blockFinished scheme: an arrow leads from the "What can you do?" button to the new block

5. Test the bot

Click "Test the bot" on the top toolbar. A chat opens on the right: the bot sends the greeting with the button. Press it — the bot replies with the text from the new block.

The "Bot test" window: greeting, pressed button and replyThe "Bot test" window: greeting, pressed button and reply

The conversation in the test window stays out of contacts, analytics and CRM, so you can test as much as you like. The circular arrow in the window header starts the conversation over.

6. Connect Telegram

  1. In Telegram, open @BotFather and send the /newbot command. Pick a name and a username for the bot — the username must end in bot. BotFather will reply with a token.
  2. On the top toolbar of the scheme, click "Connect messenger" and choose Telegram.
  3. Paste the token into the "API token" field and click "Save".
Telegram connection window with the token fieldTelegram connection window with the token field
  1. Open your bot in Telegram and press "Start" — the bot will send the greeting.

Warning

The token is the key to your bot: anyone who has it can send messages on its behalf. Do not publish the token or share it with strangers.

What's next

  • Connect other messengers and a website chat — see Connecting channels. More about Telegram is on its page.
  • Add more blocks the same way as in step 4, or with the "Add a block" button on the top toolbar. What each block does is described in the Blocks section.
  • Address people by name and insert their answers into messages — see Templates.
  • Everything else about scenarios and blocks is in the Chatbots section.