<aside>

Goal:

Automate the lead intake process using AI and seamlessly store qualified leads in Airtable for CRM usage.

Problem:

Manual qualification of inbound leads through messaging apps like Telegram leads to loss of information, time waste, and poor CRM updates.

Solution:

An AI-powered Telegram bot that qualifies leads through conversation, collects structured information, and automatically stores new contacts into Airtable.


πŸ”· Step 1:

Telegram bot receives a new message (text or voice).

πŸ”· Step 2:

n8n triggers the workflow based on the message.

πŸ”· Step 3:

A Switch node filters between text and voice input.

πŸ”· Step 4:

If voice, the message is transcribed via OpenAI Whisper.

πŸ”· Step 5:

The text input is sent to an AI Agent node.

πŸ”· Step 6:

The agent asks qualifying questions (CRM used, budget, timeline).

πŸ”· Step 7:

The user answers in natural conversation.

πŸ”· Step 8:

AI agent extracts structured data (name, email, phone, notes).

πŸ”· Step 9:

Airtable is queried to check if the email already exists.

πŸ”· Step 10:

If not found, a new record is created with the user data.

πŸ”· Step 11:

Optionally, an appointment is created in Google Calendar.

πŸ”· Step 12:

A Code node formats the output. Replaces all occurrences of the \n break with an escaped sequence \line\n.

πŸ”· Step 13:

A Telegram message summarizes the captured info back to the user.

πŸ”· Step 14:

The conversation and lead are logged for future use.


Tools Used:

Impact:

🧠Learnings:

Screenshot 2025-08-06 105142.png

πŸ“‚ Download & Explore the Workflow

View GitHub Repository :

AI-Lead-Qualifier-CRM-Integration-Bot---n8n/AI Lead Qualifier & CRM Integration Bot.json at main Β· AlvLeoAI/AI-Lead-Qualifier-CRM-Integration-Bot---n8n