The most expensive mistake in agentic AI is not a bad prompt. It is pointing agents at the wrong task. Some work gets dramatically better with an agentic workflow: research that used to take an analyst a day, reports that review themselves, triage that never sleeps. Other work gets slower, more expensive and less reliable than the plain code it replaced.

This guide gives you a practical way to tell the difference: the traits that make a task a good fit for agents, the red flags that mean you should not use them, a quick scorecard, and twelve proven use cases, each linked to a runnable example in the open-source SwarmAI examples repository.

What counts as an agentic workflow?

An agentic workflow is one where an LLM does not just answer, it decides what to do next: which tool to call, whether the result is good enough, what to try when something fails. A multi-agent workflow (or agent swarm) splits that work across several agents with different roles, such as a researcher, an analyst and a reviewer. See What Are Agentic Swarms? for the full picture.

The key point for choosing tasks: you are trading predictability and cost for flexibility and judgement. That trade only pays off for certain kinds of work.

Seven signs a task is a good fit for agents

1. It needs judgement, not just rules

If you can write the logic as if statements, write the if statements. Agents earn their cost when the input is messy and the right action depends on reading it: an ambiguous support ticket, a contract clause, a news article that may or may not affect a stock.

2. It takes several steps, and the steps depend on what you find

A task where step three depends on what step two discovered is hard to script and natural for agents. Researching a company is a good example: what you look up next depends on what the filings say.

3. It needs tools and data, not just the model's memory

The best agentic tasks combine reasoning with real data: search, databases, APIs, documents, calculators. A model answering from memory hallucinates. A model that queries SEC filings, runs the numbers through a calculator and cites its sources does not, or at least far less.

4. The output can be checked

Good agentic tasks have a way to tell whether the result is right: a rubric a reviewer agent can apply, numbers that can be recomputed, citations that can be verified, tests that can be run. Checkable output is what makes review loops work, and review loops are where much of the quality comes from.

5. A few minutes is fast enough

Agent workflows take seconds to minutes, not milliseconds. Research, analysis, reports, triage and overnight batch work tolerate that easily. A checkout page or a trading engine does not.

6. The work splits into parts

When a task decomposes into independent pieces (five competitors, ten documents, a dozen hosts), a swarm can run them in parallel with one focused agent each. Each agent gets a short, clean context, which improves quality and controls cost.

7. The value clearly exceeds the cost

An agent run might cost a few cents to a few dollars in tokens. That is trivial for work that replaces hours of an analyst's time, and absurd for work a regular expression could do. Do the arithmetic before you build.

Red flags: when not to use agents

  • The logic is deterministic. Tax calculations, data validation, format conversion and routing on known fields belong in ordinary code. It is faster, cheaper and testable.
  • It needs a millisecond response. Anything in a hot request path or a real-time control loop.
  • One wrong answer is catastrophic and nobody reviews it. Moving money, changing production systems or sending legal notices on the model's say-so alone. Agents can still prepare this work, but a human or a deterministic check must approve it (see Governing Autonomous AI Agents).
  • It is a single lookup or a single generation. One LLM call with a good prompt beats a swarm for summarising one email.
  • There is no data to ground it. If the agent can only rely on what the model remembers, you are building a confident guesser.
  • Nobody can say what "good" looks like. If you cannot write quality criteria, a reviewer agent cannot apply them either.

A quick scorecard

Score a candidate task from 0 to 2 on each question. A total of 10 or more is a strong candidate. Below 6, use ordinary code or a single LLM call.

Question012
Does it need judgement on messy input?No, rules sufficeSometimesConstantly
How many dependent steps?OneTwo or threeMany, decided along the way
Does it need tools or data sources?NoOneSeveral
Can the output be checked?Not reallyBy a personBy a rubric, recomputation or tests
Is a few minutes acceptable?NoUsuallyYes
Does it split into independent parts?NoSomewhatYes, naturally
Is the value far above the token cost?NoRoughly equalBy orders of magnitude

12 proven use cases for agentic workflows

Each of these is a complete, runnable project in the SwarmAI examples repository, so you can see exactly how the agents, tools and orchestration fit together. The pattern column refers to the process types explained in Multi-Agent Orchestration Patterns.

Use caseWhat the agents doPattern
Competitive market analysisA manager coordinates a researcher, a data analyst, a strategist and a writer into a board-ready reportHierarchical
Competitor research at scaleA discovery agent names the competitors, then one analyst per company runs in parallelSwarm
Investment due diligenceFinancials, news sentiment and legal checks run as independent investigations at the same timeParallel
Investment memo writingAn analyst drafts, a reviewer applies a rubric, and the memo is rewritten until it passesIterative
Customer support routingA router sends each message to a billing, technical or account specialist, then a QA agent checks the replyGraph
Codebase analysisAn architect maps the structure while a quality engineer inspects the code, and their findings become a technical reportParallel
Data analysis reportsA data engineer profiles a CSV, JSON or XML file and analysts turn it into a business insights reportSequential
Document Q&A with citationsA read-only retriever searches a knowledge base and every answer is grounded in the retrieved textSequential
Security assessmentDiscovery finds live hosts in a network you own, then one agent per host runs targeted probesSwarm
Content with quality controlA writer drafts, a scorer grades it, and drafts below the bar go back for revision or wait for a humanGraph
Scheduled monitoringAn agent runs on a schedule, compares results with its previous report and reports what changedSequential
Ticket triageA triage agent pulls open Jira issues, summarises them and proposes prioritiesSingle agent

The matching example projects are competitive-market-analysis, competitive-research-parallel-swarm, investment-due-diligence, iterative-investment-memo-refinement, customer-support-routing, codebase-analysis-workflow, data-processing-pipeline, rag-retrieval-augmented-research, security-penetration-testing-swarm, human-approval-gate, scheduled-cron-monitoring and jira-ticket-management.

Notice what they have in common. Almost all of them involve research or analysis over real data, produce output a person or a reviewer agent can check, and replace work that would otherwise take a skilled person hours.

Match the task to the orchestration pattern

Once a task passes the scorecard, its shape tells you how to coordinate the agents:

  • Fixed steps, each building on the last: sequential.
  • Independent pieces known in advance: parallel.
  • Independent pieces discovered at run time: swarm.
  • Open-ended problem that needs a plan: hierarchical, with a manager agent.
  • Quality matters more than speed: iterative, with a reviewer agent.
  • Branches, retries and human pauses: a graph workflow.

Start with the least autonomous pattern that works and move up only when you hit a concrete limit. In SwarmAI, switching patterns is a one-line change, so you can measure each step instead of guessing. The step-by-step tutorial walks through exactly that progression.

Common anti-patterns

  • Agent-washing a script. Wrapping deterministic steps in agents because it sounds modern. You pay for tokens and lose predictability for nothing.
  • One giant agent. A single agent with a 3,000-word prompt and fifteen tools. Split it into focused roles with the tools each one needs.
  • No grounding. Asking agents for facts without giving them tools or documents to get the facts from.
  • No exit. Review loops without an iteration limit and swarms without a budget. Always set maxIterations and a hard BudgetPolicy.
  • Full autonomy on day one. Start with agents that prepare work for a human to approve. Remove the approval step only once you have the evidence that it is safe.

Start small

The best first agentic workflow is usually a research or reporting task that someone on your team does by hand every week. It scores well on every question above, the output is easy to check, and the time saved is easy to measure.

SwarmAI is open source under the Apache 2.0 licence. If this checklist helped you pick your first use case, star SwarmAI on GitHub.