Templates / Handle chat support and escalate unresolved tickets with Google Gemini and Gmail

Handle chat support and escalate unresolved tickets with Google Gemini and Gmail

Ready for 3.0

by M S Vishnu · 17 views · created 2026-06-01 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (9)

Structured Output ParserGmailGoogle Gemini Chat ModelSimple MemoryAI AgentGoogle Docs

What it does

Quick overview This webhook-based customer support workflow uses Google Gemini and a Google Docs knowledge base to answer chat messages, remembers conversation context, and escalates unresolved issues by summarizing the chat and sending a support email via Gmail. How it works 1. Receives an incoming chat message via a webhook request. 2. Uses a Google Gemini-powered support agent with a Google Docs knowledge base and short-term memory to draft a user reply and decide whether escalation is needed. 3. Returns the agent’s reply to the chat client as a JSON webhook response. 4. If the agent flags the conversation for escalation, summarizes the chat with Google Gemini and formats an email subject and body. 5. Sends the escalation email through Gmail to the configured support address and responds to the user with a confirmation message. Setup 1. Copy the webhook URL from the trigger and configure your chat app or frontend to POST messages (including a sessionId) to it. 2. Add Google Gemini (PaLM) API credentials for the Google Gemini chat model nodes. 3. Add Google Docs OAuth credentials and point the Google Docs tool to the document you want to use as the support knowledge base. 4. Add Gmail OAuth2 credentials and replace Youremail@example.com with your real escalation inbox in the Gmail send step. 5. Ensure your client sends the expected fields (for example body.message and body.sessionId) so memory and replies work correctly.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.