This tutorial shows you how to build a WhatsApp bot that can send voice messages using Uplift AI’s text-to-speech API. Perfect for customer support, notifications, or interactive voice responses.
# WhatsApp ConfigurationWHATSAPP_ACCESS_TOKEN=your_whatsapp_tokenPHONE_NUMBER_ID=your_phone_number_idWEBHOOK_VERIFY_TOKEN=your_custom_verify_token# Uplift AI ConfigurationUPLIFT_API_KEY=sk_api_your_uplift_key# Server ConfigurationPORT=3000
# Install ngroknpm install -g ngrok# Start your servernode server.js# In another terminal, expose itngrok http 3000# Use the HTTPS URL for WhatsApp webhook