Scan business cards from Telegram to Google Contacts with Mistral OCR
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model and Google Contacts. It also calls api.mistral.ai over HTTP.
How it runs
Trigger: On Telegram events (message).
- Code: runs custom JavaScript code
- Validate message (If): checks a condition and branches into true / false
- Get image file (Telegram): work with file
- Extract from File: extracts data from a file (binary to propery)
- Mistral OCR (HTTP Request): calls api.mistral.ai (POST)
- Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
- Create a contact (Google Contacts): uses Google Contacts
- Success? (If): checks a condition and branches into true / false
- OK (Telegram): uses Telegram
- KO (Telegram): uses Telegram
Services it uses
HTTP calls to: api.mistral.ai
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 (9)
- Code
n8n-nodes-base.code - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - Extract from File
n8n-nodes-base.extractFromFile - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Contacts
n8n-nodes-base.googleContacts - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
From the author
This workflow automates the process of scanning business cards received via Telegram and instantly saving the extracted contact information into Google Contacts. It combines OCR technology, AI-powered data extraction, and workflow automation to eliminate…