https://discord.gg/botpress logo
Bot keeps inventing links despite strict instructi...
# 🤝help
f
For a long time we’ve had an issue where our Botpress agent keeps generating links that do not exist / are not in our system, even though we have very strict instructions. High-level instructions include e.g.: Only use URLs from the Knowledge Base – never invent links. Always show full clickable URLs (no buttons, quick replies, or code blocks). Do not show source citations. Policy Agent instructions include e.g.: Answer only from the Knowledge Base. Never invent links, menus, features, or functions. Only use URLs from the Knowledge Base. NEVER create links that don’t start with our allowed URL patterns (e.g. [OUR WHITELISTED LINKS HERE]). Problem: The bot still invents links and gives wrong navigation advice, which makes it unusable. How can we reliably enforce that the bot never generates links outside our allowed URL patterns? Example conversations: conv_01KBM9S8DDKNVA3R3TYKR4VV2N conv_01KBKZNCK245N3WFD45EFMWCAE
w
Hey 👋 High level instructions seem good, however the instructions of the policy agent could be reworked given that the Policy agent doesn't "know", i.e. doesn't have as a context, what is from the knowledge base So, if the policy agent is there only to check urls, then it's useless ( and maybe it's even generating false links on top of the possibly right response of your agent
f
Thank you for quick help. I will try to remove from the policy agent and see if that helps 👍 Very kind of you to help! 🙂
12 Views