This guide will help you set up and personalize your Stevens butler app.
To set up the app with a fresh database, run:
deno run -A initializeApp.ts --clean
This will:
To use all features, you'll need to set these environment variables:
ANTHROPIC_API_KEY
- For AI responses and daily briefingsTELEGRAM_TOKEN
- Your Telegram bot tokenTELEGRAM_CHAT_ID
- Your Telegram chat IDTELEGRAM_SECONDARY_CHAT_ID
- (Optional) Secondary Telegram chat ID for sending briefings to multiple recipientsGOOGLE_CLIENT_ID
- Google API client IDGOOGLE_CLIENT_SECRET
- Google API client secretGOOGLE_REFRESH_TOKEN
- Google OAuth refresh tokenGOOGLE_CALENDAR_ID
- Your Google Calendar ID (or "primary")After setup, you can run individual importers to populate your database:
# Import calendar events deno run -A importers/getCalendarEvents.ts # Import weather data (for Perth, Australia in Celsius) deno run -A importers/getWeather.ts # Generate fun facts deno run -A importers/generateFunFacts.ts
You can manage your database with these utilities:
# Clean the database (remove all data) deno run -A dbUtils/cleanDatabase.ts # Set up the database structure deno run -A dbUtils/setupDatabase.ts
You can personalize Stevens by:
dailyBriefing
directoryThe app is currently configured for:
Access the admin dashboard through Val Town to view your memories and manage your data.
Important: The admin dashboard doesn't have authentication. It relies on security by obscurity. Consider implementing proper authentication if storing sensitive data.
If you encounter issues: