My bot keeps inventing menus, structures, and links that don’t exist in our system. For example, it suggests menu items that aren’t part of our software and generates URLs that are not real. This confuses our users.
What we have tried
Added a strict policy agent with rules:
Only answer from Knowledge Base
Never invent menus, features, or links
Only use URLs provided in KB
Always show full URLs, never buttons/quick replies/code blocks
If no answer, fallback: “I am not sure – Email us at support@websitename.com
.”
Rewrote our High-Level Instructions (scope, tone, special rules) to reinforce these rules
Cleaned up our Knowledge Base into structured Q&A entries with full URLs only (no hidden “here” links)
Removed “Search the web” from sources
Result
The bot sometimes follows the rules but still hallucinates menus and links.
If I make the fallback stricter, the bot then answers “I don’t know” too often, even when the KB has relevant info.
Question
What is the recommended way in Botpress Cloud to force the agent to:
- Never invent menu items or URLs not in the KB
- Always prefer the KB over making up content
- Still give relevant answers without falling back too aggressively
- Is there a best practice for configuring KB retrieval threshold + fallback + policy agent to prevent hallucinated menus/links?
Thanks in advance 🙏