- Goal: Find personalized restaurant recommendations and plan the perfect date using AI-powered search and scoring.
- AI Integration: Uses OpenAI to generate search queries and score restaurants based on user preferences.
- Concurrent Sessions: Runs multiple browser sessions simultaneously to search different restaurant sites in parallel.
- Web Automation: Automates restaurant discovery, availability checking, and reservation attempts.
- act: perform UI actions from a prompt (search, click, type) Docs → https://docs.stagehand.dev/basics/act
- extract: pull structured data from pages using schemas Docs → https://docs.stagehand.dev/basics/extract
- concurrent sessions: run multiple browser sessions simultaneously for faster searching Docs → https://docs.browserbase.com/guides/concurrency-rate-limits
- cd python/date-planner
- python -m venv venv
- source venv/bin/activate # On Windows: venv\Scripts\activate
- pip install -r requirements.txt
- cp .env.example .env
- Add your Browserbase API key, Project ID, and OpenAI API key to .env
- python main.py
- Prompts user for date preferences, cuisine, location, budget, and special requirements
- Generates search queries using OpenAI based on user input
- Runs concurrent browser sessions to search restaurant sites (OpenTable, Yelp, etc.)
- Extracts restaurant data using structured schemas
- AI-scores restaurants based on user preferences
- Attempts to check availability and make reservations
- Suggests nearby activities to extend the date
- Displays comprehensive date plan with primary restaurant, backups, and activities
- "ModuleNotFoundError": ensure all dependencies are installed via pip
- Missing credentials: verify .env contains all required API keys
- Search failures: check internet connection and website accessibility
- Import errors: activate your virtual environment if you created one
- Reservation failures: some restaurants may require manual booking
• Date planning: Find restaurants based on preferences, check availability, and suggest activities • Restaurant discovery: AI-powered search across multiple platforms with intelligent scoring • Event planning: Extend functionality for group dining, special occasions, and venue booking • Travel planning: Adapt for finding restaurants in different cities with local recommendations
• Add more restaurant platforms: Integrate with Resy, SevenRooms, and local booking sites • Enhanced AI scoring: Include factors like ambiance, dietary restrictions, and seasonal menus • Activity integration: Connect with event APIs, movie times, and local attractions • Calendar integration: Sync with user calendars and send reminders
📚 Stagehand Docs: https://docs.stagehand.dev/v3/first-steps/introduction 🎮 Browserbase: https://www.browserbase.com 💡 Try it out: https://www.browserbase.com/playground 🔧 Templates: https://www.browserbase.com/templates 📧 Need help? support@browserbase.com