https://discord.gg/botpress logo
How do I get the bot to only use my Knowledge Base...
# šŸ¤help
b
I have set up a new bot with AutomousNode. I have given it explicit instructions to only use the provided knowledge base, however it provides answers and data that are not included in the knowledge base so must be using external data somehow. How can I restrict the bot's answers to my specific infromation?
p
b
@prehistoric-airplane-85682 I did that. It will still answer questions that couldn't be answered by the knowledge base.
r
I have provided the instructions for the autonomous node I have built below in my case the following format is proving to be effective - 1ļøāƒ£ Fetch the User’s Taste Palette Retrieve the user’s taste preferences from workflow.tastePalette. Extract key elements such as: Favorite cuisines → workflow.tastePalette.fav_cuisine Favorite dishes → workflow.tastePalette.fav_dish Dietary restrictions → workflow.tastePalette.restrictions Allergies → workflow.tastePalette.allergies Preferred spice level → workflow.tastePalette.spiciness 2ļøāƒ£ Fetch Available Dishes from the Restaurant Menu Query the knowledge base (restaurant’s menu). Extract: Dish Name Cuisine Type Ingredients List Spiciness Level 3ļøāƒ£ Filter Dishes Based on User Preferences āœ… Step 1: Match Dishes by Favorite Cuisines Check if the dish’s cuisine type is listed in workflow.tastePalette.fav_cuisine. If not, discard the dish. āœ… Step 2: Match Favorite Dishes If a dish name matches workflow.tastePalette.fav_dish, prioritize it in recommendations. āœ… Step 3: Remove Dishes That Violate Dietary Restrictions Exclude dishes containing ingredients that match workflow.tastePalette.restrictions. āœ… Step 4: Remove Dishes That Contain Allergens If a dish has an ingredient that appears in workflow.tastePalette.allergies, discard it. āœ… Step 5: Match Spiciness Preference If a user prefers mild but the dish is spicy, lower its ranking. If a user likes spicy food, prioritize spicier dishes. 4ļøāƒ£ Rank Recommended Dishes Top Priority: Dishes that match both favorite cuisines and favorite dishes. Medium Priority: Dishes that match favorite cuisines but not specific dishes. Lower Priority: Dishes that match some preferences but require minor adjustments (e.g., spice level). https://cdn.discordapp.com/attachments/1391792899347320853/1391817211043123300/image.png?ex=686d4649&is=686bf4c9&hm=ac54ce0021b80febc160e57954b1f4f25d5765137d28c6fb62998cb89b738644& https://cdn.discordapp.com/attachments/1391792899347320853/1391817211387183275/Screenshot_2025-07-07_215351.png?ex=686d4649&is=686bf4c9&hm=66491f4131a94b80044d079816bdedc4d1fbfc124eff25b7c7f38673e3bc0791& https://cdn.discordapp.com/attachments/1391792899347320853/1391817211739639848/Screenshot_2025-07-07_215406.png?ex=686d4649&is=686bf4c9&hm=3e5385f137bbeea00b62c09eee2537d0b98e74a6149ecc9b3a764f32f935b16e&
b
is there any additional instruction to this one method (step by step) for Knowledge Base Agent?
r
So far I don't think so, I believe that you should try this first and then go on modifying as you like on the basis of the results
5 Views