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

# Route inbound leads | Human guide

> Ask your agent to route inbound leads with a visible exception queue.

```deepline-prompt theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Test our inbound routing policy on these labeled leads. Return proposed owners, preserved owners, and exceptions with the rule behind each decision.
```

The agent tests your routing rules against labeled leads and returns owner proposals with evidence and rule reasons. Live routing and CRM writes stay disabled while you check the decisions.

## Build a useful routing sample

Provide stable event/lead IDs, resolved contact and company identities, eligibility and suppression rules, territories, protected owners, and an owner map. Apply the rules in explicit order. Label unknown eligibility/geography, ambiguous identity, conflicting rules, and invalid mappings. Return source/destination IDs, prior/proposed owner, evidence, rule reason, and policy version.

> [!TIP]
>
> * Compare proposals with labels; count assignments, preserved owners, policy exceptions, and request failures separately. Unknown territory stays unresolved; a failed lookup is not an ineligible lead.
> * Test repeated events and an owner change between proposal and write. Review expected usage before the lookup pilot.
> * For approved HubSpot updates, verify property names and contact/owner IDs, recheck protected owners, and read back. [Repair CRM records](https://deepline.com/docs/human/guides/crm-data-quality-automation.md) covers field precedence and uncertain writes.

[Review and operate a workflow](https://deepline.com/docs/human/templates.md#review-and-operate-a-workflow) covers authorization, pilots, and recovery.

[Agent guide: CLI and SDK instructions →](https://deepline.com/docs/guides/inbound-lead-routing.md)


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