I am a beginner with n8n.
I would like to create a workflow to handle company staff travel expense claim reimbursements.
Details:
Staff will scan invoices that include meals, transportation, taxi, and hotel receipts in PDF or image format.
Staff will submit them in batches (I assume using the ‘n8n Form’ node).
The workflow should use Gemini and Mistral OCR to extract information and write it to a predefined Excel or Google Sheet. The fields include: company name, currency, invoice date, invoice number, and total amount.
I’ve watched many YouTube videos and explored n8n templates, but I still don’t fully understand how to design the workflow.
I believe the workflow should include:
A trigger for form submission to upload multiple scanned invoices
Splitting the JSON
Looping over each item to handle files one by one
Three HTTP requests for Mistral OCR
An AI Agent to extract structured information
Writing the extracted data into predefined fields in Google Sheets
Would you mind reviewing my design and sharing any suggestions or templates for reference?
I appreciate your help and apologize for my limited knowledge.
Thanks
AW
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Thanks so much for your suggestion! I followed the steps, but I still don’t fully understand how it works. Below is the output JSON after the ‘on form submission’ trigger. Based on this input JSON, what JavaScript should I use for the second node?
Sure, I can write the code, but to make sure I understand what you need to achieve in this code node, please tell me what is the expected output from this node.