Templates / Pre-assess sanctions screening hits with OpenAI and Gmail

Pre-assess sanctions screening hits with OpenAI and Gmail

Ready for 3.0

by AI Flow Packs · 0 views · created 2026-10-22 · Document Extraction, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 41 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model, Data table, HTTP Request and Gmail. It also calls treasury.gov, scsanctions.un.org and api.gleif.org over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).

  1. Screening settings (Edit Fields (Set)): sets 3 fields: reviewer_email, second_approver_email, compliance_officer_email
  2. Alert compliance ops (Gmail): uses Gmail
  3. Create audit table (Data table): create (table)
  4. Normalize and validate request (Code): runs custom JavaScript code
  5. Is the request valid? (If): checks a condition and branches into true / false
  6. Find earlier cases for this party (Data table): get (row)
  7. Reply 400 with validation errors (Respond to Webhook): sends the response back to the webhook caller
  8. Check open cases and reuse window (Code): runs custom JavaScript code
  9. Route by case state (Switch): routes items into 3 branches
  10. Open case in audit log (Data table): insert (row)

…plus 23 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelData tableHTTP RequestGmail

HTTP calls to: treasury.gov, scsanctions.un.org, 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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (18)

From the author

Quick Overview This workflow receives counterparties via a header-authenticated webhook, screens them against OFAC SDN/alias and UN consolidated sanctions lists, uses an OpenAI-powered agent to pre-assess possible hits, routes the case through a human review…

Excerpt from AI Flow Packs'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.