# AI Meme Generator Agent - Browser Use

> The AI Meme Generator Agent is a powerful browser automation tool that creates memes using AI agents. This app combines multi-LLM capabilities with automated browser interactions to generate memes based on text prompts through direct website manipulation.

- Source: https://doutorai.pt/en/apps/ai-meme-generator-agent-browseruse
- Category: Starter Agents
- Difficulty: Easy
- Models: OpenAI, Claude, Gemini, DeepSeek
- Frameworks: -
- Runs locally?: Needs cloud APIs
- Required keys: None
- License: Apache-2.0
- Site: Doutor AI (https://doutorai.pt/en) - AI tools for small businesses

## Full tutorial

# 🥸 AI Meme Generator Agent - Browser Use

The AI Meme Generator Agent is a powerful browser automation tool that creates memes using AI agents. This app combines multi-LLM capabilities with automated browser interactions to generate memes based on text prompts through direct website manipulation.

## Features

- **Multi-LLM Support**
  - Claude 3.5 Sonnet (Anthropic)
  - GPT-4o (OpenAI)
  - Deepseek v3 (Deepseek)
  - Automatic model switching with API key validation

- **Browser Automation**:
  - Direct interaction with imgflip.com meme templates
  - Automated search for relevant meme formats
  - Dynamic text insertion for top/bottom captions
  - Image link extraction from generated memes

- **Smart Generation Workflow**:
  - Action verb extraction from prompts
  - Metaphorical template matching
  - Multi-step quality validation
  - Automatic retry mechanism for failed generations

- **User-Friendly Interface**:
  - Model configuration sidebar
  - API key management
  - Direct meme preview with clickable links
  - Responsive error handling

API keys required:
- **Anthropic** (for Claude)
- **Deepseek** 
- **OpenAI** (for GPT-4o)

## How to Run

1. **Clone the Repository**:
   ```bash
   git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
   cd starter_ai_agents/ai_meme_generator_agent_browseruse
   ```
2. **Install the dependencies**:
    ```bash
    pip install -r requirements.txt
    ```
    Install `playwright` if needed.
    ```bash
    python -m playwright install --with-deps
    ```
3. **Run the Streamlit app**:
    ```bash
    streamlit run ai_meme_generator_agent.py

    ```

### Running with uv

You can also run this project using [uv](https://docs.astral.sh/uv/), a fast Python package manager, instead of `pip`.

1. **Clone the Repository**:
   ```bash
   git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
   cd starter_ai_agents/ai_meme_generator_agent_browseruse
   ```
2. **Install the dependencies** (this creates a `.venv` and installs everything from `pyproject.toml`/`uv.lock`):
    ```bash
    uv sync
    ```
    Install `playwright`'s browser binaries if needed:
    ```bash
    uv run playwright install --with-deps
    ```
3. **Run the Streamlit app**:
    ```bash
    uv run streamlit run ai_meme_generator_agent.py
    ```

## Save hours every week with AI, no hassle

**Doutor AI** gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further. [See plans →](https://doutorai.pt/en/pricing)

---
Content by Doutor AI (https://doutorai.pt/en). When quoting, please cite the source: https://doutorai.pt/en/apps/ai-meme-generator-agent-browseruse
