https://discord.gg/botpress logo
code block
# 🤝help
f
Hi Botpress team, Our chatbot randomly (especially when mentioning our email address) puts parts of the answer inside code blocks. It looks terrible in the chat UI. In our bot instructions, we have explicitly written: - NEVER codeblocks (not with mailto:) Despite this, the bot still formats the output with triple backticks or in a code block style. Could you clarify: Why is this happening even though the system prompt clearly forbids code blocks? Is there a way to force the model/output renderer to never use code block formatting? Could this be linked to the email address format or hyperlink parsing? We would like the model to always output plain text or clickable links, never code-formatted text. Thanks in advance, https://cdn.discordapp.com/attachments/1403262168174170272/1403262168333422663/image.png?ex=6896e93c&is=689597bc&hm=b2bcb110755fd1fa7fa61b26847c12b35b9d431ac0fd477d0980d173ab043644&
e
you can prompt it "do not use code blocks" and it will fix. But I had the same weird issue
f
Thank you - as mentioned, I explicit already instructed bot not to - but it keeps doing it:-(
p
You can try the policy agent with the same instruction.
f
Hi Leanne, Thanks for the suggestion. Unfortunately, I’m not on the Pro plan but pay as I go, so I don’t have access to the Policy Agent feature. Do you know if there’s another way to achieve the same effect without upgrading?
p
f
Thank you! I will try that!
2 Views