{"product_id":"telegram-lead-scoring-with-openai-team-alerts-n8n","title":"Telegram Lead Scoring with OpenAI + Team Alerts (n8n)","description":"\u003ch3\u003eTurn Telegram messages into qualified leads—automatically score intent with OpenAI and alert your team in a separate chat (n8n)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow powers a Telegram bot that answers incoming text messages, collects lightweight discovery, and uses \u003cstrong\u003eOpenAI Chat Completions\u003c\/strong\u003e to generate a \u003cstrong\u003elead score\u003c\/strong\u003e. When the score meets your qualification threshold, your team is notified via Telegram—so you can follow up faster with the right prospects.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives\u003c\/strong\u003e a new Telegram text message (Telegram Trigger).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and manages session context\u003c\/strong\u003e per chat, then routes the message to the appropriate handling path (text vs. non-text) using workflow logic.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls OpenAI\u003c\/strong\u003e via an HTTP Request to the \u003cstrong\u003eChat Completions\u003c\/strong\u003e API, sending your business details and the conversation context to produce a short reply plus structured lead-scoring metadata.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and updates\u003c\/strong\u003e the session history and lead score, including a deterministic evidence check before handoff.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQualifies and alerts\u003c\/strong\u003e: if the lead score meets your \u003ccode\u003ehandoff_threshold\u003c\/code\u003e, sends a qualified-lead notification to your team’s Telegram chat and informs the visitor that a specialist will follow up.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAvoids duplicate handoffs\u003c\/strong\u003e: if already handed off, replies with a holding message without re-notifying your team.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHandles exceptions\u003c\/strong\u003e: if rate-limited or when the input isn’t text, the workflow sends the appropriate guidance message.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS sales teams qualifying inbound Telegram inquiries in real time.\u003c\/li\u003e\n  \u003cli\u003eLead intake for agencies or consultancies that want instant routing when intent is high.\u003c\/li\u003e\n  \u003cli\u003eAny n8n-powered bot that needs \u003cstrong\u003eAI-assisted lead scoring\u003c\/strong\u003e plus human follow-up via Telegram.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (built with n8n nodes)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram Trigger\u003c\/strong\u003e (incoming messages)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram\u003c\/strong\u003e (send visitor replies and team alerts)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request\u003c\/strong\u003e (OpenAI Chat Completions API call)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e (session handling, parsing, evidence check, lead score updates)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSwitch\u003c\/strong\u003e (routing between text\/non-text and handling states)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSticky Note\u003c\/strong\u003e (workflow documentation)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup tip:\u003c\/strong\u003e create your Telegram bot in BotFather, add Telegram credentials to both the Telegram Trigger and Send Telegram Message steps, then replace \u003ccode\u003eagent_chat_id\u003c\/code\u003e in the CONFIG block and adjust \u003ccode\u003ehandoff_threshold\u003c\/code\u003e and business details.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938215059635,"sku":"N8N-19028","price":71.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/zg7c2VUIWTpkonT2GYGuG_SeQ1wdhq.png?v=1788340363","url":"https:\/\/buyflowscripts.com\/products\/telegram-lead-scoring-with-openai-team-alerts-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}