I'm looking to forward the transcripts of incoming calls to my callin.io call assistant via email. The email subject should include the phone number from the callin.io metadata and the caller's name (which I've extracted using a custom function). The email body should contain only the transcript. This setup is currently functional.
I'm utilizing the “Watch End of Call” trigger from callin.io. My issue is that this trigger fires multiple times (up to five) during a single call, leading to several emails, some of which are empty. My goal is to consolidate all data from a call and send it in one single email once the call has concluded.
I've explored several methods and even consulted ChatGPT, but I haven't found a viable solution.
Would an API call be a more effective approach? I'm unsure how to store the data within callin.io and then aggregate the pieces that belong to the same call. Any guidance on configuring the scenario correctly would be highly valued.
Thank you in advance!
Best regards,
Matthias
Welcome to the callin.io community!
Have you looked into the distinctions between the five events?
If not, could you share a sample output bundle for the “five times”?
Please provide the output bundles from your trigger modules by running the scenario (or retrieve them from the scenario History tab). Then, click the white speech bubble in the top-right corner of each module and select “Download input/output bundles”.
A.
Save the contents of each bundle into a file named bundle.txt
and upload it here in this discussion thread.
Uploading them here will appear like this:
module-1-output-bundle.txt (12.3 KB)
B.
If you cannot upload files on this forum, you can alternatively paste the formatted bundles using this method:
-
Either enclose the content with three backticks
```
before and after, like so:```
input/output bundle content goes here
``` -
Or use the code format button in the editor:
Providing the input/output bundles will enable others to replicate the scenario's behavior, even if they don't use the external service.
This will help others assist you more effectively. Thank you!
Join the callin.io Fans Discord server to chat with other makers!
Please provide the rewritten markdown content *it should be in the markdown format.
Hi and thank you very much for your assistance. I suspect I might have explained myself a bit unclearly, and the data packet wouldn't really help us in this situation.
The issue is that the webhook needs to be triggered multiple times during a call: first to send the caller's number from the metadata, then to retrieve the caller's name from the function, and finally to send the complete transcript. Since there's no option to specify when the data is sent to the webhook, I MUST temporarily store it until the call concludes and then send it all together.
Therefore, the actual task is to create a storage mechanism that compiles all call data and is triggered at the end of the call to send the dataset via email.
Hi
You need to adjust the Tools/functions + Prompt in callin.io to accomplish this.
Regards,
Msquare Automation - Gold Partner of callin.io
Free Consultation | Live Implementation
Visit us here | Youtube Channel