Context from webhook during active call
# support
b
Does vapi provide a webhook where I can send message/context to assistant during the call and assistant can respond accordingly. Example: Assistant sends a form link to caller who fills the form while the call is active and the assistant will hold the call during this. Once the form is filled, a webhook will be called which will tell the assistant if the form is filled or not and give context to it. Is it possible to do this?
v
Hi @BAARUD, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Create Assistant]() * [Web Calling]() * [Glossary]() * [Web SDK]() -----------------------------
### Answer Yes, Vapi supports a mechanism that can accommodate the scenario you've described. While Vapi's documentation directly does not detail a feature explicitly for holding a call while waiting for external input (like a form being filled), it does provide for complex interaction patterns through server URLs and the ability to send and receive data during a call. Server URLs in Vapi can receive real-time conversation data and communicate with Vapi during conversations. This includes receiving status updates, transcript updates, function calls, and assistant requests among others [(1)]() . By leveraging these capabilities, you can implement a workflow where your server receives a notification (via a server URL) when certain actions are taken (e.g., a form is submitted), and then instruct the assistant on how to proceed next based on the received context. Moreover, Vapi's
Tools Calling
feature allows for the creation and configuration of tools that can execute functions during a call. Your server can provide results and context back to the assistant in real-time [(2)]() . This means you could configure a tool to wait for a webhook notification indicating that a form has been filled, and then continue the call based on the form data received. Additionally, you can use the
.send()
method in the Web SDK to send intermediate messages to the assistant during a call, allowing for dynamic interactions based on external events or inputs [(3)]() . While a direct "hold and wait" function is not explicitly mentioned, the combination of Server URLs, Tools Calling, and the flexibility provided by the Web SDK offers a powerful framework to implement the workflow you described. You would need to manage the logi
c on your server to interpret the form submission and then communicate the next steps back to Vapi's assistant accordingly.
s
Currently, no. We don't support any context during an active call.
2 Views