Philippa Gust is a weather and wardrobe advisor built with the OpenAI Agents SDK. She fetches local weather data and replies with clothing suggestions using regional dialects.
This repo contains the code that can be deployed on Replit and synced with GitHub for version control.
-
Install dependencies
pip install -r requirements.txt
-
Environment variables
OPENAI_API_KEY– your OpenAI API key.LOCATION– default city or town for the daily briefing (e.g.London).BRIEFING_TIME– time of day (HH:MM, 24h) when the daily job should run. Defaults to07:00.SCHEDULE– set totrueto run continuously with a daily schedule.
python run_daily.py # runs a single briefingTo enable daily scheduling, set SCHEDULE=true in your environment before running the script.
- Create a new Python repl and link it with this GitHub repository.
- Add the required secrets (
OPENAI_API_KEY,LOCATION, etc.) in the Replit Secrets manager. - In
main.py, importrun_dailyor runrun_daily.pydirectly. Enable Always On or use Replit's Scheduled Tasks to trigger the script daily.
Replit can automatically push changes back to GitHub. Connect your repo under the Version Control tab and enable auto-push so that any updates (including daily briefing logs if you choose to save them) are committed.
This project is licensed under the MIT License. See LICENSE for details.