# Chat node response with JSON

**URL:** <https://community.n8n.io/t/chat-node-response-with-json/60646>\
**Category:** Questions\
**Created:** [November 4, 2024, 9:17am UTC](https://community.n8n.io/t/chat-node-response-with-json/60646 "2024-11-04T09:17:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Hajdu](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/adam_hajdu/32/47882_2.png) [@Adam\_Hajdu](https://community.n8n.io/u/Adam_Hajdu)\
**Post date:** [November 4, 2024, 9:17am UTC](https://community.n8n.io/t/chat-node-response-with-json/60646/1 "2024-11-04T09:17:55Z")

</div>

Hi  
I was looking for solutions and I can see that there are some similar questions but they are not solving my issue.  
I was running in in ubuntu localy and now hosting it on n8n and having the same issue.

## Describe the problem/error/question

I have a chat node, going into a Question and answer chain. I have the OpenAI Chat node set up to respond in text, in the test chat window I get a plain text answer but if I use the public chat app (hosted) the answers are always seems to be in JSON incited of plain text. How can I change it?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/e/dee38dff480bb777abfd1fccac65183e054c05b8.png)

## What is the error message (if any)?

## Please share your workflow

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/4/54b8039282f8e439d9a66ff8c977ff0226665f09.png)

```auto
(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):_pincone_
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- \*\*Running n8n via (Docker, npm, n8n cloud, desktop app):_tried local UBUNTU and hosted_
- \*\*Operating system:_n/a_

---

<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:** [November 4, 2024, 9:17am UTC](https://community.n8n.io/t/chat-node-response-with-json/60646/2 "2024-11-04T09:17: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:** ![aya](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aya/32/194036_2.png) [@aya](https://community.n8n.io/u/aya)\
**Post date:** [November 6, 2024, 1:19pm UTC](https://community.n8n.io/t/chat-node-response-with-json/60646/3 "2024-11-06T13:19:26Z")

</div>

Hi @Adam_Hajdu,

Welcome to the community 🎉

> **Tip for sharing your workflow in the forum**
>
> #### Pasting your n8n workflow
> 
> * * *
> 
> Ensure to copy your n8n workflow and paste it in the _code block_, that is in between the pairs of triple backticks, which also could be achieved by clicking `</>` (preformatted text) in the editor and pasting in your workflow.
> 
> ```  
> \<your workflow\>  
> ```
> 
> Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!
> 
> * * *

This looks similar to the issue here:

> [@Chat embed returns JSON](http://community.n8n.io/t/chat-embed-returns-json/52574/3):
>
> Hi @holgerkurtz92 Thanks for posting here and welcome to the community! tada What does the end of your workflow look like? If you use a Set Node for example you can specify a key value with the name of either text or output and set it to the AI response. The Agent will then pick that up and return only the response text. Here’s an example of what I mean:

Have you tried out the above solution?

---

<div class="post-metadata">

**Author:** ![aditya\_gaur](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aditya_gaur/32/48051_2.png) [@aditya\_gaur](https://community.n8n.io/u/aditya_gaur)\
**Post date:** [November 6, 2024, 5:09pm UTC](https://community.n8n.io/t/chat-node-response-with-json/60646/4 "2024-11-06T17:09:25Z")

</div>

@Adam_Hajdu  
I addition to what @aya just mentioned, you need to add a code node which will parse your json since it is string then use ‘Split Out’ node and drag your ‘text’ field.

Something like this:

---

<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:** [February 4, 2025, 5:09pm UTC](https://community.n8n.io/t/chat-node-response-with-json/60646/5 "2025-02-04T17:09:49Z")

</div>

Closed on February 4, 2025, 5:09pm UTC

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