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

  1. Send a small PDF and identify its binary property, MIME type and original filename in the execution data.
  2. Configure the receiving file or upload operation to read that exact property. Use the resulting file identifier where the AI API expects one.
  3. 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

Official guidance

n8n documentation