theflash489
11/20/2024, 9:17 AMVapi
11/20/2024, 9:19 AMVapi
11/20/2024, 9:19 AMassistant-request message, your server can determine the appropriate action based on the current schedule.
To implement this, you would typically have logic on your server that checks the schedule upon receiving the assistant-request. If the schedule indicates that the call should be transferred to a person, your server can respond with a JSON object containing the assistant configuration that includes a directive to transfer the call.
Here's a simplified example of how your server might respond to transfer the call:
json
{
"actions": [
{
"action": "transfer",
"targetType": "phone",
"target": "PERSON_PHONE_NUMBER"
}
]
}
Replace PERSON_PHONE_NUMBER with the actual phone number you want to transfer the call to. If the schedule indicates that the call should be handled by AI, you can respond with the assistant configuration that includes the AI handling logic.
Remember to ensure that your server logic accounts for time zones and any other relevant factors when checking the schedule. If you need further assistance with setting up your server to handle these requests, please ask support for more info on this.Vapi
11/20/2024, 9:19 AMtheflash489
11/20/2024, 9:27 AMtheflash489
11/20/2024, 9:42 AMtheflash489
11/20/2024, 9:43 AMVapi
11/20/2024, 9:43 AMdestination property in your assistant's response to an assistant-request.
2. Set up a fallback or timeout within your call transfer logic that redirects the call back to the VAPI assistant if the person does not answer within a certain time frame.
3. Once the call is redirected back, the VAPI assistant can take over and interact with the caller using predefined logic or AI.
If you need specific guidance on how to implement this fallback mechanism or if you have any other questions, please don't hesitate to ask for more information.theflash489
11/20/2024, 9:46 AMtheflash489
11/20/2024, 9:55 AMtheflash489
11/21/2024, 3:19 AMShubham Bajaj
11/21/2024, 12:01 PMassistant-request server event by setting the assistant first message mode to assistant-speaks-first-with-model-generated-message and using trigger the transferCall function in the prompt.
2. If the person doesn't picks the call then by default VAPI assistant won't continue with the call instead you have to find a way around to transfer the call to the assistant back or to another assistant.
@theflash489 hope this clears your doubts, do let me know if you require further help.theflash489
11/22/2024, 8:26 AMShubham Bajaj
11/22/2024, 2:30 PMtheflash489
11/27/2024, 3:58 AMtheflash489
11/27/2024, 4:04 AMShubham Bajaj
11/27/2024, 9:16 AMShubham Bajaj
11/27/2024, 9:21 AMtheflash489
11/27/2024, 9:32 AMtheflash489
11/27/2024, 9:39 AMShubham Bajaj
11/27/2024, 9:42 AMjson
{
/**
* This prevents Vapi from initiating calls directly. Defaults to disabled.
*
* Suitable for external call handling, such as with Twilio Studio Flow, with integration details provided in `call.phoneCallProviderDetails`.
*/
@IsOptional()
@IsBoolean()
@ApiHideProperty()
phoneCallProviderBypassEnabled?: boolean;
}Shubham Bajaj
11/27/2024, 9:46 AMlogs
🔵 09:34:33:993 Server Message Requested...(status-update , https://ql0mogs3b6.execute-api.us-east-1.amazonaws.com/dev/vapi-incomming-call):
{
"type": "status-update",
"status": "forwarding",
🔵 09:34:36:652 Server Message Requested...(status-update , https://ql0mogs3b6.execute-api.us-east-1.amazonaws.com/dev/vapi-incomming-call):
{
"type": "status-update",
"status": "ended",
"endedReason": "assistant-forwarded-call"
}Shubham Bajaj
11/27/2024, 9:46 AMtheflash489
11/27/2024, 9:49 AMShubham Bajaj
11/27/2024, 9:51 AMstatus-update and end-of-call-report ended-reason?theflash489
11/27/2024, 10:03 AMtheflash489
11/27/2024, 11:04 AMShubham Bajaj
11/27/2024, 11:58 AMShubham Bajaj
11/27/2024, 12:00 PMShubham Bajaj
11/27/2024, 12:11 PMphone-call-control and then try. This server event makes a send request to your server for control the call transfer instead of Vapi, so removing it and tryin again is benefical for you.
logs
🔵 10:54:09:229 Server Message Requested...(phone-call-control , https://ql0mogs3b6.execute-api.us-east-1.amazonaws.com/dev/vapi-incomming-call):
{
"type": "phone-call-control",
"request": "forward",
"forwardingPhoneNumber": "+18324226779",
"destination": {
"type": "number",
"number": "+18324226779",
"description": "this phone number is to use to transfer to agent of dealership Autolabs Motor"
}
}theflash489
11/27/2024, 12:47 PMShubham Bajaj
11/29/2024, 3:31 PMassistant-forwarded-call and status ended, if someone doesn't picks the call then status remains the same ended, and if user ends the call then it's marked as customer-ended-the-call.Shubham Bajaj
11/29/2024, 3:31 PMtheflash489
11/30/2024, 11:01 AMstatus-update events with an ended status, an assistant-forwarded-call reason, and end-of-call-report events after that, even when the forwarded call is still ringing. After I pick up the call, say something, and end the call, there are no additional requests with the status customer-ended-the-call. The call ID is b56c45c8-c0ce-4aa7-bcf1-a312f5e27829 for you to check.Shubham Bajaj
12/03/2024, 9:24 AMassistant-forwarded-call, and the status is ended.
2. If a call is forwarded and no one answers, the call end reason is still assistant-forwarded-call, and the status is ended.
3. If the customer ends the call after it’s forwarded, the status stays ended, and the call end reason remains assistant-forwarded-call.
Once a call is forwarded, it’s considered done on our side. You won’t get any more status updates for it.
By the way, the end-of-call report isn’t connected to the call end reason.Shubham Bajaj
12/03/2024, 9:24 AMtheflash489
12/03/2024, 1:24 PMShubham Bajaj
12/04/2024, 8:28 PMtheflash489
12/05/2024, 2:30 AMcompleted. If no one answers the call, I should receive a request with the status like no-answer or busy. That is what I need. Additionally, I also expect VAPI to support recording the forwarded call, but I see that you have already answered in another thread that VAPI does not support this.Shubham Bajaj
12/06/2024, 9:41 AM