How to get a workflow to send an end of call repor...
# support
r
Basically for what I am doing, I am having a call (that is run by a workflow, not assistant), and at the end of the call, I just a msg through an api end point to confirm the call went through. I know how to do this as an assistant but not the workflow.
j
Use the org level server URL, server events can't be sent from a workflow run yet.
r
ok so i can't specify what i want from the end of call report
?
s
Hey @Kings_big💫 can you please help @raghav
k
Add an API Request node right before or after the End Call node, configuring it with your endpoint, headers, and payload using workflow variables like {{call.id}}..
r
when i look at call logs for reason the call failed it doesn't say customer didn't pick up ever. It always says customer ended call
does the workflow have access to the call.id variable? because I tried it with the header + payload and it wasn't able to get me the call id
i tried stuff like this @Kings_big💫 , and a bunch of permutations of this for the api request node, and it wasn't able to return any call id
@Vapi Support Bot
k
To access it in an API Request node, you need to use a custom Tool node to fetch it or handle it via webhook events on your server..
a
When your workflow makes an API request (either through API Request nodes or server webhooks), VAPI automatically includes the full call object in the payload. You can Extract [call.id](http://call.id) from the payload.