A Twilio Serverless Function that emails Voice Intelligence Conversation Summaries using SendGrid.
- A Twilo account configured with Voice Intelligence that has the Conversation Summary Language Operator enabled
- A Sendgrid account and Sendgrid API Key that allows sending email
- Twilio CLI installed
- Twilio Serverless Toolkit installed
git clone https://github.com/danohn/vi-conversation-summary-email.git
cd vi-conversation-summary-email
mv .env.example .env
nano .env
(replace placeholders with real values)twilio serverless:deploy
Once the serverless function has been deployed, copy the callback function URL e.g. https://vi-conversation-summary-email-1234-dev.twil.io/callback
and set it as the Webhook under Twilio Console > Voice Intelligence > Services > Service > Webhooks
.