Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

audit: fix marketing_strategy_agent - add docstrings, add tagline, fix em dashes, improve README

Tiioluwani59ce711979c4
diff --git a/ai_agents/marketing_strategy_agent/.env.example b/ai_agents/marketing_strategy_agent/.env.example
index b239e5b..db50313 100644
--- a/ai_agents/marketing_strategy_agent/.env.example
+++ b/ai_agents/marketing_strategy_agent/.env.example
@@ -1,5 +1,5 @@
-# Orq.ai API key — get one at orq.ai
+# Orq.ai API key used to route requests to deepseek-v4-flash. Get yours free at https://orq.ai
ORQ_API_KEY=your-orq-api-key
-# Serper API key for web search — get one free at serper.dev
+# Serper API key used for web search by the Market Analyst agent. Get yours free at https://serper.dev
SERPER_API_KEY=your-serper-api-key
diff --git a/ai_agents/marketing_strategy_agent/README.md b/ai_agents/marketing_strategy_agent/README.md
index b4a57ef..8823b16 100644
--- a/ai_agents/marketing_strategy_agent/README.md
+++ b/ai_agents/marketing_strategy_agent/README.md
@@ -1,5 +1,7 @@
# Marketing Strategy Agent
+> Generate a full marketing campaign from a product description and target audience using three specialist AI agents working in sequence.
+
A multi-agent system that develops comprehensive marketing campaigns from a product description and target audience. Three specialist agents work sequentially, each building on the previous output to produce a full campaign plan.
## Demo
@@ -30,7 +32,7 @@ Describe your product and target audience, and three AI agents handle the rest.
## Prerequisites
- Python 3.10 or later
-- An Orq.ai account and API key at [orq.ai](https://orq.ai)
+- An Orq.ai account and API key at [orq.ai](https://orq.ai) (free tier available)
- A Serper API key at [serper.dev](https://serper.dev) (free tier available)
## Installation
@@ -41,7 +43,11 @@ cd Hands-On-AI-Engineering/ai_agents/marketing_strategy_agent
cp .env.example .env
```
-Add your `ORQ_API_KEY` and `SERPER_API_KEY` to `.env`.
+Add your `ORQ_API_KEY` and `SERPER_API_KEY` to `.env`, then install dependencies:
+
+```bash
+uv sync
+```
## Usage
@@ -101,3 +107,7 @@ ad copy, social posts, content ideas, and a launch week playbook
▼
Results displayed across three tabs in the Gradio UI
```
+
+---
+
+[⬆ Back to Top](#marketing-strategy-agent)
diff --git a/ai_agents/marketing_strategy_agent/app.py b/ai_agents/marketing_strategy_agent/app.py
index dc619da..4d1d673 100644
--- a/ai_agents/marketing_strategy_agent/app.py
+++ b/ai_agents/marketing_strategy_agent/app.py
@@ -163,6 +163,7 @@ body, .gradio-container {
# -- Core function -------------------------------------------------------------
def generate_campaign(product_description: str, target_audience: str):
+ """Run the three-agent pipeline and yield progressive outputs for each Gradio tab."""
product_description = product_description.strip()
target_audience = target_audience.strip()
diff --git a/ai_agents/marketing_strategy_agent/marketing_strategy_agent/pipeline.py b/ai_agents/marketing_strategy_agent/marketing_strategy_agent/pipeline.py
index 83ebd31..d5e1ff7 100644
--- a/ai_agents/marketing_strategy_agent/marketing_strategy_agent/pipeline.py
+++ b/ai_agents/marketing_strategy_agent/marketing_strategy_agent/pipeline.py
@@ -13,6 +13,7 @@ from .agents import run_creative_director, run_market_analyst, run_strategy_offi
@dataclass
class CampaignResult:
+ """Holds the outputs of all three agents from a single campaign generation run."""
research: str
strategy: str
creative: str