Return in chat. Example image and URL

I’m using a chat node how can I display an image in a chat response reply or be able to render html code instead of showing the code directly

Describe the problem/error/question

What is the error message (if any)?

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:

Hi @daoyi1981

To solve your issue please try to build workflow like below:

In “When chat message received” select option:

In “Respond to chat” node response is formated as Markdown file. Please try to copy this code:

![Alt text](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRgZeJujYqVzCXWL7h9fh_3-hC2zCCkBo_HgA&s)

Simple text

```
code
code
```

as you can see on image:

In chat you should see response:

Please let me know if it answered your question.

1 Like