AI Help
How do I pass a PDF attachment from a webhook to an n8n AI step?
Inspect the webhook's binary output and pass the correct binary field to a file-capable AI operation. A filename alone does not transfer the attachment.
Steps to follow
- Send a small PDF and identify its binary property, MIME type and original filename in the execution data.
- Configure the receiving file or upload operation to read that exact property. Use the resulting file identifier where the AI API expects one.
- Ask a question about a known passage and compare the answer. Check current node operations, file limits and provider support.
Example in practice
Illustrative example. A webhook stores the document under attachment, so an upload node expecting data must be updated to the actual binary property.
Related AI help
- Why does my n8n AI sub-node use the first input item for every record?
- How do I find which item failed in a batch n8n execution?