Back to Community feed
Question

Handle call end in twilio

I am building a conversational voice bot with Twilio and Node.js. Whenever a call ends, I need to send collected data(collected in Twilio autopilot Memory object) to a database. If the user completes the entire question-answer session with the bot, I am able to send the data to a DB. But if the user hangs up the call in between, the execution of functions stops completely. To handle this, I am triggering a function(called callEnd.js) execution on call-end using 'CALL STATUS CHANGES' in the Twilio console. But the event object provided in callEnd parameter does not contain the Memory object. How do I handle this? My objective is to push partially collected/full collected data to DB

How to implement marketing automation?

ActiveCampaign is a marketing and sales automation platform that helps growing businesses meaningfully connect and engage with their customers. Its SaaS platform enables businesses to create optimized customer experiences by automating many behind the scenes processes and communicating with their customers across channels with personalized messages.

Ads

Answers

Pipedrive
Sponsored
Pipedrive is a Flexible, highly focused on driving the sales, and easy-to-use CRM software built by salespeople and marketing professionals with a single goal – to simplify your sales process and assist salespeople in clinching the deals. Using Pipedrive CRM you can focus on the right people at the right time and convert those people into deals.
5 answers, 0 articles
Reply