Categorize Airtable invoices with OpenAI and TOON token optimization
UnknownWhat this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI, Airtable and Pdf Toolkit (community).
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get Ready Invoices (Airtable): search
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Get Clients (Airtable): uses Airtable
- Get Invoice Items (Airtable): search
- GroupClientAndInvoice (Edit Fields (Set)): sets 1 field: clientAndInvoiceData
- Map Fields (Edit Fields (Set)): sets 4 fields: description, quantity, unitPrice…
- Json To Toon: uses Json To Toon
- Aggregate: combines items into one
- OpenAI: uses OpenAI
- Toon To Json: uses Toon To Json
…plus 1 more step. See the full node list below.
Services it uses
Other OpenAI + Airtable templates (215)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @custom-js/n8n-nodes-pdf-toolkit is verified or supports 3.0 (used in JSON to TOON).
- Check that @custom-js/n8n-nodes-pdf-toolkit is verified or supports 3.0 (used in TOON to JSON).
Nodes used (8)
- OpenAI
@n8n/n8n-nodes-langchain.openAi - Json To Toon
@custom-js/n8n-nodes-pdf-toolkit.jsonToToon - Manual Trigger
n8n-nodes-base.manualTrigger - Airtable
n8n-nodes-base.airtable - Aggregate
n8n-nodes-base.aggregate - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - Toon To Json
@custom-js/n8n-nodes-pdf-toolkit.toonToJson
From the author
> ⚠️ Notice: > This workflow uses the CustomJS JSON to TOON node from CustomJS, which requires a self-hosted n8n instance and a CustomJS API key. --- This workflow demonstrates how to automatically categorize invoices from Airtable using OpenAI, while…