Extract invoice data from PDF with Claude AI and create vendor bill in Odoo 18
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 data entry. Finance teams, bookkeepers, or anyone processing incoming invoices manually.
How it works Receive a PDF invoice via webhook (file upload) Convert the PDF to base64 for AI processing Claude AI extracts: vendor name, invoice number, date, amounts, tax rate Authenticate with Odoo 18 via JSON-RPC API Check for duplicate invoices (by invoice number) Find or create the vendor (res.partner) in Odoo Create a draft vendor bill (account.move) in Odoo Return a structured JSON response with the result
The invoice is created in draft status so you can review and confirm it manually in Odoo before posting.
Extracted fields vendor, invoice_number, invoice_date, total_amount, currency, net_amount, tax_rate, tax_amount
Setup Open the Configuration node and enter your Odoo URL, database, user, and password Create an HTTP Header Auth credential named Anthropic API Key with header name x-api-key and your Anthropic API key as value Activate the workflow and send a test PDF
Test with curl curl -X POST https://your-n8n-instance.com/webhook/invoice-process -F "data=@invoice.pdf"
Requirements Odoo 18 with Invoicing module installed Anthropic API key (Claude Sonnet 4.5 recommended) n8n 2.x (self-hosted or cloud)
How to customize Change the AI model in the Configuration node (e.g. claude-haiku-4-5-20251001 for lower cost) Modify the extraction prompt in Prepare Claude Request to add custom fields Add a file storage step after invoice creation (e.g. Google Drive, S3, WebDAV) Connect an email trigger instead of the webhook for fully automated processing
Note on data privacy This workflow sends PDF documents to the Anthropic API for data extraction. Ensure you have a Data Processing Agreement (DPA) with Anthropic and comply with your local data protection regulations (e.g. GDPR) before processing documents containing personal data.
Author: Florian Eiche — eiche-digital.de
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments