{"product_id":"n8n-telegram-ai-agent-gemini-qa-sheets-chat-logging","title":"n8n Telegram AI Agent: Gemini QA + Sheets Chat Logging","description":"\u003ch3\u003eAnswer prospects in Telegram with an AI that’s grounded in your knowledge—and logs every conversation to Google Sheets\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow turns your Telegram bot into a Google Gemini-powered “QA + scheduling” assistant. It answers questions using a Supabase vector knowledge base, can run PageSpeed Insights audits on request, tracks lead status in Google Sheets, and books meetings in Google Calendar—with optional human escalation via Telegram.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives Telegram messages\u003c\/strong\u003e via an n8n \u003cem\u003eTelegram Trigger\u003c\/em\u003e whenever a prospect sends a new chat.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a session context\u003c\/strong\u003e (chat ID, username, first name, and channel) and passes it to a Google Gemini-based AI agent with conversation memory.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResponds to factual questions with grounded answers\u003c\/strong\u003e by querying a \u003cstrong\u003eSupabase vector knowledge base\u003c\/strong\u003e using \u003cstrong\u003eGemini embeddings\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePerforms website audits on demand\u003c\/strong\u003e: if the prospect explicitly requests an audit, the agent calls \u003cstrong\u003eGoogle PageSpeed Insights\u003c\/strong\u003e for the provided URL and summarizes the results.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs substantial exchanges\u003c\/strong\u003e to a \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e tracker (recording\/updating prospect status and need summary).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBooks qualified calls automatically\u003c\/strong\u003e: when a prospect is qualified, the workflow checks availability in \u003cstrong\u003eGoogle Calendar\u003c\/strong\u003e and creates a meeting slot.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEscalates to a human when needed\u003c\/strong\u003e by notifying Eyitola via Telegram if escalation criteria are met.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the AI reply back in Telegram\u003c\/strong\u003e so the prospect stays in the same conversation channel.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators using n8n to handle inbound Telegram leads with AI QA and instant responses.\u003c\/li\u003e\n  \u003cli\u003eTeams that want Google Sheets lead tracking and Google Calendar booking from chat.\u003c\/li\u003e\n  \u003cli\u003eProspect-facing workflows that request PageSpeed Insights audits and want AI summaries delivered immediately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003en8n nodes\/tools: \u003cstrong\u003eTelegram Trigger\u003c\/strong\u003e, \u003cstrong\u003eTelegram\u003c\/strong\u003e, \u003cstrong\u003eTelegram Tool\u003c\/strong\u003e, \u003cstrong\u003en8n-nodes-langchainagent\u003c\/strong\u003e, \u003cstrong\u003eHTTP Request Tool\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eAI: \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e for chat model and \u003cstrong\u003eGemini embeddings\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eKnowledge grounding: \u003cstrong\u003eSupabase\u003c\/strong\u003e vector store.\u003c\/li\u003e\n  \u003cli\u003eAudits: \u003cstrong\u003eGoogle PageSpeed Insights\u003c\/strong\u003e via HTTP requests.\u003c\/li\u003e\n  \u003cli\u003eTracking \u0026amp; scheduling: \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e and \u003cstrong\u003eGoogle Calendar\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45822099357875,"sku":"N8N-18060","price":47.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/KfGeJX8Il4fMZX5PqA1rg_X1FihEYE.png?v=1786526256","url":"https:\/\/buyflowscripts.com\/products\/n8n-telegram-ai-agent-gemini-qa-sheets-chat-logging","provider":"N8N Commerce","version":"1.0","type":"link"}