# 🎯 Campaign Co-Pilot — Exercise for Marketing Innovation Course

## Overview

Campaign Co-Pilot is an **Agentic AI demo** that takes a product description and autonomously generates a complete marketing campaign in 5 steps — just like a marketing team would, but in seconds.

Students will see how AI agents work: **not just one prompt and one answer**, but a sequence of reasoning steps where each step builds on the previous one.

---

## What is Agentic AI?

Traditional AI chat: You ask → AI answers. One step.

**Agentic AI**: You give a goal → AI plans → executes multiple steps → critiques its own work → delivers a complete result.

Think of it like a junior marketer who doesn't just write one ad, but:
1. Researches the market
2. Defines the audience
3. Creates the positioning
4. Writes content for multiple channels
5. Reviews everything and suggests improvements

...all autonomously.

---

## Exercise: Run Your First AI Campaign

### Step 1: Open the App
Open `index.html` in any web browser. No installation needed.

### Step 2: Provide an API Key (or use Demo Mode)
- **With API key**: Connect to OpenAI, OpenRouter, Groq, or any OpenAI-compatible API
- **Demo mode**: Just uncheck the API toggle — you'll see pre-written examples

### Step 3: Describe a Product
Type any product or service. Real or invented. Examples:
- A sustainable coffee subscription
- An AI fitness app
- Recycled ocean-plastic sneakers
- A vegan bakery delivery service

### Step 4: Watch the Agent Work
Click "Generate Campaign" and observe:
- Each step lights up as the agent works on it
- Click any step to expand and read the output
- The agent moves through 5 stages sequentially

### Step 5: Review the Results
After completion, scroll through the full campaign:
- Market research → Audience → Positioning → Content → Self-critique

---

## Discussion Questions

1. **Which step surprised you most?** Did the agent notice something you wouldn't have?

2. **Critique the AI's work**: What would you change in the campaign? Is the self-critique accurate?

3. **Where does AI excel vs. fall short?** Think about creativity, accuracy, cultural nuance.

4. **What if you changed one input?** Try the same product with a different tone or market. How does the output change?

5. **The "imagination limit"**: What products or services would be too complex for this agent? What would you add?

---

## Bonus Challenge

### Modify the Agent
The app defines 5 steps in the `STEPS` array in the JavaScript. Can you:
1. **Add a 6th step** — e.g., "Budget Allocation" or "KPI Definition"?
2. **Change the order** — what if self-critique came first?
3. **Add a new content channel** — e.g., a YouTube script or podcast ad?

### Compare with Classmates
1. Use the same product as a classmate
2. Compare your campaigns — are they identical or different?
3. Discuss: Why might the same input produce different outputs?

---

## Learning Outcomes

After this exercise, students will understand:

✅ **What Agentic AI is** — multi-step autonomous reasoning, not just Q&A
✅ **How to work with AI agents** — providing good inputs, interpreting outputs
✅ **AI's creative potential** — generating marketing content autonomously
✅ **AI's limitations** — where human judgment still matters
✅ **The building blocks** — prompts, steps, and how they chain together

---

## Technical Notes

- **No backend needed** — the app is a single HTML file
- **API calls** go directly from the browser to the LLM provider
- **Privacy** — API keys stay in the browser, never sent to a server
- **Works offline** — demo mode requires no internet connection

---

## For Instructors

To deploy on your course website:
1. Upload `index.html` to any web server
2. Students open it in their browser — that's it
3. For API access, students need their own key (OpenAI, OpenRouter, etc.)
4. Demo mode works without any keys for classroom demonstrations

**Tip**: Use a projector to run a live demo, then have students try individually or in pairs.

---

_Campaign Co-Pilot — Built for Marketing Innovation education._
_Showing that with Agentic AI, only your imagination is the limit. 🚀_
