TypebotT
Typebot10mo ago
Anthony

Inconsistent Typebot Command execution behavior

Following up with Where are Typebot variables stored? and after playing around with the sendCommand feature, I'm still trying to see if Typebot's Custom Commands can be used to trigger a call a specific function when needed and then resume/go back to where it was in the flow.

I've tried different settings until I found one that seemed to have the expected behavior... until I restarted my bot's preview several times:
It has an inconsistent/random outcome every time it is executed, as you can see in the video.
Sometimes it calls the function first and then resumes the flow, sometimes it responds first and then calls the function, sometimes it duplicates the bubbles in the command etc. without changing any option — only restarting the bot's preview.

I've tried different combinations:
  • with/without the Resume flow after option checked in the Command block
  • with/without the Pause the flow option checked on a 0s Wait block
Content of the script block in the flow:
Typebot.sendCommand("nameValidation")

Is it happening because the time it takes to call the command can vary?
I'm curious as to why it's happening and if it's possible using Commands (while waiting for the upcoming Pods feature)
Was this page helpful?