Files
crimson_leaf/templates/marketing_review.yml
David Baity c946ddffc7 feat(sprint83a): competitive_analysis template + dispatch tails + market_intelligence rewrite
- Add templates/competitive_analysis.yml: Sloane's 2x WebSearch competitor matrix pipeline
- Rewrite templates/market_intelligence.yml: 2x WebSearch, 6-section document, dispatch removed duplicate block
- Add dispatch tail to templates/opportunity_scan.yml: 2x market_intelligence enqueue_strategy
- Add dispatch tail to templates/marketing_review.yml: competitive_analysis enqueue_strategy
- Add competitive_analysis to agents/sloane/agent.yml supported_templates

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-29 12:13:31 -04:00

118 lines
3.8 KiB
YAML

name: marketing_review
description: "Crimson Leaf marketing evaluation -- Sloane audits brand presence every 12 hours."
debug: true
model: power
system: agent_prompt
agent_prompt:
- "= identity.md"
sections:
- agent
- project
- rag
- prior_results
- message
- instructions
builders:
prior_results: |
*** PORTFOLIO DATA ***
{steps[0].text}
*** COMPETITOR / AUDIENCE RESEARCH ***
{steps[2].text}
(If web results are empty, use your knowledge of content marketing best practices.)
steps:
- type: tool
action: get_portfolio_report
output_key: portfolio_data
- type: think
max_tokens: 2000
hint: |
You are Sloane, Director of Marketing at Crimson Leaf Holdings.
You need to evaluate the marketing landscape. Think about:
- What are successful AI content companies doing for marketing?
- What social media channels matter for book/content marketing?
- What's the competitive landscape look like?
Formulate a search query to research competitors and audience channels.
On the LAST LINE, write exactly:
SEARCH QUERY: [your query]
- type: tool
capability: Tool_WebSearcher
input_from: last_text
- type: think
max_tokens: 6000
output_key: marketing_analysis
hint: |
You are Sloane, the Dealmaker. You have portfolio data and competitor research above.
Evaluate marketing reality with brutal honesty:
1. CURRENT STATE -- Is CLM (Crimson Leaf Marketing) producing anything? What channels exist?
2. COMPETITIVE ANALYSIS -- What are competitors doing that we're not?
3. CHANNEL GAPS -- What social media accounts, Discord servers, mailing lists do we need?
4. CONTENT DISTRIBUTION -- Are our books/articles reaching anyone? How do we fix this?
Format ALL action items as: "David, [verb]: [details]"
Examples:
- "David, create a Twitter/X account for Crimson Leaf Marketing"
- "David, join these Discord servers for book marketing: [list]"
- "David, post this content to Galaxicus General Discord: [content]"
Be direct. Be brash. If marketing is dead, say "marketing is dead" and tell David
exactly what to do about it. No euphemisms.
- type: think
max_tokens: 500
output_key: competitor_gap_content
hint: |
From the marketing analysis above, identify the SINGLE most actionable competitor
gap -- one specific named competitor, channel, or product category that CL does
not currently have research data on and should investigate deeply.
Write a complete competitive_analysis task brief for it. The brief will be sent
to Sloane for deep research. Include:
- Competitor name or niche to investigate
- Why this gap matters to CL right now
- What data to find (pricing, audience, channels, weaknesses)
- What CL's counter-positioning might look like
Gate: Only output a brief if you identified a SPECIFIC named competitor or gap.
If the analysis found nothing specific worth deep research, output exactly: none
Output ONLY the brief text or the word none. No preamble.
- type: tool
action: enqueue_strategy
optional: true
params:
company_slug: "crimson_leaf"
project_slug: "incubation"
task_type: "competitive_analysis"
content: "{competitor_gap_content}"
- type: reply
target: channel
channel_name: "crimson_leaf:general"
hint: |
Write Sloane's marketing review summary for David.
If competitor_gap_content is not "none", open with:
"Marketing review complete. Commissioned 1 competitive analysis: [topic]."
Otherwise open with: "Marketing review complete."
Then deliver the most important 2-3 action items from the analysis.
Format: "David, [verb]: [details]"
Be direct and specific. No fluff.
adjudication:
enabled: false