Dynamically jump to previous step
I was wondering if it was possible to store the current step (the current place where a user is) in a variable.
And then using the Jump feature to dynamically jump to the location stored in a variable ?
So to have a more dynamic jump approach, where the destination can be stored in a variable ?
I ask this because I have quite a complex bot, with multiple categories of Q&A with content I wrote.
But the user can "jump to an AI" Loop whenever he wants, if the Q&A is not enough.
However, I would like to store in a variable where the user was "before". And when the user is done with the AI Loop, jump him back to where he was, using a "dynamic" approach.
I think it's a big no-no. I don't know the internals of TypeBot but I guess there's some sort of state machine and what I ask probably break all of this state machine logic.
2 Replies
Instead of using the Jump block, you can use the Link to typebot block. With it you can also point to the current bot, to any group and the difference with the Jump block is that once it's over, it returns to where it was initially
Does that work for you?
Good idea, I haven't thought of that !
I didn't know the Jump to another typebot was not acting in a same way as a Jump.
I'll probably need to double-check my bots because I wasn't expecting that.