https://discord.gg/botpress logo
How can I exit a workflow soon as the AN gives out...
# 🤝help
p
You can use a transition with always in the condition cell. In the AN's instruction specify that it should always immediately transition out.
e
that's what I tried but it loops and ignoresthe transition
it's like it's broken
for testing I assigned a variable with the value 0 and said {{workflow.test}} === 0 (which was set to 0 via an execute code card before) to transition
and it still did not transition
so I am just confused
If I put always it skips the AN reply and just transitions immediately.
I want to tranistion soon as the AN sends out the reply in the chat
p
What are you transitioning to, out of curiosity? I tested it with an arbitrary text card after and it worked fine. Can you share what instructions you provided to the autonomous node?
e
Just a standard node.
when copying an always card from the workflows transition and setting true as the condition there it seems to work. But skips the AN reply always
Okey after a bit of testing. When adding a transition card it does not work at all. Maybe I am using it wrong. ie typing true in the conditions does not work
f
Hello y'all, Im facing a similiar issue. Im using a AI-Transition for categorizing the first user message and transition the user to the right workflow. If the user asks questions about the website or the company it transition to a AN for answering questions based on the knowledge bases in a human like conversation. Here starts the issue: I want to transition the user out of the AN when the user asks questions about a new topic or have a another request but nothing I tried (e.q. the always transition or any other conditions) works. It just ignores the transition. I also tried instructing the AN very easy AND very detailed but it still dont work. The AI-Transition works very nice (so far). But Transitioning out of the AN is not. 😦 https://cdn.discordapp.com/attachments/1375150409068445706/1375453637706252419/image.png?ex=6831be85&is=68306d05&hm=c86bca2df18755feb50d0ff5baaacd2b30d79a90eaa57cd63a216f1a9ea157c7&
p
Why do you need to switch nodes when the topic changes?
f
Hi Leanne, thanks for your reply. Because I want to transition the user to specific workflows for specific requests (e.q. buying a house). Because the AN is not the best to identify the topic of a users request I want to transition the user back to the AI-Transition node above if he switches the topic (e.q. from questions about a project on the website to buying a house). The AN should just be a human conversation experience for the user if he have requests which do not have a specific workflow.
e
Not quite, basically have a product search workflow for getting information from a table and a general queries workflow. And the main workflow has my router an.
I did the workflow logic you suggested @prehistoric-airplane-85682 although I am getting double responses from the AN
I am getting a response from the Router and the sub workflows
e.g.
Don't mind the language the reply is basically the same (a bit different cause of the prompt given to each AN)
but why is that happening and how would I eliminate it?
Then other times it just does not transition at all. ie
@prehistoric-airplane-85682 if you could please take a look at this
tysm
p
Right, you seem to be describing having some sort of intent capturing throughout all workflows. The only way to do this since the intent card is deprecated is with the AN. You can place your topic specific workflows within the AN which means it'll identify which topic is being discussed. If you're trying to do the same within each workflow, I would suggest having ai transitions that evaluate whether the topic is still the same at every of your sub-workflows nodes.
Can you send a report ID?
e
sorry, how do I do that?
p
Click on the resource icon in the bottom left corner and then report a bug, please provide detailed info and then paste the report_id generated here.
e
okey, doing it rigth now
report_01JW6FNV37Y6EQEQAMWBR4Z7NT
@prehistoric-airplane-85682 please let me know
p
I'm looking at it.
I'm not sure you sent the right bot, or if so I'm confused as too where the AN transition is supposed to be?
@early-cartoon-84199
e
it's fine i just changed the logic it should work now
thanks regardless tho
p
Okok glad you got it working!
f
Did I understand it right that placing workflow cards inside a AN will have the same result as using AI transition? Do the AN need any instructions or do I just need to name the workflow like a category of the ai transition? Could you please tell me if there is a "best practise" (e.q. prompts, workflows) for having a human like conversation for knowledge base answers and transition the user if any messages send to the AN (for the human like conversation) which are not related to the answers / topic send before? Regardless of what prompt or condition I try, the AN will not identify new topics and also not transition.
p
Yes, placing a workflow card inside an AN acts like an AI transition however like any other actions from the AN giving it nice and clear instructions is important. Can you better explain what approaches you've tried and what your workflow looks like at the moment?
f
sorry for the late reply but I changed my way of bullding the bot. Now I only use 1 main AN (which works as a router and conversational agent at the same time). Everything the AN need to do (help user create a ticket, get relevant contact details, ....) I use workflows as functions. At the moment I think thats how it should work for me. Now Im facing a new issue getting the current time from the timezone of the user but I think I need to create a new topic for this one?
p
Yes ideally, your AN can be tasked with finding that information out though, is it something you've already tried? If so, please elaborate on your attempts and your goal in the new thread. Thanks!
3 Views