← Back
⚡ Automation Showcase

Telegram HubSpot Lead Bot

Snap a business card or type contact details in Telegram. An AI agent extracts via OCR, creates the contact in HubSpot with notes and file attachments, logs to Sheets, backs up to Drive. Built with n8n + GPT-4o-mini.

2
Workflows
16
Nodes
5
API Integrations
<30s
Card → CRM
Trigger
Condition
Transform
AI Agent
API Call
Output
Storage
Sub-workflow
01 — Telegram Message Handler
📱
Telegram Trigger
Listens for messages + downloads attached photos
🔀
Switch: Photo or Text?
Routes based on message type
📷 Photo
⚙️
Base64 Encode
Convert image, build OCR prompt with caption
📤
Upload to HubSpot
/Messe-Uploads
🔗
Merge Data
File ID + encoded image
🤖
AI: OCR + Extract
Reads card, extracts fields, determines salutation, writes notes in German
GPT-4o-mini · Tool: Create Contact
Confirm in Telegram
💾
Google Drive Backup
💬 Text
🤖
AI: Parse Text
Extract contact info, create via tool
GPT-4o-mini · Tool: Create Contact
Confirm in Telegram
02 — Contact Creator
Receive Contact Data
10 fields: name, company, phone, email, salutation, job title, file ID, notes
⚙️
Map to HubSpot Properties
Transform → HubSpot schema, tag as trade show lead, set language DE
👤
Create Contact
POST /crm/v3/objects/contacts
📝
Create Note
Attach notes + card image to contact
📌
Pin Note
Primary engagement on contact card
📊
Log to Google Sheets
Append with HubSpot link

From Jacket Pocket to CRM

At trade shows, salespeople meet dozens of prospects a day. Business cards pile up. Half get lost, the other half sit in a jacket pocket for weeks before someone manually types them into the CRM. By then, the lead is cold.

This automation eliminates that gap entirely. Snap a photo or type the details — within seconds, everything is in HubSpot, documented, and actionable.

  • An AI agent reads the card via OCR and extracts every field
  • Card image uploaded to HubSpot and backed up to Drive
  • Contact created with all fields populated
  • Detailed note pinned to the contact — card attached
  • Lead logged to Sheets with direct HubSpot link
  • Confirmation sent back in Telegram
The AI Layer

Not Just OCR

Both paths use GPT-4o-mini as an AI agent with a detailed system prompt. The agent doesn't just extract data — it determines salutation from the name (Herr/Frau), reads handwritten notes on forms, translates captions from the salesperson, and writes structured notes formatted for the sales team. The AI calls the sub-workflow as a tool, passing all extracted fields directly into HubSpot.

Zero Lost Leads

No lost cards. No forgotten leads. No "who was supposed to follow up?" Every lead is captured, documented, and actionable immediately.

Built in 2024–2025 with n8n — before any AI tool had training data on the platform. Pure documentation reading, trial and error, and stubbornness.

30s
Card → CRM
Down from 3–5 days. The average time from trade show meeting to CRM entry, eliminated.
n8n GPT-4o-mini Telegram Bot API HubSpot CRM API HubSpot Files API Google Sheets API Google Drive API OCR via Vision AI Tool Calling Sub-workflows