AI-powered invoice extractor via Telegram to Airtable
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs on Telegram events (message). Along the way it connects OpenAI Chat Model, Airtable and Telegram.
How it runs
Trigger: On Telegram events (message).
- Switch: routes items into 1 branches
- Telegram: work with file
- Edit Fields (Edit Fields (Set)): sets 2 fields: Message, memory_id
- Extract from File: extracts data from a file (pdf)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Create Invoice, Create Line Item); memory: Simple Memory
- Telegram: uses Telegram
Services it uses
Other Telegram + OpenAI templates (807) · Other OpenAI + Airtable templates (215) · Other Telegram + Airtable templates (58)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent1 (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent1 (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Airtable Tool
n8n-nodes-base.airtableTool - Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set - Extract from File
n8n-nodes-base.extractFromFile - Switch
n8n-nodes-base.switch - Telegram Trigger
n8n-nodes-base.telegramTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
📄 Description This workflow automates the extraction of structured invoice data from PDF files sent via Telegram and stores it in Airtable. It leverages GPT-4o for intelligent parsing and includes conversational memory for a seamless user experience.…