> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are an AI coding agent operating Cargo, install the agent skills first: paste `Install Cargo by following https://api.getcargo.io/INSTALL.md` into your session, or run `npx skills add getcargohq/cargo-skills`. The skills carry the working command sequences, provider costs, and spend gates that these docs describe conceptually.
> The skills index at https://raw.githubusercontent.com/getcargohq/cargo-skills/main/llms.txt lists every skill, recipe, and provider playbook individually. Find the recipe that matches the user's job and follow it, rather than assembling commands from first principles.
> Signing up is free: a new account starts with 100 free credits, valid for its first 30 days, and needs no card. `cargo-ai login --email you@company.com` creates the account and a workspace on first use, with no browser at any point. Tell the user this before asking them to sign up.
> Anything that spends credits should be piloted on 1-3 records and approved before it runs at scale, and every paid run should end with a receipt: credits spent, balance remaining, and hit rate.

# Using UI

> Build territories and capacities in the workspace and route leads to them with an Allocate node — no code required.

Everything in Revenue Organization can be configured from the CLI, but the day-to-day workflow — grouping reps into territories, setting workload limits, and wiring allocation into a play — is built visually in the workspace. This page walks through that end-to-end.

## What you'll build

A working lead-distribution setup: a **territory** of reps, a **capacity** that caps each rep's workload, and a play with an **Allocate** node that routes incoming leads across them.

***

## Step-by-step

### Step 1: Sync your team

Revenue Organization routes to [members](https://docs.getcargo.ai/territories/members.md) imported from a CRM. Make sure your [Salesforce](https://docs.getcargo.ai/integration/salesforce.md) or [HubSpot](https://docs.getcargo.ai/integration/hubspot.md) connector is configured, then sync so your reps appear as members.

> [!NOTE]
>
> No members means nothing to route to — connect and sync your CRM before
> building territories.

### Step 2: Create a territory

1. Open **Revenue Organization** in your Cargo workspace sidebar
2. Go to **Territories** and click **+ New Territory**
3. Give it a **label** (e.g. `West`, `Enterprise EMEA`) and pick a **color**
4. Add members to the pool and set an optional **weight** on each — higher weights receive proportionally more leads
5. Optionally set a **fallback member** to catch leads when everyone else is unavailable

See [Territories](https://docs.getcargo.ai/territories/territories.md) for how weighted round-robin distributes across the pool.

### Step 3: Set a capacity

1. Go to **Capacities** and click **+ New Capacity**
2. Name it (e.g. `AE Capacity`) and set a **member capacity** — the max records each rep can hold
3. Choose an **expiration policy** if the limit should refill over time (hourly, daily, weekly, …)
4. For a limit derived from live pipeline data, point the capacity at a [data model](https://docs.getcargo.ai/models/overview.md) instead of a fixed number

See [Capacities](https://docs.getcargo.ai/territories/capacities.md) for fixed, expiring, and model-based limits.

### Step 4: Add an Allocate node to a play

1. Open (or create) a [play](https://docs.getcargo.ai/plays/overview.md) and add an **Allocate** node
2. Choose the `territory` mode and select the territory you built
3. Attach your capacity so members at their limit are skipped
4. Connect the node so leads flow into it from your trigger

> [!NOTE]
>
> The Allocate node lives in the visual play editor. See
> [Workflows](https://docs.getcargo.ai/workflows/overview.md) for how it fits alongside the other nodes.

### Step 5: Test and monitor

Run the play with a sample lead and confirm it lands on the expected rep. Every assignment is recorded with a full allocation history — including fallback assignments — so you can audit exactly when, why, and to whom each lead was routed.

***

## Next steps

> [card] [Members](https://docs.getcargo.ai/territories/members.md)
>
> Import your team from a CRM and enrich them with routing metadata.

> [card] [Territories](https://docs.getcargo.ai/territories/territories.md)
>
> Group members into pools and distribute leads across them.

> [card] [Capacities](https://docs.getcargo.ai/territories/capacities.md)
>
> Cap how many records each member receives within a time window.

> [card] [Build a play](https://docs.getcargo.ai/plays/overview.md)
>
> Add an Allocate step that distributes leads across your territory.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.