Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions fern/server-url/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,40 @@ Respond with either an existing assistant ID, a transient assistant, or transfer
{ "destination": { "type": "number", "phoneNumber": "+11234567890" } }
```

#### Transfer only (skip AI)

If you want to immediately transfer the call without using an assistant, return a `destination` in your `assistant-request` response. This bypasses AI handling.

```json
{
"destination": {
"type": "number",
"phoneNumber": "+14155552671",
"callerId": "{{phoneNumber.number}}",
"extension": "101",
"message": "Connecting you to support."
}
}
```

```json
{
"destination": {
"type": "sip",
"sipUri": "sip:[email protected]",
"sipHeaders": { "X-Account": "gold" },
"message": "Transferring you now."
}
}
```

<Note>
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.
You must still respond within <strong>7.5 seconds</strong>.
To transfer silently, set <code>destination.message</code> to an empty string.
For caller ID behavior, see <a href="/calls/call-features">Call features</a>.
</Note>

Or return an error message to be spoken to the caller:

```json
Expand Down
Loading