We Document Ingestion Webhook Document Ingest…Se Workflow Configuration Workflow Config…Cr Generate Document Hash Generate Docume…Sw Route by Document Type Route by Docume…EF Extract Text from PDF Extract Text fr…Co OCR Processing for Images OCR Processing …EF Extract from Office Documents Extract from Of…Me Merge Extracted Content Merge Extracted…Ag Metadata Extraction Agent Metadata Extrac…OpenAI Model - Metadata OpenAI Model - …OP Metadata Schema Parser Metadata Schema…Ag Forgery Detection Agent Forgery Detecti…OpenAI Model - Forgery OpenAI Model - …OP Forgery Analysis Schema Forgery Analysi…Ag Semantic Contradiction Detector Semantic Contra…OpenAI Model - Semantic OpenAI Model - …OP Contradiction Schema Parser Contradiction S…VS Historical Document Vector Store Historical Docu…OpenAI Embeddings OpenAI Embeddin…DD Document Loader TS Text Splitter TC Entity Enrichment Tool Entity Enrichme…Ag Entity Enrichment Agent Entity Enrichme…OpenAI Model - Enrichment OpenAI Model - …OP Enrichment Schema Parser Enrichment Sche…Co Calculate Risk Score Calculate Risk …Sw Route by Risk Level Route by Risk L…Store Low Risk Documents Store Low Risk …Wa Wait for Human Review Wait for Human …Notify Compliance Team Notify Complian…Store High Risk Documents Store High Risk…Store Critical Risk Documents Store Critical …Alert Security Team Alert Security …Log Audit Trail Cr Generate Cryptographic Proof Generate Crypto…RT Return Processing Result Return Processi…Se Prepare Response Data Prepare Respons…Ag Historical Pattern Comparison Agent Historical Patt…OpenAI Model - Pattern OpenAI Model - …OP Pattern Analysis Schema Pattern Analysi…Me Merge Analysis Results Merge Analysis …− 1/5 +
STEPS · 47
Starts on an incoming request
▶ Animate flow1 Document Ingestion Webhook → Workflow Configuration Set Fields maps and normalizes fields for the next step 2 Workflow Configuration → Generate Document Hash Crypto processes the incoming items 3 Generate Document Hash → Route by Document Type Switch routes items to a matching branch 4 Route by Document Type → Extract Text from PDF Extract From File pdf 5 Route by Document Type → OCR Processing for Images Code runs custom code on the items 6 Route by Document Type → Extract from Office Documents Extract From File xlsx 7 Extract Text from PDF → Merge Extracted Content Merge merges branches back together 8 OCR Processing for Images → Merge Extracted Content Merge merges branches back together 9 Extract from Office Documents → Merge Extracted Content Merge merges branches back together 10 Merge Extracted Content → Metadata Extraction Agent AI Agent runs the AI agent with its attached model, memory and tools 11 Merge Extracted Content → Forgery Detection Agent AI Agent runs the AI agent with its attached model, memory and tools 12 Merge Extracted Content → Semantic Contradiction Detector AI Agent runs the AI agent with its attached model, memory and tools 13 Merge Extracted Content → Historical Document Vector Store Vector Store reads/writes the vector store 14 Metadata Extraction Agent → Merge Analysis Results Merge merges branches back together 15 Forgery Detection Agent → Merge Analysis Results Merge merges branches back together 16 Semantic Contradiction Detector → Merge Analysis Results Merge merges branches back together 17 Historical Document Vector Store → Historical Pattern Comparison Agent AI Agent runs the AI agent with its attached model, memory and tools 18 Merge Analysis Results → Entity Enrichment Agent AI Agent runs the AI agent with its attached model, memory and tools 19 Historical Pattern Comparison Agent → Merge Analysis Results Merge merges branches back together 20 Entity Enrichment Agent → Calculate Risk Score Code runs custom code on the items 21 Calculate Risk Score → Route by Risk Level Switch routes items to a matching branch 22 Route by Risk Level → Store Low Risk Documents Postgres processes the incoming items 23 Route by Risk Level → Notify Compliance Team Slack posts a message to <__PLACEHOLDER_VALUE__Compliance_Channel_ID__> 24 Route by Risk Level → Alert Security Team Slack posts a message to <__PLACEHOLDER_VALUE__Security_Alert_Channel_ID__> 25 Store Low Risk Documents → Log Audit Trail Postgres processes the incoming items 26 Notify Compliance Team → Wait for Human Review Wait pauses the flow 27 Alert Security Team → Store Critical Risk Documents Postgres processes the incoming items 28 Log Audit Trail → Generate Cryptographic Proof Crypto processes the incoming items 29 Wait for Human Review → Store High Risk Documents Postgres processes the incoming items 30 Store Critical Risk Documents → Log Audit Trail Postgres processes the incoming items 31 Generate Cryptographic Proof → Prepare Response Data Set Fields maps and normalizes fields for the next step 32 Store High Risk Documents → Log Audit Trail Postgres processes the incoming items 33 Prepare Response Data → Return Processing Result Respond to Webhook returns the HTTP response to the caller 34 Text Splitter → Document Loader Text Splitter Recursive Character Text Splitter processes the incoming items — attached as the text splitter. 35 Document Loader → Historical Document Vector Store Document Default Data Loader processes the incoming items — attached as the document loader. 36 OpenAI Embeddings → Historical Document Vector Store Embeddings creates embeddings — attached as the embeddings. 37 Entity Enrichment Tool → Entity Enrichment Agent Tool Code processes the incoming items — attached as the tool. 38 Metadata Schema Parser → Metadata Extraction Agent Output Parser parses the model output into structured data — attached as the output parser. 39 OpenAI Model - Forgery → Forgery Detection Agent OpenAI Model provides the language model (gpt-4.1-mini) — attached as the language model. 40 OpenAI Model - Pattern → Historical Pattern Comparison Agent OpenAI Model provides the language model (gpt-4.1-mini) — attached as the language model. 41 Forgery Analysis Schema → Forgery Detection Agent Output Parser parses the model output into structured data — attached as the output parser. 42 OpenAI Model - Metadata → Metadata Extraction Agent OpenAI Model provides the language model (gpt-4.1-mini) — attached as the language model. 43 OpenAI Model - Semantic → Semantic Contradiction Detector OpenAI Model provides the language model (gpt-4.1-mini) — attached as the language model. 44 Pattern Analysis Schema → Historical Pattern Comparison Agent Output Parser parses the model output into structured data — attached as the output parser. 45 Enrichment Schema Parser → Entity Enrichment Agent Output Parser parses the model output into structured data — attached as the output parser. 46 OpenAI Model - Enrichment → Entity Enrichment Agent OpenAI Model provides the language model (gpt-4.1-mini) — attached as the language model. 47 Contradiction Schema Parser → Semantic Contradiction Detector Output Parser parses the model output into structured data — attached as the output parser.
On a webhook, extracts and hashes document content, runs OpenAI fraud and compliance analysis with vector search, stores results in Postgres, and alerts Slack.
Tags webhook advanced OpenAI Postgres Document Extraction AI Summarization discovered pending-review