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 →
{
"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": {}
}
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 →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Digital B - Lead Automation System (Google Sheets). Uses openAi, googleSheets, gmail, slack. Webhook trigger; 9 nodes.
• 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
Brand Finder and Contacter. Uses openAi, respond, gmail. Webhook trigger; 7 nodes.
HR Resume Screening with Verifiable Decision Receipts. Uses openAi, n8n-nodes-signatrust, gmail. Webhook trigger; 5 nodes.
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