https://discord.gg/botpress logo
Parallelising Botpress Vision Agent Calls – Can It...
# 🤝help
g
Hi everyone, I’m trying to speed up image-content extraction in Botpress by running the Vision Agent on multiple images at once. Right now I’m using an Autonomous Node with the built-in “Extract from Incoming Images” card, but it processes each extractImageContent call in series and sometimes hits the 15 s timeout when I feed it more than a few images. What I’ve tried so far: - Providing the Autonomous Node with example scripts (IN THE PROMPT, NOT AN ACTION) for it to replicate (didn’t speed it up) - Giving the Autonomous Node very specific instructions on how to loop and return results (no improvement) Also, I’m evaluating whether a custom Action could help. Specifically, I’d like to execute something like this inside an Action (ideally, using a
Promise.all()
to process in parallel instead of series):
Copy code
// The user sent an image, so extract its content, save it, and transition
const imageUrl = "https://files.bpcontent.cloud/2025/07/01/10/20250701103803-BL3K25XM.png";
const imageDescription = await visionAgent.extractImageContent({ imageUrl });
workflow.description = (workflow.description || "") +
  "\n===IMAGE_BREAK===\n" + imageDescription;
workflow.imageUrls = [imageUrl];
workflow.urlsDone = true;
workflow.transition({
  reason:    "you have saved the description",
  condition: "you have saved the description"
});
Questions: 1) Can Botpress Actions invoke await visionAgent.extractImageContent(...) the same way Autonomous Nodes do? 2) If not, are there hidden config flags or internal endpoints to enable this? Any other tips for offloading image extraction into Actions or speeding it up? Thanks in advance! https://cdn.discordapp.com/attachments/1389557349680676935/1389557351325110353/Screenshot_2025-07-01_at_11.44.11.png?ex=68650da1&is=6863bc21&hm=9d3e34311edb444b28ac3a1894ad8c3c4073d59cf1530354ad7087d520c7bade&
2 Views