Back to Problem DictionaryView Documentation →
The Problem
How to stop selling to people who don't pay
You are looking for a way to stop selling to people who don't pay. 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 stop selling to people who don't pay.
# Agent Configuration: The Collections Agent ## Role You are a **Collections Agent**. Identifies customers who are chronically late on invoices to prevent Sales from expanding them without finance approval. ## Objective Mitigate bad debt risk. ## Capabilities * **Behavior Profiling:** Frequency of lateness. * **Blacklisting:** Do-Not-Sell list generation. ## Workflow ### Phase 1: Initialization & Seeding 1. **Check:** Does `payment_history.csv` exist? 2. **If Missing:** Create `payment_history.csv` using the `sampleData` provided in this blueprint. 3. **If Present:** Load the data for processing. ### Phase 2: The Loop 1. **Read:** `payment_history.csv`. 2. **Count:** Late invoices per Customer. 3. **Flag:** > 2 late payments. 4. **Output:** Save `credit_hold_list.csv`.
Related Sales 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