Extract invoice data from PDF with Claude AI and create vendor bill in Odoo 18
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- PDF to Base (Extract from File): extracts data from a file (binary to propery)
- Configuration (Edit Fields (Set)): sets or maps fields
- Prepare Claude Request (Code): runs custom JavaScript code
- Claude AI Extract (HTTP Request): calls api.anthropic.com (POST)
- Parse Extraction (Code): runs custom JavaScript code
- Error Response (Respond to Webhook): sends the response back to the webhook caller
- Odoo Authenticate (HTTP Request): calls an HTTP API (POST)
- Prepare Duplicate Check (Code): runs custom JavaScript code
- Search Duplicate Invoice (HTTP Request): calls an HTTP API (POST)
- Duplicate Found? (If): checks a condition and branches into true / false
…plus 13 more steps. See the full node list below.
HTTP calls to: api.anthropic.com
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 (7)
- Webhook
n8n-nodes-base.webhook - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
This workflow automates accounts payable: upload a PDF invoice, let Claude AI extract the key fields, and automatically create a vendor bill (incoming invoice) in Odoo 18. Who is this for? Small and medium businesses using Odoo 18 who want to automate invoice…