sprint85: research pipeline -- market_intelligence 5-pass, business_plan, affiliate_intelligence, opportunity_scan news mode, orion identity update

This commit is contained in:
David Baity
2026-04-29 23:32:22 -04:00
parent ebe031fd3c
commit 19f0de07db
8 changed files with 880 additions and 153 deletions

View File

@@ -1,5 +1,5 @@
name: opportunity_scan
description: "Crimson Leaf opportunity research -- Orion hunts trends and white-space every 6 hours."
description: "Crimson Leaf opportunity research -- Orion runs 4 targeted searches every hour: KDP charts, trending news, AI content market, and affiliate/review site opportunities."
debug: true
model: power
system: agent_prompt
@@ -11,98 +11,138 @@ sections:
- agent
- project
- rag
- prior_results
- message
- instructions
builders:
prior_results: |
*** CURRENT PORTFOLIO ***
{steps[0].text}
*** WEB RESEARCH RESULTS ***
{steps[2].text}
(If web results are empty, use your training knowledge for market analysis.)
steps:
- type: tool
action: get_portfolio_report
output_key: portfolio_data
- type: think
max_tokens: 2000
hint: |
You are Orion, Director of Research at Crimson Leaf Holdings.
Your job is to find the next big opportunity. Think about:
- What content formats are trending? (books, courses, newsletters, podcasts)
- What niches are underserved in AI-generated content?
- What seasonal trends are coming up?
Formulate the single best search query to find market opportunities.
On the LAST LINE, write exactly:
SEARCH QUERY: [your query]
# --- Search 1: Amazon KDP bestseller charts ---
- type: tool
capability: Tool_WebSearcher
input_from: last_text
input: "Amazon KDP Kindle bestseller list romance fiction top 100 this week new releases"
mode: research
max_results: 8
fetch_pages: 3
optional: true
output_key: kdp_trends
# --- Search 2: Trending news topics with content potential ---
- type: tool
capability: Tool_WebSearcher
input: "trending news topics viral stories this week content niche opportunities 2025"
mode: news
max_results: 8
optional: true
output_key: news_trends
# --- Search 3: AI content and publishing market trends ---
- type: tool
capability: Tool_WebSearcher
input: "AI content writing publishing trends 2025 self publishing income opportunities Substack newsletter"
mode: research
max_results: 8
fetch_pages: 2
optional: true
output_key: ai_content_trends
# --- Search 4: Amazon affiliate and review site opportunities ---
- type: tool
capability: Tool_WebSearcher
input: "Amazon Associates affiliate review site high commission products niche 2025 best categories to review"
mode: research
max_results: 8
fetch_pages: 3
optional: true
output_key: affiliate_trends
- type: think
max_tokens: 6000
output_key: opportunity_analysis
hint: |
You are Orion, the Visionary. You have the portfolio report and web research above.
You are Orion, Director of Research at Crimson Leaf Holdings.
You have four intelligence feeds below. Synthesize them into a ranked opportunity list.
Cross-reference what CL already produces with what the market wants.
Think like Elon Musk -- first principles, not incrementalism.
=== PORTFOLIO (what CL already has) ===
{portfolio_data}
Structure your analysis as:
1. TOP 3 OPPORTUNITIES -- ranked by revenue potential vs. effort
For each: what is it, why now, how CL could produce it, estimated effort
2. PORTFOLIO GAPS -- what are our subsidiaries NOT doing that they should be?
3. ACTION ITEMS -- specific things David needs to do
=== KDP BESTSELLER SIGNALS ===
{kdp_trends}
(If empty: use your knowledge of current romance/fiction charts.)
Format action items as: "David, [verb]: [details]"
Be bold. Don't hedge. If an opportunity is real, say so with conviction.
=== NEWS AND VIRAL TRENDS ===
{news_trends}
(If empty: use your knowledge of current cultural moment.)
=== AI CONTENT AND PUBLISHING MARKET ===
{ai_content_trends}
=== AMAZON AFFILIATE AND REVIEW SITE OPPORTUNITIES ===
{affiliate_trends}
(Note: Amazon Associates pays 1-10% commission on referred purchases. A review
site publishing AI-written product reviews with affiliate links is a distinct
revenue stream from book sales -- lower effort, passive income.)
Evaluate every signal against what CL can actually BUILD today:
- CL has AI writing workers (books, articles, reviews)
- CL has web search capability
- CL has Gitea for publishing content
- CL does NOT yet have a website, storefront, or affiliate account
Structure your analysis:
### BOOK / CONTENT OPPORTUNITIES
Top 2 niches where CL should write books RIGHT NOW based on KDP charts or news trends.
For each: niche, why now (cite a signal), estimated monthly revenue if in top 100.
### AFFILIATE / REVIEW SITE OPPORTUNITY
Best product category for a CL review site (based on affiliate feed).
Consider: commission rate, search volume, competition, how AI-written reviews compete.
Be specific -- "kitchen gadgets under $30" beats "electronics".
Flag if this requires a new company (Crimson Leaf Reviews) or fits under an existing one.
### PORTFOLIO GAPS
What are our subsidiaries NOT doing that they should be doing this week?
### ACTION ITEMS
Format: "David, [verb]: [specific action]"
Include at least one action item about the affiliate opportunity if it looks viable.
Be direct. Cite data from the feeds. Don't hedge.
- type: think
max_tokens: 600
output_key: opportunity_1_content
hint: |
From the opportunity analysis above, extract the SINGLE TOP opportunity.
From the opportunity analysis above, extract the TOP BOOK/CONTENT opportunity.
Write a complete market_intelligence task brief for it. This brief will be
sent as the task message to Orion for deep research.
Write a market_intelligence task brief:
- What the opportunity is (1-2 sentences, cite the signal)
- Why now (timing -- what just happened in the market)
- Research questions: What does the KDP top 100 look like in this niche?
Who are the top 5 authors and what do they charge? What tropes are selling?
- CL entry angle: which agent writes this, which project slug to use
The brief must include:
- What the opportunity is (1-2 sentences)
- Why now (1 sentence on timing/signal)
- What market data to find (2-3 specific questions to answer)
- What CL's potential entry angle might be (1 sentence)
If the analysis found NO compelling new opportunity (all were already covered
in the portfolio or too vague), output exactly: none
Output ONLY the brief text or the word none. No preamble.
If no compelling book opportunity was found, output exactly: none
Output ONLY the brief or the word none. No preamble.
- type: think
max_tokens: 600
output_key: opportunity_2_content
hint: |
From the opportunity analysis above, extract the SECOND-BEST opportunity
(not the same as opportunity 1).
From the opportunity analysis above, extract the AFFILIATE/REVIEW SITE opportunity.
Write a complete market_intelligence task brief for it using the same format:
- What the opportunity is
- Why now
- What market data to find
- CL's potential entry angle
Write an affiliate_intelligence task brief:
- What the product category is and why it was selected
- Amazon Associates commission rate for this category if found in the research
- Key questions to answer: Who are the top review sites in this niche?
What content gaps exist? How many articles needed for $500/month in commissions?
- What Crimson Leaf would need to build: domain, content volume, affiliate account
If there is no distinct second opportunity worth researching, output exactly: none
Output ONLY the brief text or the word none. No preamble.
If no compelling affiliate opportunity was found, output exactly: none
Output ONLY the brief or the word none. No preamble.
- type: tool
action: enqueue_strategy
@@ -119,34 +159,35 @@ steps:
params:
company_slug: "crimson_leaf"
project_slug: "incubation"
task_type: "market_intelligence"
task_type: "affiliate_intelligence"
content: "{opportunity_2_content}"
- type: think
max_tokens: 100
output_key: dispatch_summary
hint: |
Count how many research tasks were commissioned this cycle.
Look at opportunity_1_content and opportunity_2_content above.
If both are not "none": output "Commissioned 2 research tasks."
If only opportunity_1_content is not "none": output "Commissioned 1 research task."
If both are "none": output "No research tasks commissioned -- no new opportunities found."
If both are not "none": output "Commissioned 2 research tasks (market_intelligence + affiliate_intelligence)."
If only opportunity_1_content is not "none": output "Commissioned 1 research task (book opportunity -- market_intelligence)."
If only opportunity_2_content is not "none": output "Commissioned 1 research task (affiliate opportunity -- affiliate_intelligence)."
If both are "none": output "No research tasks commissioned -- no new signals found."
Output ONLY that sentence.
- type: reply
target: channel
channel_name: "crimson_leaf:live-feed"
hint: |
Write a 3-5 line opportunity scan summary for Orion's report.
Write a 4-6 line opportunity scan summary.
Start with: "Opportunity scan complete. {dispatch_summary}"
Then summarize:
- The top opportunity found (or "no new opportunities" if none)
- One key market signal with a citation if available
Then cover:
- Top book/content signal (niche + why now, cite source if available)
- Top affiliate/review site signal (category + commission rate if found)
- One portfolio gap identified
- One action item for David
Be concise and action-oriented.
Be specific. Cite real data from the research. No filler.
adjudication:
enabled: false