{"product_id":"ai-answer-checker-n8n-workflow-google-search-gpt-4-alerts","title":"AI Answer Checker n8n Workflow: Google Search, GPT-4 Alerts","description":"\u003ch3\u003eCatch AI Q\u0026amp;A hallucinations before they reach users—automatically\u003c\/h3\u003e\n\u003cp\u003eThe \u003cstrong\u003eAI Answer Checker n8n Workflow\u003c\/strong\u003e receives an AI-generated question and answer, searches the web for supporting evidence, and then uses \u003cstrong\u003eOpenAI (GPT-4 Turbo)\u003c\/strong\u003e to classify the response as \u003cstrong\u003eSAFE\u003c\/strong\u003e, \u003cstrong\u003eSUSPICIOUS\u003c\/strong\u003e, or \u003cstrong\u003eHALLUCINATED\u003c\/strong\u003e. When risk is detected, it alerts your team via \u003cstrong\u003eSlack\u003c\/strong\u003e or sends a critical \u003cstrong\u003eGmail\u003c\/strong\u003e message—while returning the verdict back to the webhook caller.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook intake:\u003c\/strong\u003e Exposes an n8n webhook endpoint that accepts a \u003ccode\u003equestion\u003c\/code\u003e and \u003ccode\u003eanswer\u003c\/code\u003e via POST at \u003ccode\u003e\/hallucination-check\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle search sourcing:\u003c\/strong\u003e Calls your \u003cstrong\u003eGoogle Search API endpoint\u003c\/strong\u003e to retrieve the top search results for the question.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompact source list:\u003c\/strong\u003e Formats the top search snippets into a compact list of sources to support validation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGPT-4 verification:\u003c\/strong\u003e Sends the \u003cstrong\u003equestion\u003c\/strong\u003e, \u003cstrong\u003eanswer\u003c\/strong\u003e, and \u003cstrong\u003esources\u003c\/strong\u003e to \u003cstrong\u003eOpenAI (GPT-4 Turbo)\u003c\/strong\u003e to produce a JSON verdict with a \u003cstrong\u003econfidence score\u003c\/strong\u003e, \u003cstrong\u003ereasoning\u003c\/strong\u003e, and \u003cstrong\u003eclassification\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDecision routing:\u003c\/strong\u003e Returns the result to the webhook caller (especially for \u003cstrong\u003eSAFE\u003c\/strong\u003e outcomes).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAlerts:\u003c\/strong\u003e If \u003cstrong\u003eSUSPICIOUS\u003c\/strong\u003e, posts a message to your chosen \u003cstrong\u003eSlack\u003c\/strong\u003e channel; if \u003cstrong\u003eHALLUCINATED\u003c\/strong\u003e, sends a critical \u003cstrong\u003eGmail\u003c\/strong\u003e alert email.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eValidate answers in an \u003cstrong\u003eAI support assistant\u003c\/strong\u003e before publishing to customers.\u003c\/li\u003e\n  \u003cli\u003eReduce risk in a \u003cstrong\u003eSaaS knowledge bot\u003c\/strong\u003e by detecting fabricated claims.\u003c\/li\u003e\n  \u003cli\u003eQuality-control internal AI workflows for compliance and trust.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/stack:\u003c\/strong\u003e webhook, set, code, OpenAI (GPT-4 Turbo), switch, slack, gmail.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSearch integration:\u003c\/strong\u003e Replace the placeholder \u003cstrong\u003eGoogle\/Serp Search API URL\u003c\/strong\u003e and \u003ccode\u003eX-API-KEY\u003c\/code\u003e header with your provider details.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRouting logic:\u003c\/strong\u003e switch node routes by classification (\u003cem\u003eSAFE\u003c\/em\u003e, \u003cem\u003eSUSPICIOUS\u003c\/em\u003e, \u003cem\u003eHALLUCINATED\u003c\/em\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45962155393203,"sku":"N8N-19129","price":63.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/uUpz_hwenF2qM44kPtN19_qO3qNtnv.png?v=1788600027","url":"https:\/\/buyflowscripts.com\/products\/ai-answer-checker-n8n-workflow-google-search-gpt-4-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}