Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 11, 2022 09:27 am GMT

Call to Whatsapp message

Overview of My Submission

Some times we can not answer calls and can't respond to them on call for some time, so instead of rejecting their call and telling them to text, we get thier messege and convert it to text and whatsapp it to our own number.

Submission Category:

Wacky Wildcards

Link to Code on GitHub

GitHub logo abhigoyani / callToWhatsapp

Uses deepgram to convert incoming calls into text and send it to the whatsapp.

callToWhatsapp

Overview of My Submission

Some times we can not answer calls and can't respond to them on call for some time, so instead of rejecting their call and telling them to text, we get thier messege and convert it to text and whatsapp it to our own number.

Prerequisites

  • python
  • DeepGram API key
  • Twilio Python Helper Library
  • Twilio WhatsApp sandbox
  • Subscribed to twilio whatsapp sandbox from your number

Installation

Export Following environment variables

  • RECORD_STS_WEBHOOK
  • TWILIO_ACCOUNT_SID
  • RECORD_STS_WEBHOOK (webhook URL for recording status updates)
  • DEEPGRAM_API_KEY
  • TWILIO_WHATSAPP_NO
  • PERSONAL_WHATSAPP_NO

Now run the flask app which is main.py

Now whenever someone calls your Twilio number Twilio will record the call and once the call ends our flask application will receive a webhook call.Once our application receives a webhook called DeepGram will take the recording and returns the Text of that recording which will be sent to our number via WhatsApp.

Whatsapp msg




Prerequisites

  • python
  • DeepGram API key
  • Twilio Python Helper Library
  • Twilio WhatsApp sandbox
  • Subscribed to twilio whatsapp sandbox from your number

Installation

Export Following environment variables

  • RECORD_STS_WEBHOOK
  • TWILIO_ACCOUNT_SID
  • RECORD_STS_WEBHOOK (webhook URL for recording status updates)
  • DEEPGRAM_API_KEY
  • TWILIO_WHATSAPP_NO
  • PERSONAL_WHATSAPP_NO

Now run the flask app which is main.py

Now whenever someone calls your Twilio number Twilio will record the call and once the call ends our flask application will receive a webhook call.
Once our application receives a webhook called DeepGram will take the recording and returns the Text of that recording which will be sent to our number via WhatsApp.

Whatsapp msg


Original Link: https://dev.to/abhigoyani/call-to-whatsapp-message-hce

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To