Save business card contacts from Telegram photos to Google Contacts with Mistral and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model and Google Contacts.
How it runs
Trigger: On Telegram events (message).
- Configuration (Edit Fields (Set)): sets 7 fields: authorized_user_ids, trigger_caption, ocr_model…
- Validate Business Card Message (If): checks a condition and branches into true / false
- Check Authorized User (If): checks a condition and branches into true / false
- Get Business Card Photo (Telegram): work with file
- Extract Business Card Text (Mistral AI): uses Mistral AI
- Extract Contact Fields (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Model - Extraction
- Check Duplicate Contact (Google Contacts): get many
- Is Duplicate Contact? (If): checks a condition and branches into true / false
- Notify Duplicate Contact (Telegram): uses Telegram
- Create Google Contact (Google Contacts): uses Google Contacts
…plus 3 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 (8)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Mistral AI
n8n-nodes-base.mistralAi - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Contacts
n8n-nodes-base.googleContacts
From the author
Quick overview This workflow listens for Telegram messages containing a business card photo and the /business caption, uses Mistral OCR and OpenAI to extract contact details, checks Google Contacts for duplicates by email, then creates a new Google Contact…