How can I add a webhook that will only run after t...
# support
h
I used the server url in the dashboard for my make.com webhook however it runs for every single webhook call which costs my make.com automation a lot of credits, is there any way to only get the webhook to fire during the "end-of-call-report" event?
v
To ensure your Make.com webhook only processes the "end-of-call-report" event, add a filter in your scenario that checks the incoming payload for the event type. For example, use a filter like:
Copy code
json
{
  "message": {
    "type": "end-of-call-report"
  }
}
Set your Make.com scenario to continue only if
message.type
equals
"end-of-call-report"
. This way, your automation will only run for completed calls and save credits. Reference: [Vapi Server Events Documentation](https://docs.vapi.ai/server-url/events) Source: - [Server events](https://docs.vapi.ai/server-url/events)
t
@Haaris-Blackframe fixed this?
d
The Vapi Support Bot wasn't totally helpful there - that would still require the Make webhook to run for every single webhook call sent. The best way to resolve this is to set the `serverMessages `attribute in your Assistant settings to define which messages you want to send. That's not settable through the Dashboard - only via API or through the CLI.
2 Views