Screen clients for adverse media and PEPs with GDELT, Wikidata and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 62 nodes and runs when an HTTP POST request hits its webhook URL (plus 5 other triggers). Along the way it connects OpenAI Chat Model and Gmail. It also calls api.gdeltproject.org and query.wikidata.org over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 5 other triggers).
- Screening settings (Edit Fields (Set)): sets 18 fields: reviewer_email, second_approver_email, compliance_officer_email…
- Webhook settings (Edit Fields (Set)): sets 2 fields: screening_webhook_url, seconds_between_clients
- Create cases table (Data table): create (table)
- Alert compliance ops (Gmail): uses Gmail
- Normalize and validate request (Code): runs custom JavaScript code
- Started from the form? (If): checks a condition and branches into true / false
- Create client list table (Data table): create (table)
- Is the request valid? (If): checks a condition and branches into true / false
- Send form entry to the screening webhook (HTTP Request): calls an HTTP API (POST)
- Get active clients (Data table): get (row)
…plus 44 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.gdeltproject.org, query.wikidata.org
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (18)
- Webhook
n8n-nodes-base.webhook - n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Wait
n8n-nodes-base.wait - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview Screens clients for PEP exposure and adverse media before onboarding and every month. GDELT news and Wikidata PEP data are checked, OpenAI judges article relevance, fixed rules set the risk rating, a reviewer decides, HIGH needs a second…