{"product_id":"n8n-telegram-support-agent-groq-pinecone-supabase-slack","title":"n8n Telegram Support Agent: Groq + Pinecone + Supabase + Slack","description":"\u003ch3\u003eTurn Telegram support into a real, production-ready AI agent—backed by your knowledge base, live order data, and Slack escalation\u003c\/h3\u003e\n\u003cp\u003e\u003cstrong\u003eRELAY\u003c\/strong\u003e is an n8n Telegram support agent that answers customers with \u003cem\u003everified\u003c\/em\u003e information from your real data—using Groq for response drafting, Pinecone for knowledge search, and Supabase for chat memory, rate-limiting, and order lookups. If something can’t be resolved automatically, it escalates to \u003cstrong\u003eSlack\u003c\/strong\u003e as a trackable ticket.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives new Telegram messages\u003c\/strong\u003e and checks Supabase to ignore duplicate Telegram updates.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnforces user rate-limiting\u003c\/strong\u003e via Supabase sliding-window counters, replying with a limit response when a user exceeds the message threshold.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds conversation context\u003c\/strong\u003e by validating\/normalizing incoming text and retrieving the \u003cstrong\u003elast 10 messages\u003c\/strong\u003e from Supabase to format a conversation history.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDrafts a structured support reply\u003c\/strong\u003e using a \u003cstrong\u003eGroq\u003c\/strong\u003e chat model agent that can search a \u003cstrong\u003ePinecone\u003c\/strong\u003e vector knowledge base (with \u003cstrong\u003eGoogle Gemini embeddings\u003c\/strong\u003e), look up orders in Supabase, and check for existing follow-up tickets.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApproves before sending:\u003c\/strong\u003e extracts any order ID and email from the draft, fetches matching order records from Supabase, then sends the question\/evidence\/draft to a \u003cstrong\u003esecond Groq model\u003c\/strong\u003e to approve or revise the answer.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStores chat memory\u003c\/strong\u003e in Supabase and replies to the customer on Telegram.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEscalates unresolved issues\u003c\/strong\u003e by creating a pending follow-up ticket in Supabase (only if none is already open) and posting escalation details to a \u003cstrong\u003eSlack\u003c\/strong\u003e channel—while still replying on Telegram.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eInstant Telegram FAQs powered by your Pinecone knowledge base (no guessing).\u003c\/li\u003e\n  \u003cli\u003eOrder status and support answers using live order data from Supabase.\u003c\/li\u003e\n  \u003cli\u003eHigh-volume support handling with built-in rate-limiting and safe model approval.\u003c\/li\u003e\n  \u003cli\u003eSeamless handoff to your team via Slack tickets when human follow-up is needed.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003en8n nodes\/workflow logic: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003eno op\u003c\/strong\u003e, \u003cstrong\u003emerge\u003c\/strong\u003e, \u003cstrong\u003eslack\u003c\/strong\u003e, \u003cstrong\u003ewebhook\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eIntegrations: \u003cstrong\u003eTelegram\u003c\/strong\u003e trigger, \u003cstrong\u003eSupabase\u003c\/strong\u003e (duplicates, rate-limits, order lookup, chat memory, tickets), \u003cstrong\u003eGroq\u003c\/strong\u003e (two-step response drafting\/approval), \u003cstrong\u003ePinecone\u003c\/strong\u003e (vector search), \u003cstrong\u003eSlack\u003c\/strong\u003e (escalations)\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46008749359283,"sku":"N8N-19501","price":22.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/3Twc7bnxbwaWVI7Eq7z_GrmWTLol.png?v=1789204104","url":"https:\/\/buyflowscripts.com\/products\/n8n-telegram-support-agent-groq-pinecone-supabase-slack","provider":"N8N Commerce","version":"1.0","type":"link"}