All guides

n8n AI HTTP json request body: configuration checks

Send an AI request as JSON and inspect array, Boolean and number types.

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.

Prepare a synthetic request

Use id=sample-a, a prompt asking for a summary of public text, tags=[demo], and stream=false. First establish method, URL, authentication and field types from the destination API contract. These are local practice values, not a complete model-provider request.

Select JSON body mode

Configure method and URL in HTTP Request, enable Send Body and select JSON as Body Content Type. Using Fields Below takes names and values; Using JSON takes the complete JSON body. Configure an isolated copy first and keep credentials out of the body and shared fixtures. A stringified array differs from an actual array even when their displayed text looks similar.

Parse before inspecting output

The local fixture parses as JSON, tags is an array and stream is Boolean. The deliverable is a request body matching the receiver contract, not a generated summary. In a product run, inspect the request preview and receiver status. Stop downstream writes when required fields are absent, types change or authentication fails.

Article sources

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

  1. n8n · Official sources
    View details