Command not working well ?
Hello,
I am testing the new COMMAND block. But I have many problems, when I combine it with jump block or event something else, it stops working...
Is it a bug or am I doing something wrong ?
Is it a bug or am I doing something wrong ?
10 Replies
Can you provide a reproduction of the bug? How can I try it?
I have two typebots with the same command "goBack" - this may be the issue. From my code I am sending the "goBack" command like typebot_instance.sendCommand('goBack'); Sometimes it works, sometimes it does not react and sometimes it reacts like the end of the workflow and stops displaying entirely. Sometimes I event get error "Command event not found" ... It is hard for me to replicate in the testing environment . I will investigate further, but so far, these are my guesses.
Ok let me know when you can reproduce it constantly and record a video showing the issue 🙏
I am stupid. It was my mistake, sorry. I executed the goBack command on the linked Typebot, thinking I was in the parent bot. And that's it. I have multiple Typebots linked together. However... now that I think about it, can I store the id of the Typebot in the variable and jump to the typebot via the script (I do not see that option in jump block) ? The goBack command is still useless without this possibility.
Hello @acromacho,
I don't know if that's what you're trying to do, but if I understand correctly, you have 2 bots (let's call them Bot A and Bot B), and you want to start the flow with Bot A, then continue it with Bot B and go back to continuing with Bot A, correct?
In this case, the
Jump to Typebot
block solves all your issues.
What isn't documented is that this block not only jumps to the other Typebot flow but also continues to the original bot's flow when it finished executing all bubbles from the bot it jumped to!
I created a simple "Ping" and "Pong" situation, where Bot A sends "Ping", Bot B sends "Pong", and then Bot A sends "Ping Pong" (to confirm it was sent after the Ping and the Pong).
- 1st screenshot: Ping in Bot A
- 2nd screenshot: Pong in Bot B
- 3rd screenshot: Chat preview with Bot A sending Ping, Bot B responding with Pong, and Bot A continuing the flow with Ping Pong.
Is it what you're trying to achieve?
You won't need the sendCommand block at all if that's the case.
Hope it helps!


I need command block to trigger it outside of the typebot with the button on my page. But you gave me an idea... To set a variable in BOT B and after it is set and it returns back to BOT A , I know if I have triggered the command. This could be my solution. Thanks 🙂


Nice! Glad it helped you find a solution!
I'm very curious and interested:
What is your use case with a button on your page to trigger a command in Typebot?
Like what's on the website, what are you expecting the user to do and what should the bot do as a consequence of that user action?
I've been wanting to see how I can have the front-end website interact with a Typebot bot and the use cases of it
Maybe it could give me some ideas, who knows 👀
@Anthony I am working in healthcare. At the moment I am making enhanced attendance system for patients, collecting health problems before making an appointment. For that I incorporated typebot as a mean to collect various requests. I have there a back button, that is currently enabling patients to go back to the menu. However, I want patients to be able not lose all the progress in the typebot enabling multiple stages of the process.... You can check it at prixi.sk . The website is currently only in slovak version (click on demo or "kontaktuj lekara"). We are only starting. Hopefully it goes all well and we'll be able to expand. Currently it is just a lot of work and stress and investment of lot of money, haha 😀
Oooh, I checked the experience on the website and it's so nicely and seamlessly integrated! (Thank you for providing the steps to try it out, it's much appreciated!)
The website is honestly beautiful and very clear. Did you code it all by yourself (in Vue.js?)?
I truly hope it expands as much as your ambition and beyond! 🤞
Thank you. I appreciate it. Yes, I did it all by myself in Vue.js, using Laravel in the back end 🙂