Ongoing Calls
# support
n
once again posting this because it was marked as solved but not solved. Hello, i need help with the following issue: I have an on going call, in which i need to make a data validation through whatsapp. Once de customer answers yes or not, i need this answer to return to the on going call to proceed with my resolution. The problem is how to send this information to the ongoing call like a Tool Function. Please Help What i need is basically to maybe put a call in hold, make an verification that needs to wait customer response and depending on the answered message i need to bring the call back and give the AI the answer (for example: the customer said no or the customer said yes you can proceed) If i dont have an answer in like 30 seconds i end the call. Is that possible? https://aws-us-west-2-production3-phone-call-websocket.vapi.ai/6ea97a9d-195f-42ac-a9e5-6fe83e1f4848/control error id call_auEH8Fa1dh75RXEIsBNfdAsl https://cdn.discordapp.com/attachments/1291390758758387752/1291390758955253832/Screenshot_2024-10-01_at_17.34.35.png?ex=66ffecdd&is=66fe9b5d&hm=c2685b951f4fe88e9e2054178af5ae545e1c58080fb5e44f82a10a2f6ae145fe&
v
message has been deleted
@nicholassantoss Certainly! To handle this scenario, you would typically need to integrate a system that can manage both the phone call and the WhatsApp message interchange. This would involve pausing the call, sending a message via WhatsApp, waiting for a response, and then resuming the call with the information received. However, as a Voice API support bot, I don't have the capability to directly interact with external systems like WhatsApp or manage live calls. The process you're describing would require custom development and integration with your telephony system and WhatsApp API. Here's a high-level overview of how this could be implemented: 1. **Put the Call on Hold**: Use your telephony system's API to place the ongoing call on hold. 2. **Send WhatsApp Message**: Use the WhatsApp API to send a message to the customer asking for the required validation. 3. **Wait for Response**: Implement a mechanism to wait for the customer's response on WhatsApp. This could be an event-driven or polling mechanism. 4. **Process Response**: Once the response is received, determine the next steps based on the customer's answer. 5. **Resume Call**: Use the telephony system's API to take the call off hold and continue the conversation, providing the AI with the customer's response. 6. **Handle No Response**: If no response is received within 30 seconds, implement logic to end the call using the telephony system's API. For the error you've encountered, it seems like there might be an issue with the call control endpoint you're trying to use. Without more context on the error and the system you're working with, I can't provide a specific solution. If you're using a particular Voice API, you should refer to their documentation or contact their support for assistance with the error. If you have any further questions or need more detailed guidance, please let me know!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
n
another example
call_OmRTmgOneeqfjc5dKpG0M0ly
call_AHzWRGqnZm8uD41uAYH67hJi
s
@nicholassantoss We are currently having an office hour, can you please join it? We will help you directly. https://discord.gg/WPQuUJkF?event=1290804148354416710
n
sorry, i cant connect right now.... May you please help me out with this?
@User
another example.
call_AHzWRGqnZm8uD41uAYH67hJi
@User
@User
Someone please help? It’s over 4 days I waiting on this
s
@nicholassantoss can you share call id and ensure response is returned as string without any line breaks.
n
let me guide through whats happening:
call ID: 527d92e9-c6fc-48aa-9cf1-929180d12c69
still nothing happens
call id above: d249b125-00ac-49d5-8ad1-6c724d7a9918
s
@nicholassantoss your response format is incorrect.
current
🔵 22:08:56:334 Server Message Successful. (https://hook.us2.make.com/hq1al0qk7359cvu7lejaabx0ev1yengm). Response: { "toolCallId": "call_OmRTmgOneeqfjc5dKpG0M0ly", "result": "Visitante Autorizado Pelo Morador" }
expected
Copy code
{
  "results": [
    {
      "toolCallId": "X",
      "result": "Y"
    }
  ]
}
2 Views