I want to send the transcript of incoming calls to my Vapi.ai call assistant via email. The phone number from the Vapi.ai metadata and the caller’s name (extracted via custom function) should be included in the email subject. The email content should contain only the transcript. This configuration already works.
I use the “Watch End of Call” trigger from Vapi.ai. My problem is that this trigger is activated up to five times during a call, resulting in five emails, some of which are empty. I want to collect all the data from a call and send it in a single email after the call ends.
I have tried various approaches and even sought help from ChatGPT but couldn’t find a solution.
Should I solve this better through an API call? Unfortunately, I have no idea how to store the data in Make.com and then aggregate those that belong to a call. Any assistance with the correct configuration of the scenario would be greatly appreciated.
Thank you in advance!
Best regards,
Matthias
Welcome to the Make community!
Have you investigated what are the differences between the five events?
If not, could you provide a sample output bundle of the “five times”?
Please provide the output bundles of the trigger modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A.
Save each bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
Uploading them here will look like this:
module-1-output-bundle.txt (12.3 KB)
B.
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:
-
Either add three backticks ```
before and after the code, like this:
```
input/output bundle content goes here
```
-
Or use the format code button in the editor:
Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
This will allow others to better assist you. Thanks!
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!
Hi and thank you very much for your help. I suspect that I may have expressed myself a bit unclearly, and the data packet would not really help us here.
The problem is that the webhook needs to be triggered multiple times during a call: initially to transmit the caller’s number from the metadata, then to capture the caller’s name from the function, and finally to send the complete transcript. There is no option to set when the data is sent to the webhook, so I MUST store them temporarily until the call is completed and then send them all together.
Therefore, the actual task is to create a storage that compiles all call data and is triggered at the end of the call to send the dataset via email.
Hi @Matthias2
You need to adjust the Tools/functions + Prompt in VAPI to accomplish this.
Video Part 1
Video Part 2
Regards,
Msquare Automation - Gold Partner of Make
Free Consultation | Live Implementation
Visit us here | Youtube Channel