This agent uses Pydantic AI and Microsoft's Playwright MCP to browse real estate websites and find properties that match user queries.
- magicbricks.com
- 99acres.com
- housing.com
- nobroker.com
- Search for properties to buy or rent
- Filter by location, price range, number of bedrooms, and other criteria
- Browse multiple real estate websites
- View property details including prices, features, and amenities
- Compare properties across different platforms
- Python 3.8 or higher
- Node.js 18 or higher (for Playwright MCP)
- Anthropic API key for Claude
-
Clone this repository:
git clone https://github.com/yourusername/real-estate-agent.git cd real-estate-agent -
Install required Python packages:
pip install pydantic-ai logfire python-dotenv -
Install the Playwright MCP package:
npm install -g @playwright/mcp@latest -
Create a
.envfile in the project root by copying the example:cp .env.example .envThen add your actual API keys to the
.envfile. Never commit your actual API keys to version control.
Run the agent using Python:
python agent_realestate.py
On first run, the agent will install necessary browser components. Follow the on-screen prompts to interact with the agent.
Here are some example queries you can try:
- "Find 2BHK apartments for rent in Bangalore within 25,000 rupees per month"
- "Show me houses for sale in Mumbai with 3 bedrooms under 1.5 crores"
- "Look for rental properties in Delhi near metro stations"
- "Find newly constructed apartments in Pune with swimming pool"
- "Search for 1BHK flats in Hyderabad on nobroker.com"
If you encounter any issues:
- Make sure you have the latest versions of the dependencies
- Check that your Anthropic API key is valid
- Try running with the
--headlessflag if you're on a system without a display - Verify that you have proper internet connectivity to browse websites
- The agent uses Playwright MCP for browser automation
- Pydantic AI provides the Agent framework with MCP support
- LogFire is used for logging all interactions
- Property search templates are configured for each website
The agent_gmail.py script provides an AI assistant that can help manage your Gmail inbox using natural language commands.
- Send emails with subject, content, and recipients (including CC and BCC)
- Create draft emails without sending
- Read specific emails by ID
- Search emails using Gmail's search syntax
- List emails from inbox, sent, or custom labels
- Mark emails as read/unread
- Move emails to different labels/folders
- Delete emails
- Batch process multiple emails at once
- List all available Gmail labels
- Create, rename, and delete labels
- Ensure you have the required dependencies:
pip install -r requirements.txt
-
Create an OAuth client ID in Google Cloud Platform:
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the Gmail API
- Create OAuth 2.0 credentials (Web or Desktop application)
- Download the credentials as JSON
-
Place your credentials file (named
gcp-oauth.keys.json) in either:- Your current working directory, or
~/.gmail-mcp/directory
-
Set your Anthropic API key in the
.envfile:
ANTHROPIC_API_KEY=your_api_key_here
Run the Gmail agent:
python agent_gmail.py
The first time you run the agent, it will guide you through the OAuth authentication process to connect to your Gmail account.
After authentication, you can interact with your Gmail inbox using natural language commands like:
- "Show me my unread emails"
- "Search for emails from [email protected] with attachments"
- "Send an email to [email protected] with subject Meeting Tomorrow"
- "Create a new label called Projects"
- "Move emails from [email protected] to the Projects label"
Type 'exit', 'quit', or 'bye' to end the session.
The agent_shopify.py script provides an AI assistant that can help manage your Shopify store using natural language commands.
- View and search customers in your Shopify store
- Get customer details and order history
- Create and manage products
- Check inventory levels
- View and process orders
- Manage collections and discounts
- Get store analytics and sales data
- Ensure you have the required dependencies:
pip install -r requirements.txt
- Set up your Shopify credentials in the
.envfile:
SHOPIFY_STORE_URL=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=your_access_token
SHOPIFY_API_VERSION=2024-04
ANTHROPIC_API_KEY=your_anthropic_api_key
- To get your Shopify Access Token:
- Log in to your Shopify Admin
- Go to Apps > Develop apps
- Create a custom app with the necessary scopes
- Generate an admin API access token
Run the Shopify agent:
python agent_shopify.py
You can interact with your Shopify store using natural language commands like:
- "Show me a list of customers"
- "Search for customers who purchased in the last month"
- "Show me inventory for product X"
- "List all orders with status 'unfulfilled'"
- "Show me sales data for last week"
Type 'exit', 'quit', or 'bye' to end the session.
When using this repository:
- Never commit sensitive information like API keys or tokens to git
- Use environment variables for all secrets as shown in
.env.example - Regenerate any tokens or API keys if they are accidentally exposed
- Make sure
.envis in your.gitignorefile (already set up) - For the Gmail agent, store OAuth credentials outside the repository
The agent_reddit.py script provides a specialized market research assistant focused on helping entrepreneurs validate business ideas and research markets using Reddit data.
- Analyze Reddit discussions for startup market validation signals
- Research competitor sentiment and positioning in various markets
- Identify customer pain points and unmet needs
- Analyze pricing strategies and customer reactions
- Track industry trends and emerging opportunities
- Map competitive landscapes and identify market players
- Categorize companies as market leaders, challengers, and new entrants
- Discover emerging startups in any market space
- Generate structured market research reports
- Target business-focused subreddits automatically
- Intelligently formulate search strategies based on query type
- Ensure you have the required dependencies:
pip install -r requirements.txt
-
You can use the Reddit agent in two ways:
- Using
uvx(recommended):agent_reddit.py - Using pip installation:
agent_reddit_pip.py
- Using
-
Set your Anthropic API key in the
.envfile:
ANTHROPIC_API_KEY=your_api_key_here
Run the Reddit Market Research agent:
python agent_reddit.py
Or if you prefer the pip installation:
python agent_reddit_pip.py
You can interact with the agent using natural language queries like:
- "Research market validation for a SaaS project management tool"
- "What pain points do small business owners mention about accounting software?"
- "Analyze competitor sentiment for Notion alternatives"
- "What pricing feedback exists for subscription-based business models?"
- "Find discussions about bootstrapped vs VC-funded startups"
- "Is there demand for a mobile app that helps small businesses manage inventory?"
- "What features do users want in collaboration software?"
- "Who are the main players in the AI design tools market?"
- "Map the competitive landscape for subscription meal kits"
- "Identify emerging startups in the no-code development space"
- "What companies are challenging Shopify in the e-commerce platform market?"
The agent will automatically:
- Identify relevant business subreddits to search
- Generate appropriate search queries
- Apply the right market research framework
- Structure the findings into actionable insights
- Categorize market players by type (leaders, challengers, adjacent)
- Provide specific company names whenever possible
Type 'exit', 'quit', or 'bye' to end the session.
The agent can perform several types of specialized market research:
- Market Validation Analysis - Determine if there's demand for your business idea
- Competitor Analysis - Research strengths and weaknesses of existing players
- Idea Validation - Test if your concept resonates with potential users
- Market Player Analysis - Identify and categorize companies in a market space
When using this repository:
- Never commit sensitive information like API keys or tokens to git
- Use environment variables for all secrets as shown in
.env.example - Regenerate any tokens or API keys if they are accidentally exposed
- Make sure
.envis in your.gitignorefile (already set up) - For the Gmail agent, store OAuth credentials outside the repository