Webhook integration
# support
c
how can I make the webhook trigger in make.com during the call, and not after the call ends
v
message has been deleted
@Chris To trigger a webhook in Make.com (formerly Integromat) during a call, you would typically need to set up the webhook to listen for a specific event that occurs during the call. Here's how you can do it: 1. **Identify the Event**: Determine the event during the call that you want to trigger the webhook. This could be an action like pressing a button, reaching a certain point in an IVR (Interactive Voice Response) system, or a specific phrase being spoken. 2. **Configure the Voice API**: If you're using a Voice API, configure it to send a webhook request to Make.com when the identified event occurs. This usually involves setting up an event listener in your voice application code. 3. **Set Up the Webhook in Make.com**: - Go to Make.com and create a new scenario. - Select the 'Webhooks' service and choose the 'Custom webhook' trigger. - Make.com will provide you with a unique URL for your webhook. - Copy this URL. 4. **Implement the Webhook Call**: - In your voice application, implement the logic to send an HTTP request to the Make.com webhook URL when the event occurs. - This might involve using a
POST
request with relevant data about the call. 5. **Test the Trigger**: Make a test call and perform the action that should trigger the webhook. Ensure that the webhook is being called during the call and not after it ends. 6. **Adjust the Voice Application Logic**: If the webhook is not triggering as expected, you may need to adjust your voice application's logic to ensure the webhook is called at the correct time. Remember, the exact implementation details will depend on the Voice API you are using and the capabilities it provides for triggering webhooks during a call. If you need specific instructions for a particular Voice API, please provide more details, and I can assist you further.
You can continue this conversation by mentioning me in the message.
c
@Vapi How can i setup these settings within VAPI, my assistant is built inside Vapi and not Make.com. Can I send requests with the Server Messages under the Advanced tab in Vapi
v
@Chris Absolutely, you can use the Server Messages feature under the Advanced tab in VAPI to send HTTP requests to external services like Make.com during a call. Here's how you can set it up: 1. **Create a Webhook in Make.com**: - Log in to Make.com and create a new scenario. - Add a 'Webhooks' module and select 'Custom webhook' as the trigger. - Make.com will generate a unique webhook URL for you to send requests to. 2. **Configure Server Messages in VAPI**: - Go to the Advanced tab in your VAPI dashboard. - Locate the Server Messages section. - Set up a new Server Message to trigger on the event you're interested in (e.g., a specific user input or a point in the conversation). - In the Server Message configuration, set the Method to
POST
and paste the Make.com webhook URL into the URL field. - Add any necessary headers or payload that Make.com expects to receive. 3. **Test the Configuration**: - Save your changes in VAPI. - Test the call flow to ensure that when the specified event occurs, VAPI sends the Server Message to the Make.com webhook URL. - Check the scenario logs in Make.com to confirm that the webhook is being triggered during the call. 4. **Adjust as Needed**: - If the webhook isn't triggering as expected, review the event conditions and payload format in VAPI. - Make sure that the Server Message is configured to trigger at the correct point in the call flow. By following these steps, you should be able to integrate VAPI with Make.com and trigger webhooks during a call. If you encounter any issues or need further assistance, please feel free to ask for more information.
c
@Vapi the server messages are conversation-update, end of call report, function call, hang, model output, phone call control, speech update, status update, transcript, tool calls, transfer destination requestion, user interrupted, voice input... Am in the correct place?
v
@Chris Yes, you are in the correct place. The Server Messages section in VAPI is where you can configure different types of events that occur during a call to trigger actions, such as sending a webhook to Make.com. To trigger a webhook during the call, you would typically use one of the following Server Messages: - **`conversation-update`**: Triggered when there is a change in the conversation state. - **`speech update`**: Triggered when there is a speech recognition update. - **`transcript`**: Triggered when a transcript of the conversation is available. - **`tool calls`**: Triggered when a specific tool within VAPI is called. Here's what you can do: 1. Choose the event that best fits the moment you want to trigger the webhook. For example, if you want to send a webhook when a certain phrase is recognized, you might use the
speech update
or
transcript
event. 2. Configure the chosen event to send a webhook: - Click on the event to expand its settings. - Set the URL to the Make.com webhook URL you obtained earlier. - Choose the HTTP method (typically
POST
). - Configure the payload with the necessary data you want to send to Make.com. 3. Test your setup by initiating a call and ensuring that the webhook is triggered at the desired moment during the call. If you need to send a webhook at a specific point in the conversation, you might need to implement logic in your VAPI application to call the
tool calls
event with the necessary parameters to trigger the webhook. If you're unsure about how to configure these settings or if you need more detailed instructions, please let me know, and I can provide further assistance.
c
ok i will use tool calls, but i cant figure out this part: Configure the chosen event to send a webhook: Click on the event to expand its settings. Set the URL to the Make.com webhook URL you obtained earlier. Choose the HTTP method (typically POST). Configure the payload with the necessary data you want to send to Make.com. there is no settings for this @Vapi
v
@Chris I apologize for any confusion. It seems there might be a misunderstanding regarding the capabilities within the VAPI interface. If you're not seeing options to configure a webhook directly within the Server Messages settings, it's possible that VAPI does not provide a direct way to configure outgoing webhooks through the Server Messages interface. In this case, you would need to handle the webhook trigger programmatically within your voice application's logic. Here's a general approach you might take: 1. **Identify the Event**: Determine when during the call you want to trigger the webhook (e.g., after a certain user input or voice command). 2. **Implement the Logic**: Within your voice application's code, write the logic to send an HTTP POST request to the Make.com webhook URL when the event occurs. This would typically involve using an HTTP client library available in your programming environment. 3. **Configure the Payload**: Ensure that the payload of the POST request matches what Make.com expects. This might include call details, user input, or other relevant information. 4. **Test the Webhook**: After implementing the logic, test the call flow to ensure that the webhook is triggered at the correct time and that Make.com receives the data as expected. If VAPI does not provide a built-in feature for outgoing webhooks and you're not familiar with programming such logic, you may need to consult with a developer or reach out to VAPI support for further assistance. If you need help with writing the code to send the webhook or if you have any other questions, please let me know, and I'll do my best to assist you.
c
is there not a way to do this natively in vapi @User
@Vapi
v
@Chris Please ask support for more info on this.
c
@Vapi is there not a way to do this natively in vapi
v
@Chris I apologize for any confusion earlier. If VAPI does not provide a direct interface for configuring webhooks within the Server Messages section, then it's likely that the feature to send webhooks during a call needs to be implemented within the logic of your voice application, using VAPI's tools and functions. However, without specific documentation or details on the VAPI interface and its capabilities, I cannot provide a precise method to set up webhooks natively within VAPI. If VAPI supports custom functions or has a tool that allows for HTTP requests, you would use that feature to send a webhook to Make.com during a call. You would need to configure this tool or function with the Make.com webhook URL and the appropriate payload. If you're unsure about the capabilities of VAPI or how to proceed, I recommend reaching out to VAPI support or consulting the documentation provided for VAPI to get detailed instructions on how to achieve this natively within the platform. For further assistance or if you have additional questions, please let me know, and I'll be happy to help.
c
I saw a video of someone calling the webhook on make.com during the call @Vapi
v
@Chris If you've seen a video where someone is calling a webhook on Make.com during a call using VAPI, then it's likely that VAPI does indeed support triggering webhooks natively during a call. Here's a general approach you might follow based on common practices: 1. **Identify the Event**: Determine the specific event during the call when you want to trigger the webhook. 2. **Configure a Tool or Function in VAPI**: Look for a tool or function within VAPI that allows you to send HTTP requests. This could be a custom function or a predefined tool designed for external communication. 3. **Set Up the Webhook Call**: - Within the tool or function settings, set the request type to
POST
. - Enter the Make.com webhook URL as the endpoint. - Configure the headers and payload according to what Make.com expects to receive. 4. **Link the Event to the Webhook Call**: Ensure that the tool or function you've configured is called in response to the identified event during the call flow. 5. **Test the Configuration**: Initiate a call and test the call flow to ensure that the webhook is triggered at the correct time and that the data is received by Make.com. If you're still unsure about how to set this up in VAPI, you might want to: - Revisit the video for a step-by-step guide. - Check VAPI's documentation for a section on triggering webhooks or sending HTTP requests. - Reach out to VAPI support for specific instructions. If you provide me with more details or context about the video you watched or the specific steps you're trying to replicate, I may be able to offer more targeted advice.
s
93 Views