https://discord.gg/botpress logo
Providing images accordingly with autonomous node'...
# 🤝help
w
I'm looking for the best practice for a specific design pattern in Botpress and am very open to any advice! My Current Architecture: - I have a Main Orchestrator built as an autonomous node. It manages the entire conversation by calling various Expert Sub-workflows (like Expert_Product, Expert_Workflow, etc.) based on its instructions. - The Orchestrator can call multiple Experts for a single complex query. It is responsible for synthesizing all their responses into one smooth, cohesive answer. Goal & Challenge: - I want to conditionally send an image for specific inquiry (e.g., product accuracy), but I'm facing several challenges with this architecture. - The Expert Sub-workflow can't send an image directly with image card because the final synthesized text might be a blend of multiple topics. - The image must be sent after the main synthesized text response because my Main Orchestrator does the synthesis at the very end. The Decision Logic: The decision of which image to provide (if any) is that it needs to be based on both the initial user input query and the content of the final synthesized answer. I'm stuck on how to build this logi and need some advice how to implement such workflow.
Currently I just have a few specific cases (like product accuracy, etc.) that I want to provide an image with the response.