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

How to Build Multi-Step Sales Automation Workflows with AI Agents

17 Nov10min read
AurelienAurelien

To build a multi-step sales automation workflow, separate the steps that must be deterministic (enrich, match, route, write to the CRM) from the steps that need judgment (research, qualify, draft), and run all of them on one orchestration layer that retries, records and versions every step. The platform question is then not which tool has the most agents, but which one gives you control over how steps connect, what happens when one fails, and how much of the setup you have to rebuild by hand every time the process changes.

Building the first version of a sales workflow has become easy. A coding agent can write one in an afternoon, and a no-code builder can wire one in less. What stays hard is the second month: the workflow that quietly stopped when an API quota ran out, the qualification agent whose prompt drifted, the lead that went to the wrong rep with no record of why.

What makes a sales workflow multi-step? #

A single automation does one thing when one thing happens: a form is submitted, a Slack message is posted. A multi-step workflow carries a record through a sequence where each step depends on the one before it. A typical inbound example:

  1. A sign-up arrives and is matched to an existing account, or creates one.
  2. The account is enriched with firmographics and the contact’s work email is verified.
  3. An agent researches the company and writes a short brief.
  4. A qualification step decides whether the account fits, using the brief and the enriched fields.
  5. A routing rule assigns an owner by territory and capacity.
  6. The CRM is updated, and the owner is notified where they work.

Six steps, at least four systems, two language model calls. Every step can fail independently, and every failure has a different correct response: retry the enrichment, skip the brief, hold the qualification for a person, never send the notification twice. That is the work orchestration does, and it is why “agents for sales automation” is really a question about the layer the agents run on.

How do you assess platforms for multi-step, multi-agent sales workflows? #

Treat orchestration as the control layer for revenue work and assess it on four separate criteria. Vendors tend to blur them together, and the blur is where surprises come from.

CriterionThe question to askWhat a weak answer looks like
Workflow flexibilityCan a step branch, loop, wait, or call any tool or agent, and can I express it in code?Only the templates the vendor ships, edited through forms
End-to-end orchestrationDoes one run cover the whole path from trigger to CRM write, with one trace?Each step lives in a different tool, joined by webhooks
Multi-agent coordinationCan agents hand work to each other and to deterministic steps, sharing the same data?Each agent has its own copy of context and its own connectors
Manual setupWhat do I configure by hand per workflow, and what is declared once and reused?Credentials, field maps and retry rules re-entered in every flow

Two further properties decide whether a workflow is reliable in production rather than in a demo.

Recovery. When step four fails on record 312 of 2,000, what happens? A reliable runtime retries the failed step with backoff, keeps the steps that already succeeded, and does not re-run side effects such as a CRM write or a message. If the answer is “rerun the batch”, every failure becomes a risk of duplicates.

Deployment model. How does a change reach production? If editing a live workflow in a UI is the only path, there is no review, no diff and no rollback. If the workflow is a file, a change is a pull request someone can read before it ships.

Framework or platform?

A thread on r/AI_Agents asks a question many teams reach eventually: “What are your thoughts on using LangChain for building workflows or a multi-agent setup?” Agent frameworks are good at the inside of an agent: prompts, tool calls, memory. They leave the outside to you: where the agent runs, what triggers it, how it authenticates to your CRM, what happens on failure, and where the record of its decisions lives.

For sales use cases the outside is the larger share of the work, because sales workflows are mostly integration. On a framework you build the runtime too; on a platform, check that its runtime gives you the control a framework would, using the table above.

How do you build agents for qualification, research and daily sales engagement? #

Start with the task, not the agent. An agent is the right tool for a step that needs judgment over unstructured input: reading a company’s website and deciding whether it sells to developers, summarising a call, drafting a first reply. It is the wrong tool for a step with a correct answer: matching a domain to an account, picking an owner from a territory table, deciding whether a contact is on a suppression list. Put those in deterministic steps and let agents call them.

For each sales agent, define five things before choosing how to build it:

  • Input. The exact fields and documents the agent reads. A qualification agent reading the enriched account and a research brief is testable. One reading “everything about the company” is not.
  • Decision rule. What the agent decides and the vocabulary it decides in: qualified, not qualified, needs review. A free-text verdict cannot drive a routing step.
  • Tools. Which actions it may call, and which are off limits. A research agent needs search and enrichment, not CRM write access.
  • Test set. A handful of real records with known correct answers, run every time the prompt changes.
  • Human review. Which outputs go straight through and which wait for a person. Drafts to a strategic account, for example, are commonly held for approval.

No-code or custom logic?

The community frames one category plainly: “No-code agent builders for marketing, ops & CS.” The appeal of “build an agent without coding” is real. A RevOps lead can describe a qualification agent in words and have it running the same day.

The trade-off arrives with the second agent and the first change. Compare the two approaches on the things that matter after launch:

ConcernNo-code builderAgent defined in code
First versionFast, no engineering neededFast with a coding agent writing it
Custom logicLimited to the options the builder exposesAnything the runtime can call
Data accessThrough the builder’s integrationsThrough the same data model every other workflow uses
TestingUsually manual, by trying examplesA test suite run on every change
Changing it safelyEdit live, hopeDiff, review, deploy, roll back

Many teams want both: people who describe agents in plain language, and an artifact underneath that can be reviewed and tested. Platforms where what is built in an interface can also be versioned in code, and the reverse, remove the need to choose once and for all. How to test a sales agent before it reaches production is covered step by step in evaluate a go-to-market agent before production.

Can AI sales tools work with your existing CRM and customer data? #

This is the question to ask most carefully, because two different claims hide inside it. One is connectivity: the tool can read and write your CRM. The other is outcome: the tool will improve conversion or revenue. The first can be verified in a trial. The second depends on your data, your market and your process, and no vendor can know it in advance. Evaluate the first; treat the second as a hypothesis you test.

G2 describes agent-building software as offering “integration with enterprise systems such as CRM software, knowledge bases, ticketing systems, and external APIs.” For sales, check four layers of that integration separately:

  • CRM connectivity. Which objects can be read, which can be written, and how records are matched on write. Upserting by record ID, then domain, then name, and skipping ambiguous matches, is a very different behaviour from appending blindly.
  • Persistent context. Whether agents read your ICP, personas and qualification criteria from one shared place, or each carry their own copy in a prompt. Shared context means one change updates every agent.
  • Lead routing. Whether routing reads from declared territories and capacity, so assignments stay right as the team changes, and whether each assignment records the rule that produced it.
  • Scoring. Whether a score’s inputs are named fields and signals you can inspect, so a data-driven score can be explained per account rather than trusted as a black box.

A unified data model is what makes these four work together. When enrichment, scoring, routing and agents all read and write one record per company and contact, a qualification agent sees the same account the routing rule sees. When each tool keeps its own copy, the agent qualifies one version of the account and the router assigns another. The argument for resolving that layer first is in revenue data middleware.

What does this look like on Cargo? #

Cargo is GTM infrastructure for coding agents. It runs your GTM workflows the way Vercel runs a web app: you, or your coding agent, write the workflow, and Cargo provides the runtime, the connectors and the record of every run. Teams stop building and maintaining the glue between systems, the retry logic, the tracing and the scheduler.

Mapped to the criteria above, these are the primitives involved:

  • Plays are workflows that run when data changes, on a schedule, or on demand. Each step is a tool, an agent or a connector action, and every run is retried on failure and traced end to end.
  • Agents are LLM workers with a prompt, tools and memory. They run on the same runtime as the plays and read the same data.
  • Data models store companies, contacts, deals and custom objects, synced from the CRM, product and enrichment and unified into one record per entity.
  • Context is a git-backed knowledge layer (ICP, personas, playbooks) that every agent reads.
  • Territories hold reps, capacity and assignment rules, so plays and agents route from the same definitions.

The whole workspace can be declared in TypeScript as a project, planned as a diff with cargo-ai project plan, and deployed with cargo-ai project deploy. Connected to GitHub, every pull request gets a plan comment and every merge deploys. The same workspace is reachable from the web app, the CLI, the REST API and MCP, so a person and an agent change the same thing. It connects to existing CRMs and tools with your own accounts and API keys, across more than 150 integrations.

For the wider architecture, revenue orchestration explains the decision layer these workflows sit in, and multi-agent workflows for B2B revenue teams walks through agent patterns in more depth. A side-by-side of platforms for building sales agents is in AI agent builders for sales.

Frequently asked questions #

Three families. Agent frameworks give you full control of the agent and leave the runtime, triggers and integrations to you. No-code automation and agent builders get a first workflow running quickly within the options they expose. GTM infrastructure platforms provide the runtime, connectors, data model and tracing, with workflows and agents declared in code or built in an interface. Choose by how much of the runtime you want to own.

Retry failed steps without re-running steps that already succeeded, key every write so a retry cannot create a duplicate record or send a second message, trace each run step by step, and deploy changes through a reviewed diff rather than by editing a live workflow. Reliability is a property of the runtime the workflow runs on, not of the workflow alone.

Deterministic steps. Routing has a correct answer given territories, capacity and ownership rules, so it should be computed from declared rules and record which rule fired. Agents are useful upstream, for research and qualification over unstructured input, and they can call the routing step rather than reimplement it.

Yes, and the first version is the easy part. Before relying on it, give it a defined input, a fixed set of verdicts, a limited set of tools, a small test set of real records with known answers, and a rule for which verdicts wait for a person. Those five things matter more than whether the agent was built in a form or in code.

Connection is a capability you can verify in a trial: which objects it reads and writes, and how it matches records. Conversion is an outcome that depends on your data, market and process. Test it as a hypothesis on your own records rather than accepting it as a feature.

~/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
AurelienAurelienNov 17, 2026
On this page
  • What makes a sales workflow multi-step?
  • How do you assess platforms for multi-step, multi-agent sales workflows?
  • How do you build agents for qualification, research and daily sales engagement?
  • Can AI sales tools work with your existing CRM and customer data?
  • What does this look like on Cargo?
  • Frequently asked questions

Stay Informed with our
weekly Newsletter

Related articlesSee all articles
AI & Automation
Automating Sales Research with AI Agents

Build AI research agents that automatically gather company insights, competitive intelligence, and personalization hooks. Includes agent architectures, output templates, and implementation workflows for sales teams.

MaxMax·Nov 17, 2026
AI & Automation
Best Platforms to Build AI Agents for Sales in 2026

Compare eight platforms for building AI agents for lead qualification, account research, outreach and CRM updates in 2026: how you build an agent, what it can write to your CRM, how you review its work, and what it costs.

AurelienAurelien·Nov 16, 2026
AI & Automation
Agentic Email Conversations With Leads From a Mailbox You Own

How to let an agent answer the leads who reply to you, on the same thread, from a mailbox your Cargo workspace owns: what it deploys, what the mailbox costs each month, the 5 to 40 sends a day warm-up ramp, and the suppression rules the send path enforces. A conversation agent, not a sequencer.

AurelienAurelien·Oct 16, 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 GojiberryCargo x PhantomBusterCargo x ZapierCargo x ApolloCargo x Chili PiperCargo x Common RoomCargo x MakeCargo x Tray.io

Company

ManifestoCommunityEventsJobsPartners DirectoryPartner Program

Legal

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

$ npm install -g @cargo-ai/cli