Problem
I have worked with a webhook & an on-form submission for this OCR workflow with no issues. I have now extended this to look at a chat trigger (start) node connected to an AI Agent.
The AI Agent has a LLM, Simple Memory and then 3 tools to complete the OCR process.
These tools are simple REST calls to the https://api.mistral.ai endpoint.
- Submit job
- Get Status
- Retrieve OCR results
The challenge I am facing is that the binary file from the chat trigger doesn’t render as it does in the comparable workflows using the webhook or on-form submission trigger start.
Error Message:
The error message that I get is.
“Cannot read properties of undefined (reading ‘0’)”
The output of the upload_passport_to_mistral_ocr node is:
Error details
Other info
n8n version 1.95.3 (Cloud)
Time 7/2/2025, 1:59:08 PM
Error cause {}
Information on your n8n setup
- n8n version:
1.95.3 (Cloud)