Skip to main content

Scan business cards from Telegram to Google Contacts with Mistral OCR

Workflow preview

Workflow preview
100%
Scan business cards from Telegram to Google Contacts with Mistral OCR preview
Open on n8n.io

1. Workflow Overview

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 po...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.telegramtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.telegram, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.informationextractor, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googlecontacts

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide Boizza.

Original n8n.io source

1.1 Workflow description

Title
Scan business cards from Telegram to Google Contacts with Mistral OCR
Workflow name
Scan business cards from Telegram to Google Contacts with Mistral OCR

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 manual contact entry and reduce errors.

The workflow validates authorized users, processes business card images, extracts structured information such as names, company details, phone numbers, email addresses, and addresses, and automatically creates a new contact in Google Contacts. Finally, it sends a confirmation message back to the user via Telegram.


Key Benefits

1. ✅ Fully Automated Contact Management

The workflow removes the need for manual typing of business card information by automatically converting images into structured contact data and saving them directly into Google Contacts.

2. ✅ Faster Lead Collection

Users can instantly save new contacts during meetings, conferences, networking events, or sales activities simply by sending a photo of a business card to Telegram.

3. ✅ AI-Powered Data Extraction

Using Mistral OCR and OpenAI models, the workflow accurately extracts and structures contact information even from complex or differently formatted business cards.

4. ✅ Improved Data Accuracy

The workflow minimizes human errors typically caused by manual data entry, ensuring standardized and reliable contact information.

5. ✅ Secure User Validation

Only authorized Telegram users can trigger the workflow, adding an additional layer of security and preventing unauthorized usage.

6. ✅ Seamless Integration

The automation integrates multiple services:

  • Telegram for image submission and notifications
  • Mistral OCR for text recognition
  • OpenAI for intelligent information extraction
  • Google Contacts for automatic contact creation
7. ✅ Real-Time Feedback

After processing the business card, the workflow sends an automatic success or error notification directly to the user on Telegram.

8. ✅ Scalable and Customizable

The workflow can easily be extended with additional features such as:

  • CRM integration
  • Contact enrichment
  • Duplicate detection
  • Multi-language business card support
  • Lead scoring and tagging
Business Value

This workflow is ideal for:

  • Sales teams
  • Business networking
  • Event management
  • Entrepreneurs
  • Recruitment agencies
  • CRM data collection

It significantly increases operational efficiency, accelerates lead management, and creates a smoother digital workflow for handling professional contacts.


How it works

  1. Telegram trigger – The workflow starts when a message is sent to the Telegram bot.
  2. Authorization check – A Code node verifies if the message comes from an authorized Telegram user ID.
  3. Message validation – The workflow checks that:
  • The message contains a photo.
  • The caption starts with /business.
  1. Image retrieval – The bot fetches the highest‐quality photo from the message.
  2. OCR extraction – The image is sent to Mistral OCR (via HTTP Request) to extract text from the business card.
  3. Information extraction – The extracted text is passed to an Information Extractor (powered by an OpenAI chat model) which parses the card and returns structured fields: company_name, first_name, last_name, role, phone, email, website, street_address, city, region, country_code, postal_code.
  4. Create Google Contact – A Google Contacts node creates a new contact using the extracted data (addresses, company, emails, phone).
  5. Success check – An IF node checks if the contact was created successfully (by verifying resourceName exists).
  6. Telegram reply – The bot sends a confirmation message (“Contact successfully added”) or an error message to the user.

Set up steps

  1. Telegram bot
  • Create a Telegram bot via @BotFather.
  • Add the bot’s API token as a credential in n8n (name: Telegram account Fastewb).
  1. User authorization
  • Find your Telegram user ID (e.g., by using @userinfobot).
  • In the Code node, replace XXX with your numeric user ID.
  1. Mistral OCR
  • Get an API key from Mistral AI.#
  • Create an HTTP Bearer Auth credential in n8n named Mistral OCR with that key.
  • The node uses https://api.mistral.ai/v1/ocr with a base64‐encoded image.
  1. OpenAI chat model
  • Obtain an OpenAI API key.
  • Create an OpenAi API credential in n8n (name: OpenAi account (Eure)).
  • The workflow uses gpt-5.4-mini – ensure this model is available or change it to gpt-4o-mini / gpt-3.5-turbo.
  1. Google Contacts
  • Set up Google OAuth2 credentials in n8n with access to Google Contacts API.
  • The node will create contacts under the authenticated Google account.
  1. Activate the workflow
  • Save the workflow.
  • Set the Telegram Trigger to Active.
  • In Telegram, send a photo with the caption /business to the bot to test.

👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - Get Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 3 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Get image file

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - Extract from File

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1.1

Block 6 - Information Extractor

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1.2

Block 7 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 8 - Create a contact

Type / Role
n8n-nodes-base.googleContacts - googleContacts
Config choices
Version 1

Block 9 - Mistral OCR

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 10 - Success?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 11 - OK

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - KO

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Validate message

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Scan business cards from Telegram to Google Contacts with Mistral OCR
Complexity advanced
Nodes 18
Categories Document Extraction, AI Summarization
Author Davide Boizza
Published 14 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15708/15708.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Scan business cards from Telegram to Google Contacts with Mistral OCR do?

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 po...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.