# Agentic workflow

> A multi-step business process in which an AI agent makes some of the decisions, inside fixed steps, limits and checkpoints set by people.

An agentic workflow is a process where some steps are decided by a language model rather than fixed in code. A traditional workflow says: when a lead arrives, enrich it, score it, route it. An agentic version might let the model decide which enrichment to run, write a summary for the rep and choose whether the lead needs a human review. The structure stays defined; the judgment inside it moves to the agent.

The design question is where to draw the line. Deterministic steps are cheap, predictable and easy to audit, so they suit anything with a clear rule, such as suppression checks, deduplication and spend limits. Model-driven steps suit tasks that need interpretation, like reading a company description, picking the most relevant contact or drafting a message. Strong workflows mix both.

Agentic workflows need operational features that simple chats do not: asynchronous jobs for large volumes, webhooks to resume when work finishes, idempotent retries, logs of every decision and clear points where a human approves before anything irreversible happens.

## How Dizo handles it
Dizo supports agentic workflows with free planning steps (`POST /v1/count`, `dry_run` quotes), async batch jobs of up to 10,000 lookups with a `batch.completed` webhook, saved-search monitors and job-change signals that trigger runs, `Idempotency-Key` for safe retries and per-key caps that hold no matter what the model decides.

Docs: [/docs/batch](https://dizo.ai/docs/batch.md), [/docs/webhooks](https://dizo.ai/docs/webhooks.md), [/docs/monitors](https://dizo.ai/docs/monitors.md), [/docs/count](https://dizo.ai/docs/count.md)

Related terms: [AI agent](https://dizo.ai/glossary/ai-agent.md), [Tool calling](https://dizo.ai/glossary/tool-calling.md), [Webhook](https://dizo.ai/glossary/webhook.md), [Idempotency key](https://dizo.ai/glossary/idempotency-key.md)


## What an agentic workflow is

An agentic workflow is a repeatable business process in which an AI agent handles some of the decisions. The workflow has a defined start, defined steps and a defined end, like any automation. What changes is that certain steps are not hard-coded. Instead, a language model reads the situation and decides what to do, using tools you have made available and inside limits you have set.

Consider inbound lead handling. A classic automation enriches every lead the same way and routes it by a fixed rule. An agentic version might look at the lead, decide whether a company lookup is enough or whether it needs the person's full profile, write a short summary for the assigned rep and flag the lead for review if something looks off. The trigger, the routing destinations and the spend limits are still fixed. The reasoning in the middle is the agent's.

This is different from a single agent conversation. A chat with an agent is open-ended and driven by whoever is typing. An agentic workflow runs on events or schedules, handles many records the same way and is expected to behave consistently enough that a team can rely on it.

## Why the distinction matters for GTM teams

Most GTM work is a pipeline: find accounts, find people, get contact data, qualify, reach out, log results. Each stage has some steps that follow clear rules and some that need judgment. Putting a model in charge of the whole pipeline makes it unpredictable and hard to audit. Putting it nowhere wastes what models do well. Agentic workflows give you a way to decide, step by step, which is which.

The practical benefit is reliability. When deterministic code owns suppression, deduplication, budget and sending rules, those rules hold regardless of what the model thinks. When the model owns interpretation and writing, you get flexibility where it helps. A failure in a model step is contained to that step instead of cascading through the whole process.

It also makes the work explainable. A RevOps lead can look at the workflow and see exactly where a model made a call, what it was given and what it chose. That matters when someone asks why a lead went to the wrong rep or why a contact was emailed.

## How to decide which steps the agent owns

A simple test helps. If a step has a rule you could write down and a correct answer you could check, make it deterministic. If it requires reading unstructured information, weighing trade-offs or writing for a human, it is a candidate for the model. Here is how that typically splits in a prospecting workflow:

- **Deterministic:** trigger on a schedule or event, size the segment, apply suppression, enforce spend caps, deduplicate, retry with idempotency, write to the CRM.
- **Model-driven:** interpret a plain-English ICP, choose which contact best fits a role, decide whether extra enrichment is worth it, summarize the account, draft the first message.
- **Human checkpoint:** approve the first sends of a new segment, approve any billing change, review records the agent flagged as uncertain.

## The building blocks of a dependable workflow

**Triggers.** Workflows start from something: a schedule, a new form fill, a webhook from a monitor that found new matching companies, or a job-change signal for a past champion. Event triggers usually produce better timing than fixed schedules because the work starts when something actually changed.

**Planning before spending.** Before any large step, the workflow should know how big the job is and what it will cost. A free count and a dry-run quote let the agent, or the workflow code around it, decide whether to proceed, reduce scope or ask a human.

**Async jobs and webhooks.** Large lookups should run as batch jobs rather than thousands of single calls. The workflow submits the job, waits for a completion webhook and picks up the results. That keeps the agent's context small and the process resumable if something restarts.

**Idempotency and logging.** Every billable step should be safe to retry without double charges, and every decision should be logged with its inputs and cost. Those two features turn a fragile demo into something you can run every day.

## Common mistakes

**Giving the agent the whole pipeline.** Letting a model decide everything, including who to suppress and how much to spend, makes failures unpredictable. Keep rules in code and let the model handle judgment.

**Looping single calls.** An agent that processes a 5,000-row list by calling a lookup tool 5,000 times is slow, costly in tokens and fragile. Use batch endpoints for volume and let the model work on the results.

**No plan step.** Workflows that start pulling data before sizing the job often overspend or return far more records than anyone needed. Count and quote first.

**Silent failures.** If a step fails and the workflow carries on, bad data spreads downstream. Branch on error codes, stop on non-retryable errors and alert a human.

**No feedback loop.** Bounces, wrong numbers and outdated titles should go back to the data source so the next run is better. Without that, the workflow keeps repeating the same mistakes.

## How to measure an agentic workflow

Track throughput, accuracy and cost per completed record. Throughput is how many records move through each stage per run. Accuracy is how often the output is right, which for GTM usually means the right person, a working contact point and a correct summary. Cost per completed record includes data credits, model tokens and any human review time.

Measure each model-driven step separately. If the agent's contact selection is wrong a meaningful share of the time, fix that step's instructions or tools without touching the rest. A sample review of a few records per run is often enough to catch drift.

Watch the guardrails too. How often did a cap stop a run? How often did the workflow pause for human review, and how often did the human disagree with the agent? Those numbers tell you whether to tighten or loosen autonomy.

## How Dizo fits into agentic workflows

Dizo provides the data steps and the controls a workflow needs. [`POST /v1/count`](/docs/count) is free and sizes any segment. Any billable call accepts `"dry_run": true` for an exact quote, and `max_credits` sets a hard ceiling per request. Per-key daily and monthly caps hold no matter what the model decides, and the account's monthly cap is never exceeded by auto-refill.

For volume, [batch](/docs/batch) runs up to 10,000 lookups per job at the same per-item price as the underlying endpoint, with misses still free. Poll `GET /v1/batch/{id}` for free or receive a `batch.completed` webhook. For triggers, monitors run a saved search on a schedule and send only new matches at 1 credit per 25 new results, and job-change signals send a webhook for each detected change at 1 credit per change.

Every POST accepts an `Idempotency-Key` header, so retries within 24 hours are never charged twice. Response headers report credits used and remaining, which makes per-step cost logging straightforward. The suppression list removes customers and opt-outs before billing at every step.

## A worked example: weekly new-account workflow

A hypothetical team runs a monitor on its ICP. Each week it finds 250 new matching companies, which costs 250 ÷ 25 = 10 credits. The workflow sends those domains to the decision-maker finder with a ranked title list and `per_company: 1`. If 225 people come back, that is 9 credits. A batch job then finds emails; if 180 are found, that is 180 credits.

The model step reads each account and writes a two-line summary for the rep, which costs tokens but no Dizo credits. The weekly data cost is 10 + 9 + 180 = 199 credits, about $4.98 at the $0.025 entry rate, and roughly 860 credits over a month of 4.3 weeks. A per-key monthly cap of 1,000 credits keeps it bounded.

## Related concepts

Agentic workflows are built from [AI agents](/glossary/ai-agent) and tool calling, triggered by [webhooks](/glossary/webhook) and made safe with [idempotency keys](/glossary/idempotency-key) and rate limits. The AI SDR is one of the most common GTM examples. For a step-by-step build, see the [AI SDR guide](/guides/build-ai-sdr).

## FAQ

### How is an agentic workflow different from regular automation?
Regular automation follows fixed rules at every step. An agentic workflow keeps fixed rules where they make sense, but lets a language model make decisions in steps that need interpretation, such as choosing a contact or writing a summary.

### Should the agent control spending in the workflow?
The agent can reason about cost, but limits should be enforced outside it. Use per-request ceilings, per-key caps and an account cap that the API checks, so a mistaken model decision cannot exceed the budget.

### When should a workflow use batch instead of single calls?
Once volume passes a few dozen records. Dizo's agent guidance suggests batch for more than 50 lookups. Batch keeps per-item pricing, runs asynchronously and returns results as JSONL or CSV.

### What triggers work well for GTM workflows?
Events that mean something changed: a new form fill, a new company matching a saved search, or a known contact changing jobs. Dizo monitors and job-change signals both deliver these as webhooks.

### How do I make retries safe?
Send an `Idempotency-Key` header on every POST. Dizo never charges twice for a retried request with the same key within 24 hours. Also branch on the `retryable` flag in errors so you only retry when it helps.

### Where should humans stay involved?
At irreversible steps, such as the first sends of a new segment and any billing change, and wherever the agent flags low confidence. Autonomy can expand as the workflow builds a track record.
