Skip to content

Commit f22404f

Browse files
sahilsuman933cursoragentsahil
authored
Optimize webhook response time (#678)
* Docs: Add assistant-request webhook timeout warning Co-authored-by: sahil <[email protected]> * Fix webhook timeout description Co-authored-by: sahil <[email protected]> * Fix: Clarify webhook timeout reasons Co-authored-by: sahil <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: sahil <[email protected]>
1 parent fea9248 commit f22404f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fern/server-url/events.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ For inbound phone calls, you can specify the assistant dynamically. If a PhoneNu
113113
}
114114
```
115115

116+
<Note>
117+
You must respond to the `assistant-request` webhook within <strong>7.5 seconds end-to-end</strong>. This limit is fixed and not configurable: the telephony provider enforces a 15-second cap, and Vapi reserves ~7.5 seconds for call setup. The timeout value shown elsewhere in the dashboard does not apply to this webhook.
118+
119+
To avoid timeouts:
120+
- Return quickly with an existing <code>assistantId</code> or a minimal assistant, then enrich context asynchronously after the call starts using <a href="/calls/call-features">Live Call Control</a>.
121+
- Host your webhook close to <code>us-west-2</code> to reduce latency, and target &lt; ~6s to allow for network jitter.
122+
</Note>
123+
116124
Respond with either an existing assistant ID, a transient assistant, or transfer destination:
117125

118126
```json

0 commit comments

Comments
 (0)