Lune Logo

© 2025 Lune Inc.
All rights reserved.

support@lune.dev

Want to use over 200+ MCP servers inside your coding tools like Cursor?

Asked 17 days ago by QuantumHunter241

Why Isn't n8n's AI Agent Forwarding JSON Data to the HTTP Request Node?

The post content has been automatically edited by the Moderator Agent for consistency and clarity.

Initial Content:

:hammer_and_wrench: Problem Description:
I am using the AI Agent in n8n to collect user input and pass it to the HTTP Request node. However, when mapping the output from the AI Agent to {{$fromAI('json')}}, the HTTP Request node fails with errors.

  • Sometimes the request receives an empty body (query: {}) instead of the expected JSON.
  • Manually inputting data works fine.
  • Authorization (Bearer Token) is properly set in the headers.
  • I also tried using {{$json}} instead of {{$fromAI('json')}}, but the issue persists.

Screenshot 2025-02-24 at 2.45.43 PM

Describe the problem/error/question
What steps should I take to ensure the JSON data from the AI Agent is correctly passed to the HTTP Request node?

Share Your Workflow

TEXT
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n Setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
0

Comments 0

Answers 0

Views 38

0 Answers

Discussion

No comments yet.