Office hours: Build your self-driving GTM engine·Oct 29, 9:00am PT, onlineRegister→
Cargo
  • PrimitivesData ModelsYour companies, contacts and deals, merged from every sourceContextWhat your team knows, as files every agent readsTerritoriesWho sells where, defined onceMailboxesMailboxes in your reps' names, warmed up and kept under limitsToolsThe actions your agents, plays and reps callAgentsAI that researches, decides and writes, reading your contextPlaysWorkflows that run on a trigger or a schedule, with retriesAppsInternal apps for your reps, hosted on Cargo
    Add-onsChrome ExtensionSell faster, right in your browserButtonTrigger AI agents inside your CRMFormTurn any tool into an embeddable formSlackTag Cargo in Slack. It does the GTM workGitHubPlan on every pull request, deploy on merge
    MoreProjectsDefine your entire GTM in codeCLIUse Cargo from your terminalMCPUse Cargo from Claude and ChatGPTDeveloper resourcesCargo API docs, OpenAPI spec, auth docs, webhooks, MCP serverAPI ReferenceExplore the Cargo APIDocumentationLearn how to use CargoIntegrationsConnected to your entire GTM stack
  • VeriffHow Veriff replaced MuleSoft with Cargo under NetSuite, Stripe and SalesforceAugmentHow Augment Code routes developer sign-ups to reps in under an hourWeights & BiasesHow Weights & Biases ships a new purchase signal in 2 days on CargoSee all
  • Pricing
  • Cookbooks
  • Blog
Sign in
Blog

Spot Expansion Moments in Your Customer Base Before Renewal

16 Oct6min read
AurelienAurelien

To spot expansion moments before renewal, judge each customer once, when its won deal turns ten months old: read its purchase history and any dated public event (a funding round, a hiring push, a new leader), label it expansion, at_risk, repeat_purchase, renewal or none with a reason, and send the go-to-market team one list a week. The expansion signals cookbook deploys exactly that on Cargo: a weekly play, a read-only analyst agent, three columns on the account, and one Slack digest.

The problem it solves is that the renewal call is usually the first time anyone looks at a customer since it signed. By then the budget is set. We run the same idea on Cargo’s own customer book: the signal shows up weeks before the renewal, in data you already hold, as long as something reads it on a schedule.

How it works, end to end #

  1. Monday 06:00 UTC, a play picks up won deals entering the window. The play runs on a deals model (gtm_opportunities) and enrolls a deal when it is won, has an account_id, and closed between ten and twelve months ago. It uses changeKinds: ["added"], so a deal enters once and each renewal is judged once, not every Monday for two months.
  2. An analyst agent judges the account. It queries the deals model in SQL for every won deal on that account: if a newer win closed more than two months after the trigger, the account already renewed and gets none. Otherwise it states the cadence across wins and the last price paid. It reads your expansion plays from the workspace context, then runs at most three web searches for public events in the last 120 days, keeping only events with a dated source.
  3. The play writes three columns onto the account, by id. expansion_signal, expansion_reason (the reason, the suggested play and the source URLs) and expansion_signal_at. Nothing else is written: no deal, no contact, no owner. The agent itself has read-only access to both models.
  4. Monday 15:00 UTC, a digest agent posts once. It reads the accounts stamped in the last seven days with a signal other than none, posts one Slack message with at_risk first, then expansion, repeat_purchase and renewal, each line with the reason as written on the account and its owner. A ledger model (expansion_digests) keeps it to one post per ISO week, so a re-run posts nothing.

The five labels mean:

SignalWhat it means
expansionAn outside event or usage pattern says they need more
at_riskAn event puts the renewal itself in doubt, such as layoffs or a new leader
repeat_purchaseThe cadence across won deals says the next order is due
renewalThe anniversary is the moment, nothing more
noneNothing to act on, including an account a newer win already renewed

Run it #

shellscript
npm install -g @cargo-ai/cli
cargo-ai login --email you@company.com      # emailed code, no browser, 100 free credits, no card

cargo-ai project cookbook view expansion-signals    # what it asks you for, before anything is written
cargo-ai project init my-gtm --cookbook expansion-signals && cd my-gtm && npm install
# already have a Cargo project? from its root:
cargo-ai project add cookbook/expansion-signals

Then, before the first deploy:

  • Fill the models. The example ships native accounts and deals models, so it deploys with no CRM connector. A native model starts empty: load accounts, then won deals with their account_id, with cargo-ai storage record create-bulk --model-uuid <uuid> --records '[{"data":{...}}]'. A won deal with no account is never judged.
  • Write your expansion plays into the workspace context (context/expansion-plays.md, from the example in the cookbook). Without it, the suggested play is generic advice.
  • Set the Slack channel id (C...) on the digest and the languageModel on both agents.
  • Plan, then deploy. cargo-ai project plan prints the diff: three models, two agents, the play, two connectors and three folders. cargo-ai project deploy applies it. The play ships disabled: run it by hand on five deals, read each reason against its sources, then enable it and execute it once, because an added play does not backfill deals that entered while it was off.

If your customers and deals live in HubSpot, Salesforce or Attio, the cookbook’s crm-backed variation swaps in connector-backed models and writes the three properties back to the CRM company record by id. Create the three custom properties first: a write to a property that does not exist fails every row.

What it needs and what it costs #

NeedsWhy
A Cargo workspace and @cargo-ai/cliThe project is deployed with cargo-ai project
An authorized Anthropic connectorBoth agents run on it
An authorized Slack connectorThe digest’s only post path
Won deals with an account and a close dateThe trigger and the purchase history

Cost, from the code: the native model writes and Slack’s postMessage carry no Cargo credit price in their action definitions, so the recurring cost is model usage on your Anthropic connector: one analyst run per won deal entering its window each week (with up to three web searches inside it) and one digest run. It scales with how many customers are near renewal, not with the size of the book. Count the window before you enable the play: a SELECT count(*) over the deals model with is_won true and close_date ten to twelve months back.

What it will not do #

  • It does not change a deal, a contact or an owner. The only write is three columns on the account.
  • It does not contact a customer or post anywhere but the one locked Slack channel. Locking the channel on the action is deliberate: the digest names customers and their renewal risk.
  • It does not read product usage. The judgment comes from won deals, your written expansion plays and public events. If usage against plan is your strongest signal (it is ours), that is a column you add, not something the example reads.
  • It does not re-judge in Slack. The digest repeats the reason on the account, so the record and the channel never disagree.
  • It judges an annual book by default. Monthly or two-year contracts change the two close_date values in the play.

Related: Customer expansion revenue strategies covers the playbook side, and track job changes catches a champion who left, the first at-risk signal. To verify who expands in the first place, pair it with a monthly win-loss review.

Frequently asked questions #

No. The example runs on native accounts and deals models you load with the CLI or a sync, so it deploys with only Slack and Anthropic connectors. The crm-backed variation reads HubSpot, Salesforce or Attio instead and writes the signal back to the company record.

Once per renewal. The play enrolls a won deal when its close date enters the ten-to-twelve-month window and uses changeKinds added, so the same deal is not judged again the next Monday. The whole-book variation judges every account on a cadence instead, at one agent run each.

It is told never to invent a deal, amount, event or URL, to keep only events with a dated source, and to return every URL it relied on. The play writes those URLs into the reason on the account, and the agent’s evaluator rubric scores whether any signal other than renewal or none names a dated event with a URL. Pilot on five deals and read each reason against its sources before enabling.

~/run-it-on-cargo/

Build this workflow instead of reading about it.

Cargo is the GTM infrastructure your coding agent builds on: enrichment, scoring, routing and outreach, defined in code and run in production.

Start building
AurelienAurelienOct 16, 2026
On this page
  • How it works, end to end
  • Run it
  • What it needs and what it costs
  • What it will not do
  • Frequently asked questions

Stay Informed with our
weekly Newsletter

Related articlesSee all articles
GTM Engineering
CI/CD for Go-to-Market: What It Means and How to Set It Up

CI/CD for GTM means every change to enrichment, scoring, routing and sequences ships as a pull request that is planned, checked, approved, deployed on merge, logged and reversible. What each software CI/CD step becomes for go-to-market, and how to set it up on Cargo.

AurelienAurelien·Nov 3, 2026
GTM Engineering
Require Approval Before a High-Impact Go-to-Market Change Goes Live

How Cargo holds a go-to-market pull request that would send or spend more than set limits until a reviewer adds the cargo:approve-impact label: the thresholds, what counts as high impact, who should approve, and what the gate does not catch.

AurelienAurelien·Nov 3, 2026
GTM Engineering
Test a Go-to-Market Change Before It Reaches Production

How to test a change to enrichment, scoring, routing or outreach before it runs on every lead: check the project offline, dry run an action, read the plan on the pull request, ship the play switched off and pilot it on 50 records, evaluate agents, and use a second workspace as staging.

AurelienAurelien·Nov 3, 2026

Build the self-driving GTM engine

Your coding agents build it on Cargo.Or our team builds, operates and improves it with you.

Start building
Cargo
Backed byY CombinatorSOC 2 Type IICertified
LinkedinX

Product

Data ModelsContextTerritoriesMailboxesToolsAI AgentsPlaysAppsIntegrationsPricing

Add-ons

Chrome extensionButtonFormSlackGitHub

Build

DocsDeveloper resourcesCargo API docsCargo OpenAPI specCargo auth docsCargo webhooksCargo MCP serverProjectsClaude CodeCodexCursorAll coding agents

Resources

ReportsBlogCustomer storiesCookbooksEnrichmentRoutingSignalsScoringCRM hygieneAd audiencesGTM skillsGTM EngineeringGlossaryCompareCargo x ClayCargo x WorkatoCargo x n8nCargo x DeeplineCargo x DefaultCargo x LeanDataCargo x UnifyCargo x ValleyCargo x Gojiberry

Company

ManifestoCommunityEventsJobsPartners DirectoryPartner Program

Legal

SecurityTerms of servicePrivacy PolicyRefundsDPASupport
© 2026 Cargo
 ////////    ///////    ////////     ////////    ///////
///         ///   ///   ///   ///   ///         ///   ///
///         ///   ///   ///   ///   ///         ///   ///
///         /////////   ////////    ///  ////   ///   ///
///         ///   ///   /// ///     ///   ///   ///   ///
///         ///   ///   ///  ///    ///   ///   ///   ///
 ////////   ///   ///   ///   ///    ///////     ///////

$ npm install -g @cargo-ai/cli