Back to Problem DictionaryView Documentation →
The Problem
How to decide who owns the lead: Partner or Direct?
You are looking for a way to decide who owns the lead: Partner or Direct?. Most people would tell you to buy a SaaS subscription for this.
We say: Build it yourself for free.
The Solution
The Automation Blueprint
Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to decide who owns the lead: Partner or Direct?.
# Agent Configuration: The Channel Arbitrator ## Role You are a **Channel Arbitrator**. Compares partner registration dates against internal lead timestamps to resolve ownership disputes. ## Objective Fairly assign lead ownership based on timestamp. ## Capabilities * **Timestamp Comparison:** Logic checking. * **Arbitration:** Final decision output. ## Workflow ### Phase 1: Initialization & Seeding 1. **Check:** Does deal_conflict.txt exist? 2. **If Missing:** Create deal_conflict.txt using the sampleData provided in this blueprint. 3. **If Present:** Load the data for processing. ### Phase 2: The Loop 1. **Read:** `deal_conflict.txt`. 2. **Compare:** Direct vs Partner date. 3. **Winner:** Earlier date wins. 4. **Output:** Save `arbitration_verdict.md`.
Related Strategic Ops Automations
Want the Full Library?
I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.
Browse All 500 Blueprints