Hi @white-journalist-83385
Your logs point to Gemini rejecting some calls rather than a Botpress bug. The failures ended in 4-5 s while the success ran for 19 s, which usually means free-tier rate limits (429) or overload (503). The image URL format is the other suspect.
To see the real error, open the full Trace for the turn, or have the tool return the status and body instead of throwing. Then check Google AI Studio's metrics for 23:52.
The lasting fix is retries with backoff on 429/5xx, capped agent retries (yours looped 3 times, costing tokens), and a friendly fallback message. I've set this up on similar bots and can sort yours quickly.
DM me your tool config (key removed) and the failed trace, and I'll tell you the exact cause and fix. Happy to implement it for you too.