All guides

n8n AI HTTP file response output: configuration checks

Put a downloaded response in a specified field and distinguish it from JSON output.

AINavWritten / Updated Sources checked
On this page

At a glance

This guide uses the official HTTP Request documentation for one request task and inspects fields or states with synthetic input containing no private data. It does not run n8n, sign in or call a model API; documented steps are not product verification.

Input, configuration and inspection

  1. Prepare input

    Establish fields, formats and authorization.

  2. Configure request

    Select HTTP Request fields for this task.

  3. Inspect output

    Check status and fields before downstream work.

Establish the receiver contract before inspecting the node output.

Establish the API response type

The task is to save audio or an image produced by an AI service. Determine whether the API returns file bytes, a download URL inside JSON or plain text. JSON containing a URL needs an explicit later download step and is not itself the file. Prepare an output field name without account data, such as generated-audio.

Select File under Response

Add the Response option, select File as Response Format and set Put Output in Field. The documentation also provides Autodetect, JSON and Text; Text and File offer a named output field. Select the format from the response contract rather than treating autodetection as a permanent type guarantee.

Inspect status and file bytes

Enable Include Response Headers and Status when headers and status must accompany the body; body-only is the default. Never Error can return success regardless of status, which does not prove that the remote service produced a valid file. Stop media processing on an error status, empty file or unexpected MIME type. Only status branching was simulated locally; no product file was downloaded or decoded.

Article sources

Original editorial content; official descriptions and checking suggestions are distinguished.

  1. n8n · Official sources
    View details