Invalid form body when using sendAndWait function in discord

I’ve been trying to create an integration between our discord server and custom AI Agent that uses OpenAI resources to generate the response. So far everything’s working fine except sending the message to the discord channel and waiting for the response, whenever I use “send message” option in n8n discord integration, everything seems to be working fine

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:

hello @wontsay

try with {{ JSON.stringify($('AI Agent').item.json.output) }}

Maybe there are some object/arrays in the payload

same problem occurs “Invalid form body”

Can you provide the input data that you are passing to the message field?

I pass the answer returned from OpenAI ChatGPT

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.