microsoft/azure-ai-foundry-whatsapp-bot — reverse-engineered prompt
Reverse engineered prompt
Build me a Python WhatsApp transcription bot like this repo describes. I want someone to be able to forward a voice note to my WhatsApp Business number, then the app should receive it through a webhook, check that it is a voice message, send the audio to an Azure OpenAI Whisper model deployed in Azure AI Foundry, and reply in WhatsApp with the transcribed text.
Use Azure Functions for the webhook part and keep the code simple enough for me to deploy and understand. Put secrets and IDs in environment variables, not hardcoded. Include clear setup notes for the Azure resources, the Meta for Developers WhatsApp setup, the webhook URL, and the local test flow.
Please also add basic error handling so if the message is not audio, or the transcription fails, the user gets a friendly response instead of nothing. Look up current Azure and Meta docs online if you need to.
Want more depth? Deep Reverse