Your First Workflow
Create a simple workflow that sends you a Telegram message when you click a button. This tutorial takes about 5 minutes.
Prerequisites
Before you begin, make sure you have:
- A Buzz8n account (sign up if you haven't already)
- A Telegram account and bot token (learn how to get one)
Step-by-Step Guide
Create a New Workflow
From your dashboard, click the "New Workflow" or "+" button in the top right corner.
Give your workflow a descriptive name like "My First Telegram Bot" and click Create.
Set Up Telegram Credentials
Before adding nodes, you need to set up your Telegram credentials:
- Click "Credentials" in the top navigation bar
- Click "Add Credential" or the "+" button
- Select "Telegram" from the provider list
- Give it a name like "My Telegram Bot"
- Paste your bot token in the token field
- Click "Save"
You need to create a Telegram bot first:
- Open Telegram and search for @BotFather
- Send the command
/newbot - Follow the prompts to name your bot
- Copy the bot token that BotFather gives you
Understand the Manual Trigger Node
When you create a new workflow, Buzz8n automatically adds a Manual Trigger node. This is your starting point!
The Manual Trigger node starts your workflow when you click the play button.
Add a Telegram Node
Now let's add a node to send a Telegram message:
- Look for the + button on the right side of the Manual Trigger node
- Click it to open the node palette
- Search for "Telegram" or browse the actions
- Click "Send a message" to add it to your workflow
You'll see the Telegram node appear, connected to your Manual Trigger with a line (edge).
Configure the Telegram Node
Click on the Telegram node to open its configuration panel on the right side of the screen.
You'll need to fill in three fields:
1. Select Credential
Choose the Telegram bot credential you created in Step 2.
2. Chat ID
This is your Telegram user ID. To find it:
- Open Telegram and send any message to your bot
- Open this URL in your browser (replace YOUR_BOT_TOKEN):
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdatesLook for the "id" field under "chat" - that's your Chat ID!
3. Message
Type the message you want to send. For example:
Hello from Buzz8n! ๐ My first workflow is working!Save Your Workflow
Before testing, save your work! Click the "Save" button in the top right corner.
You should see a success message confirming your workflow has been saved.
Test Your Workflow
Time to see your workflow in action!
- Click on the Manual Trigger node
- A Play button will appear on the left side of the node
- Click the Play button to run your workflow
Watch as your workflow executes! You'll see:
- The nodes light up as they execute
- A loading indicator while the message is being sent
- A green checkmark when it's complete
View Execution Logs
Want to see what happened behind the scenes?
- Look for the "Executions" tab at the bottom or right panel
- Click on the latest execution to see detailed logs
- You can see the input and output of each node
Troubleshooting
I'm not receiving the Telegram message
If you're not receiving messages, check these common issues:
- Did you message your bot first? You must send at least one message to your bot before it can message you back.
- Is your Chat ID correct? Double-check the ID by visiting the getUpdates URL again.
- Is your bot token valid? Try sending a test request to the Telegram API to verify.
- Check the execution logs for any error messages.
I see a red warning icon on my node
The red warning icon means your node configuration is incomplete. Click on the node to see which fields need to be filled in. All required fields must have values before the workflow can run.
The workflow execution failed with an error
Check the execution logs to see the specific error message. Common errors include:
- Invalid bot token: Your credential might be incorrect
- Invalid chat ID: Make sure you copied the correct ID
- Network error: Check your internet connection
What's Next?
Now that you've mastered the basics, here are some ideas for what to learn next: