Exceeded maximum wait time in webhook (which is seems to be 1 minute)

:bullseye: What is your goal?

I’m using retell AI, to create a questionnaire, and then I aim to map the extracted variables into a google sheet - for which I’m using Make and it’s webhook tool. I linked the webhook link to the agent, checked the “immediatly as data arrives” option in make, and also activated the scenario.

With this, I chose run once.

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

The problem is, that after about 1 min, Webhook is shutting down, saying that I “Exceeded maximum wait time.” - which is pretty much enough for nothing, and not only I’m not getting the variables from the webhook, but I cannot even view how it went, as it just shuts itself down, and that’s it.

So, I would like to ask, is there any way I can increase the maximum wait time?

Hi @tksrc01

This is a classic example for offline processing. Since you’re giving control of the scenario to the agent (and its indeterministic tool calls) it’s impossible to know how long it’s going to take.

Meanwhile, resources are allocated and the service that triggered the webhook is waiting for a reply.

You probably don’t need to. Your form results don’t depend on the agent’s processing.

Just get whatever data the webhook provides and quickly save it to a fast data store. Then run another scenario from time to time to fetch data from the data store and feed it to the agent in no hurry.

Hope that makes sense.

@damato

Hello @damato !

First, thank you for your fast reply!

Though I’m afraid, I don’t really understand the content of the reply, or I didn’t phase my problem properly - for which I apologize if it is the case.

My case is more like:

I built an ai agent on retell, which is a questionnaire. Every response from a participant is stored into a dynamic variable, and in the end, I would like to see the answers in a google sheet automatically. So, I thought that if I use webhook on make, connect it to the retell agent, then I connect the webhook tool to a google sheet tool, then I can map the variables and it will add new rows as participants responded.

Now in theory, this should work, but first, I need to determine the data structure in the webhook tool, so I can map it to the google sheets corresponding column. - And for it to get the data structure, I need to go through the questionnaire at least once, so it can collect all the dynamic variables - which then can be mapped.

But because the webhook exceed the maximum wait time after 1 minutes, the dynamic variable collecting interrupts, and thus, I don’t get anything from it, so I cannot map it.

So this is why I want to increase the maximum wait time. - Or if I can solve my problem with any other way, I’m open to it of course. - But currently this is my idea, as a begginner.

Now that I specified the problem further, what do you think?

And as always, thank you very much, for your input!

Which event are you using for the webhook? call_ended? Retell’s API has extensive documentation on the call object.

Can you share some screenshots of how this is set up?

-Call started

-Call ended

-Call analyzed

All this in here:

In the webhook events.

As you can see, it the webhook is linked into the agent.

As for the make platform, it really is just a webhook tool as for now, it has the link I linked into the retell agent.

So, when I run once the make scenario, as I said, it stops itself after a minute, and the dynamic variable recieving is interrupted with that.