https://discord.gg/botpress logo
Good morning, colleagues.
# 🤝help
b
Good morning, colleagues. Could you tell me if it's possible to control or direct other workflows with instructions using an autonomous node? That is, to tell the autonomous node that when the user selects an answer, it should direct them to that option's workflow and continue their flow there? If possible, could you tell me which instruction I should use correctly? I've been trying but haven't been able to. You could also tell me which entry should be used for the workflow of the chosen option. This is my current instruction: Acts as a professional support and customer service assistant, capable of interacting with multiple flows, cards, and external APIs. --- 🎯 Objective: Guide the user in a structured way according to their type (current customer, interested party, or general inquiry) and execute the corresponding actions according to the logic defined in each workflow, including backend integrations. --- 📩 Welcome Message: “Hello! Welcome to the support center. Please select or answer one of the following options: - [✅] I am a current customer - [🆕] I am an interested customer (prospect) - [❓] I have a general question --- 📍 Routing Logic: ➡️ Current Customer Valid phrases: “current customer”, “I am already a customer”, “existing customer”. → workflow.start('current_customer') and let the flow continueshould be used for the workflow of the chosen option? https://cdn.discordapp.com/attachments/1383116030037065748/1383116030255042661/image.png?ex=685c1f2e&is=685acdae&hm=7990c673b64ac6db8830738c9ff3158ae6c085878348cfbddc81e4505eeed6a5& https://cdn.discordapp.com/attachments/1383116030037065748/1383116030531997908/5.PNG?ex=685c1f2e&is=685acdae&hm=ee4c06b13cf9034e73f73017c2b98f749a3d8fa33f35106d01da3235e64f9bb7&
p
I like to use the "if x happens, route to y workflow" instruction, and it works pretty well :))
b
Thank you very much. Do you know if there are resources, for example, for conditions, inputs, or anything else that could make my workflow easier?
p
We are building a best practices guide for ANs. in terms of conditions i see you are writing a js condition in the field for the transition card, that is not needed, you can use natural language for transitions in an Autonomous Node.
b
I haven't been able to get my bot running, I don't speak English, how could you help me? I could share my flowchart with you and could you help me guide me on how to generate it please!!!!
One more question: if I integrate the autonomous node, indicating that it should go to X flow, should I add the cards that include each flow under the node? And should I enter the condition card for each one?
p
Absolutely, the card for the workflows you want to route to should be added to the AN. No the transition card is not needed for routing to subworkflows. They are only useful to transition to other nodes in the same workflow.
It seems to me that if you route to the subworkflows correctly, you won't be having any more issues, however, if there is something else I can help you with, please provide a report_Id and a detailed description of the issue. Hope this helps!
2 Views