{"product_id":"n8n-support-ticket-rag-claude-google-gemini-webhook","title":"n8n Support Ticket RAG: Claude + Google Gemini Webhook","description":"\u003ch3\u003eAuto-Answer Support Tickets in n8n with RAG (Claude + Google Gemini)\u003c\/h3\u003e\n\u003cp\u003eTurn inbound support questions into faster, safer responses. This \u003cstrong\u003en8n Support Ticket RAG\u003c\/strong\u003e workflow receives inquiries via a header-authenticated webhook, masks personal data, retrieves similar past Q\u0026amp;A using \u003cstrong\u003eGoogle Gemini embeddings\u003c\/strong\u003e, and uses \u003cstrong\u003eAnthropic Claude\u003c\/strong\u003e to draft an auto-reply—only when confidence is high.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives customer inquiries\u003c\/strong\u003e through a webhook and normalizes common \u003cstrong\u003ePII\u003c\/strong\u003e patterns using masking logic.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmbeds and searches history\u003c\/strong\u003e: creates a \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e embedding for the new question and queries an \u003cstrong\u003ein-memory vector store\u003c\/strong\u003e for the most similar learned Q\u0026amp;A.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eChecks similarity confidence\u003c\/strong\u003e using a similarity threshold to decide whether an auto-reply is appropriate.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDrafts replies with Anthropic Claude\u003c\/strong\u003e using \u003cem\u003eonly\u003c\/em\u003e the retrieved reference Q\u0026amp;A, and blocks the auto-reply if Claude indicates it can’t answer or if the output is unsafe.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs and learns\u003c\/strong\u003e: when auto-answered, it records the masked question, match score, and generated reply to an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e and returns the reply to the webhook caller.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEscalates when needed\u003c\/strong\u003e: if no safe auto-reply is possible, it logs the case as pending and returns a “waiting for staff” response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates the knowledge base\u003c\/strong\u003e: receives staff answers via a second header-authenticated webhook, applies regex + Claude masking, then adds the masked Q\u0026amp;A to the vector store and updates the case as learned (or marks it for review).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams reducing time-to-first-response for common support issues.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building an \u003cstrong\u003en8n RAG support assistant\u003c\/strong\u003e with auditable learning loops.\u003c\/li\u003e\n  \u003cli\u003eOperations workflows where staff-approved answers continuously improve future auto-replies.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e inputs (header-authenticated) for customer inquiries and staff answers\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePII masking\u003c\/strong\u003e with regex + Claude masking pass\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini embeddings\u003c\/strong\u003e for retrieval\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIn-memory vector store\u003c\/strong\u003e for similarity search\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnthropic Claude\u003c\/strong\u003e for safe, reference-only reply drafting\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Data Table\u003c\/strong\u003e logging for auto-answered, pending, and learned cases\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46192847814835,"sku":"N8N-20667","price":76.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/9qDl188Bq0nLmRgpEt603_m8gj9Gas.png?v=1791537157","url":"https:\/\/buyflowscripts.com\/products\/n8n-support-ticket-rag-claude-google-gemini-webhook","provider":"N8N Commerce","version":"1.0","type":"link"}