Quick Start
Create your first automation in 5 minutes. By the end you'll have a Telegram bot that replies to every message.
Step 1: Create a Telegram Bot
You need a bot first. It takes 30 seconds:
- Open Telegram and search for @BotFather
- Send
/newbot - Choose a name (e.g. "My Fainflow Bot")
- Choose a username (e.g. "my_fainflow_bot")
- BotFather gives you a token — copy it
The token looks like this:
7845632109:AAH3kf8Jd9_xKmP2nQ7rT5wYz1uV0bCdE
Step 2: Add Connection in Fainflow
- Go to your Fainflow dashboard
- Click Connections in the menu
- Click + New Connection
- Select Telegram Bot
- Paste the token from BotFather
- Click Save
New Connection

Step 3: Create a Flow
- Click Flows in the menu — you'll see your flows list:
Flows
4 flows
| Name | Status | Actions | Connection |
|---|---|---|---|
| Echo Bot | On | ![]() | My Bot |
| AI Assistant | On | ![]() ![]() | My Bot |
| Webhook Handler | Off | API Trigger | |
| Auto Forwarder | On | ![]() | Assistant |
- Click + New Flow
- You're now in the Flow Editor
Step 4: Set Up the Event
The event is what triggers your flow.
- Click the event area (left side of the editor)
- Select Telegram Bot → Bot Update
- This means: "run this flow when someone sends a message to my bot"
Step 5: Add a Reply Action
Now add what happens when someone messages your bot.
- Click Add app action
- Select Telegram Bot → Send Message
- You'll see the Send Message card with input fields
Now connect the data:
- Drag the green
userIDbadge from the Event → drop it on thechatIdfield - Drag the green
messagebadge → drop it on thetextfield
The flow editor will look like this:
AI Assistant
Flow isON

Event
Bot Update
message
userID
date
RAW

Action
Send Prompt
model: gpt-4
input: ← message

Action
Send Message
chatId: ← userID
text: ← responseText
Add action
or function
or function
Step 6: Save and Enable
- Click Save (top right)
- Toggle the switch from OFF to ON
Step 7: Test It!
- Open Telegram
- Find your bot (search for the username you chose)
- Send any message
- The bot replies with your message!
What Just Happened?
- You sent "Hello" to the bot
- Telegram sent the message to Fainflow (via webhook)
- The Bot Update event fired with
message = "Hello"anduserID = your_id - The Send Message action sent "Hello" back to
your_id - You see the reply in Telegram
Next: Add AI
Want your bot to reply with AI? Just add one more block:
AI Chat Bot
Bot responds using OpenAI GPT

Telegram Bot
Bot Update
message
userID

OpenAI
Send Prompt
model
gpt-4
instructions
You are a helpful assistant
input
message
responseText

Telegram Bot
Send Message
chatId
userID
text
responseText
The OpenAI block takes the user's message, sends it to GPT, and the response goes back to the user.
Next Steps
- Telegram Bot — all bot actions and settings
- OpenAI — set up AI responses
- Core Concepts — understand how flows work
- Functions — transform data between blocks