I’m having an issue with my chat responding with a fixed message.
Currently, I have an edit fields with the key “response” and the value is the message I want, however, the chat responds with the full object, i.e.: { “response” : “…” } instead of just “…” (example)
Also, I tried changing the response method to “reply with webhook” and added the corresponding node, and in it, I put respond with “text” and I put the text but, it doesn’t work well either.
Thanks for posting here and welcome to the community!
The Chat Trigger nodes expects a key named either output or text in order to correctly parse the value.
As you can see this works as expected in your last screenshot, as the output key gets correctly parsed. However, you have defined the value of it in the If node to be a JSON object though { "spam": true }
What is your current workflow? If you can share it I can take a look at the changes you need to make for this to work.
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!