Jonas
09/04/2025, 1:33 PMVapi Support Bot
09/04/2025, 1:35 PMjson
"hooks": [{
"on": "call.ending",
"filters": [{
"type": "oneOf",
"key": "call.endedReason",
"oneOf": ["assistant-request-returned-error"]
}],
"do": [{
"type": "transfer",
"destination": {
"type": "number",
"number": "+YOUR_FALLBACK_NUMBER"
}
}]
}]
Replace +YOUR_FALLBACK_NUMBER with your actual fallback number. This will automatically transfer calls to your fallback number if the assistant-request fails with the specified error.
Reference: [Assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)
Source:
- [Assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)Vapi Support Bot
09/04/2025, 1:35 PMcall.ending with a filter for assistant-request-returned-error. Example configuration:
json
{
"hooks": [{
"on": "call.ending",
"filters": [{
"type": "oneOf",
"key": "call.endedReason",
"oneOf": ["assistant-request-returned-error"]
}],
"do": [{
"type": "transfer",
"destination": {
"type": "number",
"number": "+1234567890"
}
}]
}]
}
This will automatically transfer the call to your fallback number if the assistant-request fails. For more details, see the [assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks#example-transfer-on-pipeline-error).
Source:
- [Assistant hooks](https://docs.vapi.ai/assistants/assistant-hooks#example-transfer-on-pipeline-error)Jonas
09/04/2025, 1:43 PMJonas
09/04/2025, 2:56 PMSlaviSavanovic
09/04/2025, 7:45 PMJonas
09/07/2025, 2:02 PMJonas
09/07/2025, 2:02 PMSlaviSavanovic
09/07/2025, 6:46 PM