Review and monitor KYB ownership chains with GLEIF, OpenAI, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 64 nodes and runs when an HTTP POST request hits its webhook URL (plus 3 other triggers). Along the way it connects OpenAI Chat Model, HTTP Request, Data table and Gmail. It also calls api.gleif.org over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 3 other triggers).
- KYB settings (Edit Fields (Set)): sets 8 fields: reviewer_email, senior_approver_email, compliance_officer_email…
- Monitoring settings (Edit Fields (Set)): sets 1 field: kyb_webhook_url
- Create reviews table (Data table): create (table)
- Alert compliance ops (Gmail): uses Gmail
- Normalize and validate request (Code): runs custom JavaScript code
- Get monitored clients (Data table): get (row)
- Create monitoring table (Data table): create (table)
- Is the request valid? (If): checks a condition and branches into true / false
- Get current LEI record (HTTP Request): calls an HTTP API
- Find the entity in GLEIF (HTTP Request): calls an HTTP API
…plus 43 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.gleif.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 (19)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Http Request Tool
n8n-nodes-base.httpRequestTool - Data Table Tool
n8n-nodes-base.dataTableTool - 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 - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow accepts KYB ownership-review requests via webhook, pulls corporate ownership-chain data from the GLEIF API, generates a structured risk memo with OpenAI, and manages human approvals and notifications through Gmail, while logging…