https://discord.gg/botpress logo
Link issue in chatbot
# 🤝help
f
Hi Botpress I’m running into a recurring issue with links in the embedded Botpress Cloud webchat: When the bot returns an answer that contains a URL, the webchat renders it as a link bubble / suggestion chip Clicking the link does not open the URL Instead, the text of the link is sent back as user input, causing the bot to loop or re‑answer the same message Details: Webchat embedded via standard snippet Links appear both from Rich Text content and Autonomous Node AI answers Tested in Chrome and Edge (latest versions) Behavior is the same: clicking the link just injects the text as user input Expected behavior: A link in a bot message should be clickable and open in a new tab Links should not trigger the suggestion chip behavior unless explicitly configured Questions: Is there a recommended way to force links to render as proper hyperlinks in Botpress Cloud webchat? Can we disable automatic suggestion chip rendering for links globally? Is there any planned fix or workaround to avoid the looping behavior when users click links?
p
Are you asking it to create a button? If your prompt has something like "share the link" it should be in the proper (non-button) format.
f
Thanks for your reply. I am not asking it to create a button no. To clarify the issue: When my bot outputs a message that contains a URL, the Botpress webchat often renders it as a quick reply button / chip instead of a normal hyperlink. Clicking that button does not open the link. Instead, it just sends the link text back as user input, which often makes the bot repeat the same message in a loop. I have tried: Writing the link as Markdown [Link text](https://example.com) Writing the link as plain https://example.com …but the webchat still sometimes turns it into a button that does not actually open the link. What I would like to know is: Is there a way to disable automatic link-to-button conversion in the Botpress webchat? Alternatively, is there a way to make these automatically created buttons open the link in a new tab instead of sending the text back as input? Right now, the behavior is confusing for users because the bot suggests links as buttons, but clicking them does nothing useful. Thanks in advance for your guidance!
p
The button creation is not automatic, it's about how you prompt your autonomous node. You could update your prompt to explicitly mention links should never be sent as buttons or do so in the policy agent. If neither of these work, you can send a report id and I can find a solution for your bot specifically.
f
It is not working. In policy agent I have written "- All links must be displayed as full, clickable hyperlinks. You must not show links as suggested replies or buttons (Quick Replies). Instead, use regular hyperlinks that open in a new window. - Never use links in chat - always show full URL like https://www" And system keeps showing links as buttons. When clicking the button it just repeats text - not opening the link anyway: HOW do I get rid of these buttons? https://cdn.discordapp.com/attachments/1402665871440220261/1410317114388250714/image.png?ex=68b093aa&is=68af422a&hm=c46c9b8b5e6427f930d3dad5daf45c223169468a6c62b8504fe755cebb2aed48&
8 Views