A powerful voicemail managed with Cloudflare Workers & AI
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.
Setup automatic deploy using CI/CD w/ GitHub Actions on your repo.
- 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").
Inside this repo, run the command npm run deploy
and follow the steps to connect your Cloudflare account.
You need to create a personal telegram bot and connect it to your worker.
- First of all you need to create a bot with BotFather.
- 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, ...)
- Connect your website to Cloudflare.
- Add Email Routing to your Cloudflare website.
- Create a routing rule on Cloudflare > Email > Routing rules.
- Custom address:
[email protected]
- Action:
Send to a Worker
- Destination:
voicemail
- Custom address:
- Setup your phone operator to submit voicemail messages to
[email protected]
.
If you like this project or directly benefit from it, please consider buying me a coffee:
🔗 bc1qd0qatgz8h62uvnr74utwncc6j5ckfz2v2g4lef
⚡️ [email protected]
💶 Sponsor on GitHub
Voicemail is made with ♥ by derogab and it's released under the MIT license.