Skip to content

Commit 5df5753

Browse files
cursoragentsahil
andcommitted
Add documentation for bypassing AI with destination
Co-authored-by: sahil <[email protected]>
1 parent 70c9653 commit 5df5753

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

fern/server-url/events.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,40 @@ Respond with either an existing assistant ID, a transient assistant, or transfer
146146
{ "destination": { "type": "number", "phoneNumber": "+11234567890" } }
147147
```
148148

149+
#### Transfer only (skip AI)
150+
151+
If you want to immediately transfer the call without using an assistant, return a `destination` in your `assistant-request` response. This bypasses AI handling.
152+
153+
```json
154+
{
155+
"destination": {
156+
"type": "number",
157+
"phoneNumber": "+14155552671",
158+
"callerId": "{{phoneNumber.number}}",
159+
"extension": "101",
160+
"message": "Connecting you to support."
161+
}
162+
}
163+
```
164+
165+
```json
166+
{
167+
"destination": {
168+
"type": "sip",
169+
"sipUri": "sip:[email protected]",
170+
"sipHeaders": { "X-Account": "gold" },
171+
"message": "Transferring you now."
172+
}
173+
}
174+
```
175+
176+
<Note>
177+
When `destination` is present in the `assistant-request` response, the call forwards immediately and <code>assistantId</code>, <code>assistant</code>, <code>squadId</code>, and <code>squad</code> are ignored.
178+
You must still respond within <strong>7.5 seconds</strong>.
179+
To transfer silently, set <code>destination.message</code> to an empty string.
180+
For caller ID behavior, see <a href="/calls/call-features">Call features</a>.
181+
</Note>
182+
149183
Or return an error message to be spoken to the caller:
150184

151185
```json

0 commit comments

Comments
 (0)