Process invoices securely with OpenAI, Slack, and ERP webhooks
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Slack and OpenAI. It also calls replace_with_erp_endpoint over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Convert to File: converts data to a file (to binary)
- Validate File & Create Metadata (Code): runs custom JavaScript code
- Route Intake Status (Switch): routes items into 1 branches
- Duplicate Check (Replace With DB) (Code): runs custom JavaScript code
- Create Exception Record (Code): runs custom JavaScript code
- Route Duplicate Status (Switch): routes items into 1 branches
- Send a message (Slack): uses Slack
- Extract from File: extracts data from a file (pdf)
- Wait: pauses until webhook
- Return Key Information (OpenAI): uses OpenAI
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: replace_with_erp_endpoint
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.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - Convert to File
n8n-nodes-base.convertToFile - Slack
n8n-nodes-base.slack - Extract from File
n8n-nodes-base.extractFromFile - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
Quick overview This workflow accepts invoice documents via webhook, validates and de-duplicates them, extracts invoice data from PDFs with OpenAI, and either posts approved invoices to an ERP via HTTP or routes exceptions to Slack for human review before…