Templates / Save business card contacts from Telegram photos to Google Contacts with Mistral and OpenAI

Save business card contacts from Telegram photos to Google Contacts with Mistral and OpenAI

Ready for 3.0

by Dr. Firas ✓ · 62 views · created 2026-08-03 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (8)

TelegramInformation ExtractorOpenAI Chat ModelGoogle Contacts

What it does

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 and replies in Telegram with the result. How it works 1. Triggers when a Telegram bot receives a message. 2. Verifies the message includes a photo and a caption starting with the configured command (for example, /business). 3. Checks the sender’s Telegram user ID against an allowlist to restrict who can use the bot. 4. Downloads the business card photo from Telegram and runs Mistral OCR to extract the text. 5. Uses OpenAI (via an information extraction step) to parse the OCR text into structured fields like name, company, role, phone, email, and address. 6. Searches Google Contacts for an existing contact with the same email and either notifies the user about the duplicate or creates a new Google Contact. 7. Sends a success or error confirmation message back to the user in Telegram. Setup 1. Create a Telegram bot with @BotFather and add your Telegram credential in n8n. 2. Add a Mistral API key credential for OCR and an OpenAI API key credential for field extraction. 3. Connect a Google Contacts OAuth2 credential with permission to read and create contacts. 4. In the Configuration step, set the authorized Telegram user IDs (comma-separated) and adjust the trigger caption and reply messages if needed. Additional info Save business card contacts from Telegram photos to Google Contacts 📥 Open full documentation on Notion Need help customizing? Contact me for consulting and support : Linkedin MY NEW YOUTUBE CHANNEL 👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n. !The AI Doctor

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.