Hi Botpress community,
Iām on Botpress Cloud using an Autonomous Node (Gemini 2.0 Flash). Iām trying to use KnowledgeAgent as a āmenu source of truthā for structured options, but I canāt get it to run on the turns where I need it.
Goal
I want my autonomous node to use knowledgeAgent.knowledgequery to search the bot's Knowledge Base for valid options (e.g., business types, amenities, and other tags) during discovery turns. The user often describes what they want in plain language, and I want the agent to silently consult KB to pick matching options (single-select + multi-select), then proceed.
The Problem:
Even though my System Prompt explicitly instructs the node to use the knowledgeAgent.knowledgequery tool (the KB card) to verify terms from the user's input, the tool is never invoked. My logs consistently show:
"debug KnowledgeAgent hook Skipping KB: disabled for the current turn"
Hypothesis
After debugging, my suspicion is that KnowledgeAgent might only be enabled/triggered when the user asks an explicit question (i.e., "knowledge lookup" turns), whereas my discovery turns are more like "intent / preference capture" and not phrased as a question. That would explain why KB is disabled even though I have a Search Knowledge card and prompt instructions.
Workaround
To keep moving, Iām currently preloading the option lists into conversation variables (menus) and forcing the model to only choose from those variables. This works, but itās not ideal, I'd prefer querying the KB dynamically from the autonomous node.
Questions:
1) Is there a way to force the Knowledge Agent hook to stay enabled for all turns within a specific Autonomous Node?
2) If KnowledgeAgent is intentionally question-triggered, whatās the recommended pattern for "structured option lookup"? (Custom tool, separate flow/node type, different card configuration, etc.)
Thanks in advance!
https://cdn.discordapp.com/attachments/1472588022154264710/1472588022611447869/Screenshot_2026-02-15_073332.png?ex=69931df7&is=6991cc77&hm=623b7aeb1195602500e1eecccef82a244adcb2961ffaa4fd10d91b3a84a39c4f&