To automate WhatsApp messages using Bottle and Twilio, one needs to create a local server with the Bottle web framework, install the Twilio library, set up a Twilio account and Sandbox for WhatsApp, expose the local port online dynamically using Localtunnel, and configure the callback URL. The backend server can then process incoming messages from the WhatsApp Sandbox and send suitable responses back to users.