AutomationFlowsAI & RAG › Synthetic Risky AI Email Flow

Synthetic Risky AI Email Flow

Synthetic Risky AI Email Flow. Uses loopOverItems, openAi, gmail. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexityAI-powered4 nodesLoop Over ItemsOpenAIGmail
AI & RAG Trigger: Webhook Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Gmail → OpenAI recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Synthetic Risky AI Email Flow",
  "nodes": [
    {
      "id": "n8n-risk-webhook",
      "name": "Incoming Event Webhook",
      "type": "n8n-nodes-base.webhook",
      "parameters": {
        "path": "synthetic-risk-event"
      }
    },
    {
      "id": "n8n-risk-loop",
      "name": "Loop Over Incoming Items",
      "type": "n8n-nodes-base.loopOverItems",
      "parameters": {}
    },
    {
      "id": "n8n-risk-ai",
      "name": "Generate Message With LLM",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "parameters": {
        "apiToken": "SYNTHETIC_PLAINTEXT_VALUE_FOR_REDACTION_TEST",
        "model": "synthetic-small-model"
      }
    },
    {
      "id": "n8n-risk-send",
      "name": "Gmail Send Message",
      "type": "n8n-nodes-base.gmail",
      "parameters": {
        "operation": "send",
        "recipient": "synthetic-recipient@example.test"
      }
    }
  ],
  "connections": {
    "Incoming Event Webhook": {
      "main": [
        [
          {
            "node": "Loop Over Incoming Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Incoming Items": {
      "main": [
        [
          {
            "node": "Generate Message With LLM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Message With LLM": {
      "main": [
        [
          {
            "node": "Gmail Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {}
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Synthetic Risky AI Email Flow. Uses loopOverItems, openAi, gmail. Webhook trigger; 4 nodes.

Source: https://github.com/gzh246/ai-workflow-safety-auditor/blob/main/examples/n8n/risky-workflow.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Digital B - Lead Automation System (Google Sheets). Uses openAi, googleSheets, gmail, slack. Webhook trigger; 9 nodes.

OpenAI, Google Sheets, Gmail +2
AI & RAG

• Webhook → urlscan.io → GPT-4o mini → Gmail • Payload example: • urlscan.io returns a Scan ID and raw JSON. • AI node classifies the scan as malicious / suspicious / benign, assigns a 1-10 risk score

Url Scan Io, Gmail, OpenAI
AI & RAG

Brand Finder and Contacter. Uses openAi, respond, gmail. Webhook trigger; 7 nodes.

OpenAI, Respond, Gmail
AI & RAG

HR Resume Screening with Verifiable Decision Receipts. Uses openAi, n8n-nodes-signatrust, gmail. Webhook trigger; 5 nodes.

OpenAI, N8N Nodes Signatrust, Gmail
AI & RAG

This workflow captures new leads via webhook, enriches and scores them with Apollo and Google Gemini, logs everything in Google Sheets, and automates outreach, reply handling, follow-ups, meeting prep

HTTP Request, Google Gemini, Google Sheets +3