Edit Fields wrong output \n

Hi there,

I am running into a problem / bug:

When i run my workflow inside 8n8 with “Chat”
the whole workflow works and everywhere i get the right outputs.

But when i run this construction on my app, and i send a message trough the chatbot on my website, the message comes trough the webhook (WORKS),
But inside the Edit Fields, (it does receive the message), but the output is wrong and the Json is suddenly red.

I have changed nothing.

Again: testing inside 8n8 works
But trough my automation (triggered outside) it doesnt.

Could someone help me?

Here is the automation

Here is the automation working (when tested with chat inside 8n8)

Here is the automation not working when triggered outside

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @Koen_Driessen,

Welcome to the community :tada:

Looking at the error the issue is going to be that the chat trigger and webhook node output data in different ways, From the chat trigger it is using {{ $json.chatInput }} but if you look at your screenshot at the bottom the webhook is adding it to the body which means you will need to use {{ $json.body.chatInput }}.

Try changing it and let me know how it goes.

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