Module 10Lesson 4

Lesson 4. First Workflow: Telegram Notification

Hands-on: n8n

Lesson 4. First Workflow: Telegram Notification#

Example of a simple workflow in n8n
Example of a simple workflow in n8n

Goal: create a simple workflow that sends a Telegram message on a schedule.

Task#

Every day at 9:00 AM, send yourself a Telegram message: "Good morning! Time to work 💪".

Step 1. Create a Telegram Bot#

(If you already have a bot from previous modules — use it.)

  1. Message @BotFather

  2. Send /newbot

  3. Enter name and username

  4. Copy the API Token

  5. Send /start to your bot

  6. Get your Chat ID (via https://api.telegram.org/bot<TOKEN>/getUpdates)

Step 2. Create a New Workflow in n8n#

  1. Open n8n (locally or in the cloud)

  2. Click "New Workflow"

  3. Name the workflow: "Morning Notification"

Step 3. Add Cron Node (Trigger)#

  1. Click "+" on the canvas

  2. Find the Cron node

  3. Click the Cron node → settings open on the right

  4. Configure the schedule:

    • Mode: Every Day

    • Hour: 9

    • Minute: 0

  5. Click "Execute Node" to test (it will run immediately, without waiting for 9:00)

Step 4. Add Telegram Node#

  1. Click "+" to the right of the Cron node

  2. Find the Telegram node

  3. Select Resource: Message, Operation: Send Message

  4. Configure credentials:

    • click "Create New Credential"

    • enter Access Token (your bot's API Token)

    • click "Save"

  5. Configure message parameters:

    • Chat ID: your Chat ID (e.g., 123456789)

    • Text: Good morning! Time to work 💪

  6. Click "Execute Node" to test → you'll receive a message in Telegram

Step 5. Save and Activate the Workflow#

  1. Click "Save" (top right)

  2. Toggle Active to "ON" (workflow will run on schedule)

Done! Now every day at 9:00 AM you'll receive a message in Telegram.