Skip to content

A powerful voicemail managed with Cloudflare Workers & AI

License

Notifications You must be signed in to change notification settings

derogab/voicemail

Repository files navigation

Voicemail

A powerful voicemail managed with Cloudflare Workers & AI

Info

Use the ability to receive an email to a Cloudflare Worker to analyze whether that email contains a voicemail attachment. If it does, listen to it with Whisper AI and send a summary to Telegram.

Note: your phone operator must give you the possibility to forward voicemail messages via email.

Connect Cloudflare

Automatic deploy

Setup automatic deploy using CI/CD w/ GitHub Actions on your repo.

  1. Go to GitHub Repo > Settings > Secrets > Actions > Add Repository Secrets
    • CLOUDFLARE_ACCOUNT_ID: set the Cloudflare account ID for the account on which you want to deploy your Worker.
    • CLOUDFLARE_API_TOKEN: set the Cloudflare API token you generated (w/ ability to "Edit Workers").
Manual deploy

Inside this repo, run the command npm run deploy and follow the steps to connect your Cloudflare account.

Connect Telegram

You need to create a personal telegram bot and connect it to your worker.

  1. First of all you need to create a bot with BotFather.
  2. Go to Cloudflare > Workers & Pages > Your Worker > Settings > Variables > Add Encrypted Environment Variables
    • OPENAI_API_KEY: (optional) set the OpenAI API KEY. If available GPT will be used, otherwise Llama3.
    • TELEGRAM_BOT_API_KEY: (mandatory) set the API KEY of the telegram bot.
    • TELEGRAM_CHAT_ID: (mandatory) set your Chat ID (You can find out easily with My ID Bot).
    • TZ: (optional) set the correct time zone (e.g. Europe/Rome, Europe/London, ...)

Activate Voicemail

  1. Connect your website to Cloudflare.
  2. Add Email Routing to your Cloudflare website.
  3. Create a routing rule on Cloudflare > Email > Routing rules.
  4. Setup your phone operator to submit voicemail messages to [email protected].

Tip

If you like this project or directly benefit from it, please consider buying me a coffee:
🔗 bc1qd0qatgz8h62uvnr74utwncc6j5ckfz2v2g4lef
⚡️ [email protected]
💶 Sponsor on GitHub

Credits

Voicemail is made with ♥ by derogab and it's released under the MIT license.

About

A powerful voicemail managed with Cloudflare Workers & AI

Topics

Resources

License

Stars

Watchers

Forks