Add --priority filter to loop command
Filters accounts by accountPriority (high/medium/low), as exported from Campaign Command Center. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"""CLI entrypoint for the Sales Prospecting Agent Loop (MVP).
|
||||
|
||||
Commands:
|
||||
python run.py loop [--account ID] [--tier strategic|enterprise|growth]
|
||||
python run.py loop [--account ID] [--tier strategic|enterprise|growth] [--priority high|medium|low]
|
||||
python run.py digest [--rep rep_sarah]
|
||||
python run.py feedback --brief ID --action act_on|snooze|reject|won|lost [--note "..."]
|
||||
python run.py recalibrate
|
||||
@@ -29,7 +29,7 @@ def cmd_loop(args):
|
||||
if args.domain_filter:
|
||||
config.EXA_DOMAIN_FILTER = True
|
||||
pipeline.run_all(tier=args.tier, account_id=args.account,
|
||||
limit=args.limit, rep=args.rep)
|
||||
limit=args.limit, rep=args.rep, priority=args.priority)
|
||||
print("\n--- digest preview ---")
|
||||
print(digest_mod.write_digest())
|
||||
|
||||
@@ -148,6 +148,8 @@ def main(argv=None):
|
||||
p_loop = sub.add_parser("loop", help="Run the harvest->deliver loop")
|
||||
p_loop.add_argument("--account", help="single account id")
|
||||
p_loop.add_argument("--tier", choices=["strategic", "enterprise", "growth"])
|
||||
p_loop.add_argument("--priority", choices=["high", "medium", "low"],
|
||||
help="only accounts with this Campaign Command Center priority")
|
||||
p_loop.add_argument("--rep", help="only accounts assigned to this rep (name or id substring)")
|
||||
p_loop.add_argument("--limit", type=int,
|
||||
help="process at most N accounts (strategic + least-recently-run first); "
|
||||
|
||||
Reference in New Issue
Block a user