Msg-Use¶
AI-powered message scheduler using browser agents and Gemini. Schedule personalized messages in natural language and let AI compose them intelligently.
[!WARNING] This demo requires browser-use v0.7.7+.
https://browser-use.github.io/media/demos/msg_use.mp4
Features¶
- Agent logs into WhatsApp Web automatically
- Parses natural language scheduling instructions
- Composes personalized messages using AI
- Schedules messages for future delivery or sends immediately
- Persistent session (no repeated QR scanning)
Setup¶
Make sure the newest version of browser-use is installed:
Export your Gemini API key, get it from: Google AI Studio
Clone the repo and cd into the app folder
Initial Login¶
First-time setup requires QR code scanning:
- Scan QR code when browser opens - Session will be saved for future useNormal Usage¶
-
Edit your schedule in
messages.txt: -
Test mode - See what will be sent:
-
Run scheduler:
Programmatic Usage¶
import asyncio
from scheduler import schedule_messages
async def main():
messages = [
"Send hello to John at 15:30",
"Remind Sarah about meeting tomorrow at 9am"
]
await schedule_messages(messages, debug=False)
asyncio.run(main())
Output¶
Example scheduling output:
[
{
"contact": "Magnus",
"original_message": "Hi",
"composed_message": "Hi",
"scheduled_time": "2025-06-13 18:15"
},
{
"contact": "Camila",
"original_message": "I miss her",
"composed_message": "I miss you ❤️",
"scheduled_time": "2025-06-14 20:00"
}
]
Files¶
scheduler.py- Main scheduler scriptlogin.py- One-time login setupmessages.txt- Your message schedule in natural language
License¶
MIT