Share feedback, ideas and get community help

Updated 2 days ago

Question about the order of execution of several http requests from third-party APIs

Hi, how are you?

Here's a flow in which I make several requests to third-party APIs. In these requests, I need the user's responses to save the variables and use this content to make the requests. To make it easier, I'll give an example below:

BLOCK A
http request1

INPUTS BLOCK

BLOCK B
http request B

In the "INPUTS BLOCK" I have some inputs in which I use the user's response to send "http request B". However, the problem is that when I start the bot, it starts executing all the requests, which gives an error because I don't yet have the necessary data to make the request.

According to the doc, Typebot compiles the block as a whole before executing it, but I don't understand if it's block by block or the entire block.

Does anyone have any idea if this is correct or if there's a way around it?
B
M
3 comments
Can you provide a reproduction?
It's hard to understand what's going on without a bot example
Good morning! Sorry for the delay in getting back to you.

I finally discovered the problem, looked at other similar issues, and paused the flow so that it wouldn't start making requests.

Anyway, thanks for your attention.
Add a reply
Sign up and join the conversation on Discord