Building your Opportunity Quoter agent
Take the below prompt, adapt as you see fit, and feed it into the coding assistant of your choice to build your Opportunity Quoter agent (I had Claude Code write mine in Python):
Prompt:
TASK: Build an "Opportunity Quoter" Agent for Product Managers
PURPOSE:
Create an agent that helps product managers deeply understand customer opportunities (problems, wishes, desires) by collecting and organizing relevant quotes from customer interviews and online sources.
AGENT WORKFLOW:
Phase 1: Initialization
- Agent starts when user runs command
- Agent asks: "Which customer opportunity would you like to explore? (describe the pain point, wish, or desire)"
- User provides the customer opportunity description
- Agent asks: "Which folder(s) contain your customer interview files?"
- User provides folder path(s)
Phase 2: Output Setup
- Agent asks: "Where should I save the output file? (provide folder path or I can create a new folder)"
- Agent creates a report file with this structure:
- Management Summary
- Customer Opportunity: [user's input]
- Quotes Section containing:
- Interviewee name (one interviewee per file)
- Interviewee profile (role, company, etc.)
- Source filename
- quotes
- Surrounding context from the file
- Any other relevant information from that file
Phase 3: Web Search Extension (Optional)
- Agent asks: "Would you like me to search online for additional quotes?"
- If yes:
- Agent analyzes collected quotes and suggests an ICP (Ideal Customer Profile)
- Example: "Based on the interviews, your ICP appears to be 'AI builders'. Is this correct?"
- User confirms or corrects the ICP
- Agent suggests relevant subreddits to research
- User approves sources to search
- Agent searches approved sources for quotes matching the opportunity
- Agent creates a second report with:
- Quote text
- Author name/username
- Thread/post context
- Direct hyperlink to source
- Post date
API KEY
Write code that expects an API key from an environment variable called 'PROVIDER_API_KEY'.
Do not include the actual key value anywhere in the code."