Fix campaign_review: make Tool_WebSearcher steps optional so pipeline continues when tool is offline

This commit is contained in:
2026-04-18 00:29:29 +00:00
parent c2aff1994c
commit bf1a262a13

View File

@@ -3,10 +3,8 @@ description: "CLM performance review -- Leo checks real-world campaign response
debug: true
model: power
system: agent_prompt
agent_prompt:
- "= identity.md"
sections:
- agent
- project
@@ -14,14 +12,15 @@ sections:
- rag
- message
- instructions
steps:
- type: tool
capability: Tool_WebSearcher
optional: true
query: "'{project.name}' romance novel reviews sales Amazon Goodreads TikTok BookTok"
- type: tool
capability: Tool_WebSearcher
optional: true
query: "'{project.name}' romance book social media engagement Instagram Facebook author"
- type: think
@@ -33,6 +32,9 @@ steps:
Review the web search results above for the "{project.name}" campaign.
Also review the campaign deliverables in the DELIVERABLES section.
If no web search results are available (tool offline or no data found), note that
and rate the campaign YELLOW with a recommendation to check again in 1 week.
Analyze campaign performance:
1. REACH: Are people finding the book? Any search results, reviews, mentions?
2. ENGAGEMENT: Any social media traction (TikTok, Instagram, Facebook)?
@@ -45,7 +47,7 @@ steps:
Rate overall performance:
- GREEN: Exceeding expectations -- organic traction, positive reviews, good engagement
- YELLOW: Mixed results -- some traction but underperforming potential
- YELLOW: Mixed results -- some traction but underperforming potential, or too early to assess
- RED: Minimal traction -- the book is not getting discovered
End with exactly:
@@ -65,9 +67,9 @@ steps:
hint: |
Read the performance analysis above.
If performance_rating is GREEN: output exactly: none
If performance_rating is GREEN or YELLOW: output exactly: none
If performance_rating is YELLOW or RED, write a MARKET LEARNINGS report for
If performance_rating is RED, write a MARKET LEARNINGS report for
Crimson Leaf Holdings strategic team. This report will inform the next book.
Include: