Skip to main content

Quick Start: Build Your First Bot

Let's create a simple bot that greets users when they send /hello. This will take about 5 minutes.


What We're Building

When a user sends /hello to your bot, it will reply with a personalized greeting:


Prerequisites

Before you begin, you'll need:

  • A Telegram Bot Token (see next step if you don't have one)
  • Access to the BotGami app

Step 1: Get Your Bot Token

If you already have a Telegram bot token, skip to Step 2.

Getting a Token from @BotFather
  1. Open Telegram and search for @BotFather
  2. Send /newbot
  3. Follow the prompts to name your bot
  4. Copy the token — it looks like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

Step 2: Create a New Bot in BotGami

  1. Open BotGami
  2. Click "New Bot" or "+ Create Bot"
  3. Give your bot a name (e.g., "My Greeting Bot")
  4. Paste your Telegram Bot Token
  5. Click Create

You'll now see the visual editor — a blank canvas where you'll build your bot.


Step 3: Add a Command Trigger

Every bot needs to know when to respond. We'll use a Command Trigger to listen for /hello.

  1. In the sidebar, find "Command Trigger" under Triggers
  2. Drag it onto the canvas
  3. Click on the node to open its settings
  4. In the Command field, type: /hello

Your canvas should now have one node that says "Command: /hello".


Step 4: Add a Send Action

Now let's tell the bot what to say.

  1. From the sidebar, find "Send Node" (action.send) under Actions
  2. Drag it onto the canvas (to the right of the trigger)
  3. Click on it to open settings
  4. Ensure Mode is set to Text
  5. In the Text field, type:
Hello, {{user.first_name}}! 👋 Welcome to my bot!
info
What's {{user.first_name}}?

This is called a variable. When your bot runs, it automatically replaces this with the actual user's first name. So if John messages your bot, he'll see "Hello, John! 👋"


Step 5: Connect the Nodes

Now we need to connect the trigger to the action — this tells the bot what to do after the command is received.

  1. Find the small white circle (dot) on the right side of the Command Trigger
  2. Click and drag from that circle to the white circle on the left side of Send Message
  3. A wire will connect them

Your flow should look like this:


Step 6: Save and Test

  1. Click Save (or press Ctrl+S)
  2. Your bot is now live!
  3. Open Telegram and message your bot
  4. Send /hello
  5. You should receive a personalized greeting! 🎉

Congratulations! 🎊

You just built your first bot without writing a single line of code!

What You Learned

  • ✅ How to add nodes to the canvas
  • ✅ How to configure node settings
  • ✅ How to connect nodes with wires
  • ✅ How to use variables like {{user.first_name}}

Next Steps

Now that you've got the basics, try these:

Pro Tip

Try changing the message text and saving again. Your bot updates instantly — no restart needed!