Qualify inbound leads with Gemini and send scored summaries to Telegram
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model, Telegram, Groq Chat Model and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validate & Serialize Payload (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Respond Error (Respond to Webhook): sends the response back to the webhook caller
- Format Telegram Message (Code): runs custom JavaScript code
- Send to Telegram (Telegram): send rich message
- Respond Success (Respond to Webhook): sends the response back to the webhook caller
- Groq Chat Model: uses Groq Chat Model
- OpenAI Chat Model: uses OpenAI Chat Model
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 (9)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram
n8n-nodes-base.telegram - Respond to Webhook
n8n-nodes-base.respondToWebhook - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Quick overview This workflow receives lead data via a webhook, uses Google Gemini through an n8n AI Agent to score and classify the lead (hot/warm/cold) with structured output, then formats and sends the results to a Telegram chat and returns a JSON response…