feat(marketing): add product gate guard to campaign_review
Skip review if project description has no ASIN (book not yet published). CLM projects created by kdp_publish always include ASIN in the goal. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -13,6 +13,22 @@ sections:
|
||||
- message
|
||||
- instructions
|
||||
steps:
|
||||
# Guard: only run campaign reviews for projects with a live published book.
|
||||
# CLM projects created by kdp_publish always have "ASIN:" in the project goal.
|
||||
# Projects created prematurely (no published book yet) will not have an ASIN.
|
||||
- type: think
|
||||
max_tokens: 30
|
||||
output_key: product_gate
|
||||
hint: |
|
||||
Read this project description: {project.description}
|
||||
|
||||
If it contains the text "ASIN:" followed by any value, output exactly: PUBLISHED
|
||||
Otherwise output exactly: NO_PRODUCT
|
||||
|
||||
- type: branch
|
||||
condition: "{product_gate} == NO_PRODUCT"
|
||||
target: skip_no_product
|
||||
|
||||
- type: tool
|
||||
capability: Tool_WebSearcher
|
||||
optional: true
|
||||
@@ -102,6 +118,13 @@ steps:
|
||||
- type: close
|
||||
rag_update: true
|
||||
|
||||
- type: label
|
||||
name: skip_no_product
|
||||
|
||||
- type: close
|
||||
rag_update: false
|
||||
|
||||
|
||||
adjudication:
|
||||
enabled: true
|
||||
pass_threshold: 60
|
||||
|
||||
Reference in New Issue
Block a user