Waiting for Vapi call to end in make

:bullseye: What is your goal?

I have a scenario that works well and sends out a Vapi call to a customer once they submit an interest form, then there is a 300 second sleep delay to wait for the call to end. However, if the call is longer than 5 minutes then the scenario continues while the call is still going, causing issues. I want to make it so that it doesn’t continue until the call ends. There was something I had seen before about using a Vapi watch for end call module or something like that but I’m not seeing one. I know there is a way to connect it to start a second scenario but I was hoping for an easier way. Maybe having a loop that keeps checking for the call end every 30 seconds and continuing when it detects it ends?

:thinking: What is the problem & what have you tried?

The scenario doesn’t wait for the call to end.

Hey Caden

the module that watches for call end is a trigger module and you most likely already have a different trigger module already, this is why you are not seeing it.

Does the rest of the flow need to happen inside the same scenario? Why not built a second scenario that is triggered when the call ends and handle the rest of the data?

1 Like

That is the easier way :slight_smile: Especially when it comes to debugging and maintenance- seriously.

Also, start with the basics and analyze your process step by step: what should happen at each stage of the workflow.
Most likely, you’ll find that using the module that watches the end of the call is the best solution in terms of optimization.

Have a nice day,
Michal