Describe it in plain words
Write what you want done in everyday words and get a working flow to look over and change. Decide steps and agent checks take plain words too, so you never need to write a command.
You don't need to know how to code to build a flow. Say what you want done, the way you'd tell a colleague, and the Playground draws the flow for you. You look it over, change what you like, and press Run.
Describe a flow
- Open Agent Playground in the dashboard.
- In Describe it, get a flow, write what the flow should do. Say when it should stop and where a person should check, if you want that. For example:
- "Every Monday, summarize last week's support emails into five bullet points and ask me before sending it to the team."
- "Run the tests. If they fail, have an agent fix the code and try again, up to three times."
- "Read the spreadsheet I upload, find the ten biggest customers, and write a short report."
- Choose Build my flow. It takes about 20 to 40 seconds.
The builder opens with your flow on the canvas and a short note that says, step by step, what it will do. Every box can be changed like any other: select it to read or edit its settings, drag new blocks in, or delete what you don't need. Choose Simulate to see what a run will likely cost before you start.
The draft is made by Claude with your own Claude key, the same key your AI steps use. A draft usually costs 3 to 5 cents on that key. If you haven't added a key yet, the box lets you add one right there. It never runs anything: nothing happens until you press Run.
Tip
A draft is a starting point, not a finished flow. Read the note, then open each step once. If something isn't what you meant, change it in the step's settings, or describe the flow again with more detail.
Decide in plain words
A Decide block asks a yes or no question and follows Yes or No. Write the question in words, after If…:
- "the tests passed"
- "the summary mentions pricing"
- "the report names at least three customers"
Under Answered by you pick how it's answered:
| Answered by | How it works | Cost |
|---|---|---|
| Whether "Run tests" passed (any earlier step) | Yes when that step passed. When your words name an earlier step and say passed or failed, like "the tests passed", this is picked for you. | Free |
| Claude decides (AI) | Claude reads what the earlier steps did and answers Yes or No, with a one-line reason you can read in the run. When the evidence doesn't clearly show it, the answer is No. | About a tenth of a cent each time, on your key |
If you'd rather write a command, choose Use a command instead (advanced). A command that exits 0 means Yes.
Check an agent's work in plain words
An Agent's Check that it worked takes plain words too, like "the README explains how to install the app" or "every row in the sheet has an email address". When the agent says it's finished, Claude checks its work against your words. If the answer is No, the agent is told why and keeps going while it has turns left.
To use a command, like pytest -q, choose Check with a command instead (advanced).
From code and AI apps
- API:
POST /flows/draftwith{"description": "..."}returns the flow, a sentence for each step, and with"save": truethe new flow's id. See the Flows API. - AI apps: the
draft_flowtool in the MCP server lets Claude or another assistant draft a flow for you in a chat. - SDKs and
qr:qr.flows.draft(...)andqr flows draft "...", once flows reach the published SDKs. See SDK and CLI.