Templates / Validate AI answers with Google search, OpenAI GPT-4, Slack and Gmail alerts

Validate AI answers with Google search, OpenAI GPT-4, Slack and Gmail alerts

Ready for 3.0

by WeblineIndia ✓ · 1 views · created 2026-09-03 · Engineering, AI Summarization

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.

What this workflow does

This AI workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI, Slack and Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Extract Question & Answer (Edit Fields (Set)): sets 2 fields: Question, Answer
  2. Search Answer on Google (HTTP Request): calls an HTTP API (POST)
  3. Prepare Search Results for AI (Code): runs custom JavaScript code
  4. Check Answer with AI (OpenAI): uses OpenAI
  5. Calculate Risk Level (Code): runs custom JavaScript code
  6. Convert AI Response to Data (Code): runs custom JavaScript code
  7. Decide Action Based on Risk (Switch): routes items into 3 branches
  8. Send Final Response (Respond to Webhook): sends the response back to the webhook caller
  9. Send Suspicious Alert to Slack (Slack): uses Slack
  10. Send Critical Alert (Gmail): uses Gmail

Services it uses

OpenAISlackGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Quick overview This workflow receives an AI-generated Q&A via webhook, searches the web for supporting sources, and uses OpenAI to score and classify the answer as SAFE, SUSPICIOUS, or HALLUCINATED, then alerts via Slack or Gmail and returns a response to the…

Excerpt from WeblineIndia's description on n8n.io.

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.