# Edit Fields wrong output \\n

**URL:** <https://community.n8n.io/t/edit-fields-wrong-output-n/53951>\
**Category:** Questions\
**Created:** [12 سبتمبر 2024، 2:44م UTC](https://community.n8n.io/t/edit-fields-wrong-output-n/53951 "2024-09-12T14:44:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koen\_Driessen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/koen_driessen/32/30749_2.png) [@Koen\_Driessen](https://community.n8n.io/u/Koen_Driessen)\
**Post date:** [12 سبتمبر 2024، 2:44م UTC](https://community.n8n.io/t/edit-fields-wrong-output-n/53951/1 "2024-09-12T14:44:57Z")

</div>

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**

 ![construction](https://europe1.discourse-cdn.com/n8n/original/3X/c/e/ce10488cdaab84d5979a80c01fdcf0af7dec70dd.jpeg)

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

 ![test working](https://europe1.discourse-cdn.com/n8n/original/3X/c/e/ceb57c0210ac83080075a19b99c4ef885704080d.jpeg)

**Here is the automation not working when triggered outside**

 ![not working](https://europe1.discourse-cdn.com/n8n/original/3X/2/9/2901d7b8129206e9e01a5ae216bc59e80fe3f048.jpeg)

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [12 سبتمبر 2024، 2:44م UTC](https://community.n8n.io/t/edit-fields-wrong-output-n/53951/2 "2024-09-12T14:44:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [16 سبتمبر 2024، 10:21ص UTC](https://community.n8n.io/t/edit-fields-wrong-output-n/53951/3 "2024-09-16T10:21:59Z")

</div>

Hey @Koen_Driessen,

Welcome to the community 🎉

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 }}`.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/b/cb66d226094ab43edf9f8b684ab34308ec78480c.jpeg)

Try changing it and let me know how it goes.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [15 ديسمبر 2024، 10:22ص UTC](https://community.n8n.io/t/edit-fields-wrong-output-n/53951/4 "2024-12-15T10:22:43Z")

</div>

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