https://discord.gg/botpress logo
Custom HTTP tools unavailable to AI agent during p...
# 🤝help
v
Hello Botpress team, I'm building an AI agent called Kairos AI — Pastoral Sermon Builder in Botpress Viber. Issue: I created and published two custom HTTP GET tools: -
leer_documento_kairos
— retrieves TXT documents from a URL. -
leer_fragmento_kairos
— retrieves portions of TXT documents using HTTP Range requests. The TXT file is publicly accessible and returns HTTP 200 with
Content-Type: text/plain
. However, when I explicitly ask my agent to use these tools in Preview, it responds that the requested tool is not available. In another test, it used
browse_page
instead. What I've already tried: - Created and saved both HTTP tools. - Configured their request URL and required input. - Published the changes. - Added instructions telling the agent when to use the tools. - Tested the agent again in Preview. Could you please help me determine: 1. Why the custom HTTP tools are not available to the agent at runtime? 2. Whether an additional registration, permission, or configuration step is required. 3. How to verify which tools are exposed to the agent during a Preview conversation. I'm looking for the specific cause and fix, rather than instructions to recreate the tools. Thank you for your help!
a
The key thing I'd investigate is whether those custom HTTP tools are actually registered and exposed to the agent at runtime, rather than just saved and published in the workspace. I'd approach this by checking the tool registration, workflow exposure, and runtime execution logs to identify why the agent isn't recognising the tools and falling back to "browse_page". One question: Are these HTTP tools configured as standalone tools available to the main agent, or are they attached to a specific workflow or node? That distinction could help narrow down where the issue is occurring. I can help you trace this and identify the exact configuration or runtime issue without rebuilding the tools. @victorious-noon-21886
v
Thank you for your response! Both HTTP tools were created as standalone custom tools under Agent Settings → Custom Tools → HTTP in Botpress Viber. They are not attached to any specific workflow or node. Both tools have been saved and published, but the agent reports that they are unavailable during Preview. Could you please guide me on how to verify whether these standalone tools are actually registered and exposed to the main agent at runtime? I would appreciate step-by-step instructions to identify the issue without rebuilding the tools. Thank you!
a
Thanks for clarifying. I think the best approach here is to check whether Botpress is actually exposing those custom tools to the main agent at runtime or whether they're registered but failing during execution. I'd start by looking at the Preview execution logs to see if both tools appear in the agent's available tools list and whether there are any errors when the agent attempts to call them. If you can share a screenshot of that trace, we can narrow down where things are breaking instead of going through the whole setup again. I'm happy to help you investigate this further. We can also discuss it privately and walk through the troubleshooting together. @victorious-noon-21886
v
Thank you for your help! Could you please show me exactly where to find the Preview execution logs or tool trace in the current Botpress Viber interface? I need step-by-step navigation instructions because I haven't been able to locate that section. Once I find it, I'll share a screenshot with you. Thank you!
a
Of course! Let me walk you through it. You can start from your Botpress Studio workspace: 1. Open the Emulator - Open your Kairos AI agent in Studio. - Look for the Emulator panel on the right-hand side. - If it's hidden, press "Ctrl + E" to open it. 2. Run a test - Start a new conversation. - Ask Kairos AI to retrieve a document using "leer_documento_kairos". - Wait for the agent to respond. 3. Open the Inspect window - Look at the agent's response in the Emulator. - Click Inspect on that response. - If the response was handled by an Autonomous Node, you should see its execution details. 4. Check the Tools section - Inside Inspect, look for Tools. - Check whether "leer_documento_kairos" and "leer_fragmento_kairos" appear in the list. - Also check the Iterations section to see whether the agent attempted to invoke either tool. 5. Check the execution logs - Return to the main Studio editor. - Press "Ctrl + J" to open the Event Debugger at the bottom of the editor. - Select the Logs tab to inspect the execution details. The most important thing I need to see is whether both custom tools appear under Inspect → Tools. If possible, share screenshots of that section and the relevant execution logs. That will help us determine whether this is a tool-exposure issue or an invocation failure. We can also discuss this privately if you'd prefer, so we can go through the troubleshooting together.
@victorious-noon-21886 ??
v
Hello! Thank you for your guidance. I need to clarify that I'm working in Botpress Viber (viber.botpress.cloud), not the traditional Botpress Studio interface. I followed your instructions, but I cannot find Inspect → Tools or the Logs / Event Debugger sections in Viber. I also confirmed that my custom tool
leer_documento_kairos
actually runs and returns document content, but the output is truncated before reaching
CLAVE_FINAL
. Could you please show me exactly where to find the execution logs and tool inspection details in the current Botpress Viber interface? If those sections are only available in Studio, what is the equivalent diagnostic method in Viber? Please provide step-by-step navigation instructions. I don't want to change or rebuild my tools. Thank you for your continued help!
a
Thanks for clarifying. That actually helps narrow things down. Since "leer_documento_kairos" is executing successfully and returning document content, I wouldn't assume this is a tool registration issue anymore. The truncation before "CLAVE_FINAL" is worth investigating separately. In Viber, try opening Monitor → Conversations and selecting the Preview conversation where you tested the tool. Also, check Monitor → Simulations if you can reproduce the same request with a flow test. I'd like to establish whether the full document reaches the tool output but gets truncated before the agent receives it, or whether the HTTP response itself is already incomplete. Could you share the approximate size of the TXT file and whether the returned content always stops at the same point? We can also discuss this privately and work through the diagnosis together without changing or rebuilding your existing tools. @victorious-noon-21886
v
Hello Botpress community! I'm still looking for technical assistance with my Kairos AI agent in Botpress Viber. We have confirmed that the custom HTTP tool
leer_documento_kairos
executes successfully and retrieves content from a TXT file. However, the content available to the agent appears truncated, preventing it from reading the end of the document. We also verified that the original TXT file is complete and accessible in a browser. Could another community member or a Botpress technical specialist help us determine where the truncation occurs? We would appreciate step-by-step guidance specifically for Botpress Viber, without rebuilding or modifying our existing tools until the cause is identified. Thank you for your support!
Hello again, BIG JIGGY$$$ and Botpress community. Thank you for your previous guidance. We have confirmed that the custom HTTP tool
leer_documento_kairos
executes successfully and retrieves content from the TXT file. However, the response is truncated before reaching
CLAVE_FINAL
, even though we verified that this value exists at the end of the original file. We would appreciate help determining whether the truncation occurs in the HTTP tool output or when the content is passed to the AI agent. If another Botpress specialist is available to assist, we would greatly appreciate their guidance. We would prefer to diagnose this issue without modifying or rebuilding our existing tools. Thank you for your support!
a
Since the HTTP tool is already executing successfully, I'd focus on comparing the raw HTTP response with the actual output passed back to the agent. That will help isolate whether the truncation is happening at the request/response level or within Botpress's tool-output handling or context limits. I'd start by checking the response length and final characters at each stage, then narrow down the exact point where "CLAVE_FINAL" gets lost. I can help you investigate this directly and work through the issue with you privately without rebuilding your existing tools. @victorious-noon-21886
4 Views