Quick overview
This workflow turns incoming Telegram bot text messages into a numbered to-do list using Google Gemini, saves the result as a new page in a Notion database, and replies to the user in Telegram with the same extracted task list.
How it works
- Triggers whenever your Telegram bot receives a new message.
- Checks whether the incoming message contains text and ignores non-text updates.
- Sends the message text to Google Gemini to extract a clean, numbered to-do list (or returns “No tasks found.”).
- Creates a new page in a Notion database and stores the extracted to-do list.
- Sends the extracted to-do list back to the user in the original Telegram chat.
Setup
- Create a Telegram bot with @BotFather, add your Telegram credentials in n8n, and use the trigger’s webhook/connection to start receiving updates.
- Add a Google Gemini (PaLM) API credential for the AI extraction step.
- Add a Notion credential, select the target database, and ensure it has suitable properties to store the page title and extracted to-do content.