Bad request - please check your parameters

hey everyone,i hope u all fine, i am trying to build instagram dm chatbot ai agent and i got problems in last Http request node which is the reply of my ai agent chatgpt at my questions,as u see in photots,when i use text like hi or hello dear it replies,but when i use the output of my ai agent it make this error Bad request - please check your parameters

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(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:

@ahmed_fadul

Delete the quotation marks around your expression. and Change the expression to use JSON.stringify()

instead of this: "text": "{{ $json.output }}"

it should look exactly like this: "text": {{ JSON.stringify($json.output) }}