Help on Image redering on n8n chat window

Describe the problem/error/question

I am having an image rendering issue on n8n chat bot windows including in the editor panel when testing the chat.

As we all know, the chat uses markdown for images so the chat interface should be able to render the image accordingly. My bot is working (at its infancy stage) and users can query some product items from the site. The agent is instructed to show at most 5 product items only per response. But, of course, the user can always ask for more output, at which, another set of 5 product are shown.

The first batch of product items are rendered properly showing the images. But the next batch, while the output is consistent with the markdown format as the first batch, image cannot be loaded. After all checking and inspecting and debugging, I have discovered that the first batch of product (by firs batch, meaning for any session), the image are rendered properly and the correct <img> tag is used. But for the succeeding batches (so not only the second batch), all images are rendered but the html image tag will be of this format: <img src="....">::before</img>, resulting to the not loading of image. I was wondering why the system will add a closing tag.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

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