Capture Telegram voice notes as tasks and events with OpenAI and Google
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI, OpenAI Chat Model and Google Sheets and 1 more.
How it runs
Trigger: On Telegram events (message).
- Set config (Edit Fields (Set)): sets 6 fields: allowedTelegramUserId, sheetId, sheetName…
- Allowed sender? (If): checks a condition and branches into true / false
- Voice message? (If): checks a condition and branches into true / false
- Reply not allowed (Telegram): uses Telegram
- Download the voice note (Telegram): work with file
- Use the typed text (Edit Fields (Set)): sets 2 fields: captureText, sourceType
- Transcribe the voice note (OpenAI): transcribe (audio)
- Pull out tasks and events (AI Agent): runs an AI agent, with model: Chat model; output parser: Output Parser - Capture
- Use the transcript (Edit Fields (Set)): sets 2 fields: captureText, sourceType
- Build the capture (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - Aggregate
n8n-nodes-base.aggregate - Google Calendar
n8n-nodes-base.googleCalendar
From the author
Quick Overview This workflow listens for Telegram voice notes or text messages, uses OpenAI to transcribe and extract structured tasks and calendar events, appends tasks to Google Sheets, creates events in Google Calendar, and replies in Telegram with a…