Generating a workflow¶
Describe what you want in plain language and Crios drafts a workflow from it — grounded in your project's own nodes, sources, connections and agents — then hands the draft back for review. Nothing is saved and nothing runs until you open that draft in the editor yourself. This page covers how to write a description that produces a usable draft, what the generator decides for you, and what to check before you trust the result.
What generation does¶
Generation is a drafting pass, not a conversation. Crios reads your project, asks a model for a graph, checks that graph the same way it checks a workflow you build by hand, and shows you the result with its problems, its guesses and what is left for you to finish.
Four things hold for every draft:
- The generator never saves it. The draft lives in the dialog until you click Open in editor, which creates the workflow exactly as the Blank tab would.
- The generator never publishes it. A new workflow is not live; its triggers start firing only after you publish a version. See Publishing & versions.
- Invented references are caught. Node types come from the catalog registered on your install; collector sources, connections and agents come from your project. A connection or agent the model reaches for that does not exist is dropped and recorded, never faked. A node type that does not exist goes back to the model to be replaced, and if the repair rounds cannot replace it, it is listed under Validation issues.
- Unknown values are left open, not made up. A chat ID, an address or a channel the generator cannot know is left empty and put on the workflow's setup checklist, never filled with a placeholder that would be sent as-is. See Finishing setup.
Starting a generation¶
Click New workflow on the Workflows list and switch to the Generate tab. Generating requires edit access to the project.
- Fill in Describe the workflow you want. The field carries an example — e.g. Every weekday at 9:00, collect new support tickets and post a summary to #support in Slack… — and the hint under it restates the deal: The AI drafts a workflow from your description. You review the draft before anything is saved.
- Pick the Project. The project decides what the generator can see.
- Click Generate draft.
The dialog then follows the run. Both tabs stay live, so switching to Blank and back does not cancel a generation in flight.
Writing a good description¶
Before it drafts, the generator is grounded on live project context: the node types registered on your install — every one by name, and the core types plus those relevant to your request in full, with their parameters and manuals — the project's enabled collector sources by label, its connections by name and type — never any secret material — its managed data stores, the tables and columns of its Postgres and MySQL connections, the models your organization can call right now, whether host access is on in the project, its saved agents with what each does and the tools it has, and its other workflows with what each does and the input it takes. Write to that.
The database listing is read live: table and column names and the values an enum column allows, never any rows. It reads at most four connections, those your description names first, and from each at most 40 tables of up to 30 columns, cut at about 6,000 bytes, all within three seconds. A project database that is asleep is not woken for it. A connection that cannot be read, or is past the first four, is drafted against without a listing, and every table name the draft writes for it is flagged as a guess under Warnings.
- Name the trigger and its cadence — "every weekday at 9:00", "when a request arrives at a webhook", "for each new item from …".
- Name things the way your project does — call a collector source by the label it carries in the project's Collectors tab, a connection by its display name, an agent by its name. A name that matches gets bound; one that does not is dropped and noted. A saved agent is used only when you name it or when what it does fits the request; otherwise the draft builds an agent of its own with the tools you describe. Another workflow can be called from the draft, but one that is not active cannot be called until it is activated.
- Name the destination — the channel, address, issue project or table the result lands in. Leave it out and it becomes a setup item for you to fill in. "The project chat" means the project's own discussion, unless you name Google Chat, Slack, Microsoft Teams or Discord.
- Say what to leave out — the filter is part of the request: "skip anything already closed", "only failures".
- Say where a person decides — "wait for approval before it sends" is what turns an unattended send into an approval step.
Keep it to one workflow. The generator is told to use the fewest nodes that satisfy the request, and the field stops accepting input at 4,000 characters. The limit itself counts bytes, though: accented letters and other scripts take two to four bytes a character, so such a description can be refused as prompt too long before the field is full.
The stages you'll see¶
| Stage | What is happening |
|---|---|
| Grounding on project context | Reading the node catalog and your project's sources, connections, data stores, agents and workflow names |
| Drafting the workflow | One pass at the graph |
| Validating the draft | The assembled draft goes through the same gate a hand-built workflow passes when you save it |
| Repairing issues | Blocking findings, and warnings that mean the workflow would do nothing or fail when it runs, go back to the model with the draft attached |
Validating and repairing run in a loop — a repaired draft is validated again, for up to two rounds per drafting pass. The progress list never runs backwards, so a stage already ticked stays ticked while the loop turns, and when the budget is spent you get the best draft so far with its remaining problems rather than nothing at all.
The checks go further than a save does. The statement of each Database read and Database write step on a Postgres connection is prepared — never run — on that connection, when it is a single statement with no expressions in it, up to 12 statements and three seconds per draft. One the database refuses (an unknown column, a value an enum lacks, a date compared with text) goes back with the database's own message. A draft that calls itself is redrafted with the repetition in a single code step.
What the generator decides for you¶
Configuration is the generator's job, not yours. Every node type in the catalog carries its own manual — what it does, how it fires, its parameters with their documented defaults and examples — and the generator is told to read that and fill the values in rather than ask about them. It is told to disclose what it decides, as a warning under Warnings on the draft for each guess, so read them before you save.
So it settles, without asking: the schedule or cron expression, timeouts and retries, limits, batch and page sizes, concurrency, thresholds, and what to call the workflow and its nodes. An unstated cadence becomes daily at 08:00. Ask for one of these in your description and you get it; leave it out and you get a disclosed guess, which is one click from being changed in the editor. It is told to leave the timezone out, so a schedule runs in UTC until you fill in the trigger's Timezone; see Timezone. It is also told to set Execute once on a step that must run once rather than once per item, such as a count after a step that writes each record.
Two things it leaves alone unless you ask:
- The model. Unless your description names a model, its vendor or its family ("use GPT", "with Gemini"), an AI step gets no model of its own: your organization's model routing picks one when it runs, and falls back when a provider fails. A model the draft named anyway is removed, and the draft says so under Warnings; pick a model in the editor to pin one.
- Error routing. A step that fails stops the run unless your description says what should happen instead — "if it fails, …", "keep going even if it fails".
When host access is off in the project, the draft passes files between steps in the items' binary data instead of on disk, and says so if you asked for the host's filesystem or a shell. The generator reads only the project's switch: on an installation that does not allow those nodes, such as app.crios.ai, a draft can still use them while the switch is on, and those steps fail when they run.
Connections are never a question either. When a node needs a connection your description did not name and the project has exactly one that fits, the generator binds it and says so; when there is none, or several, the slot is left for you on the setup checklist. A database step whose statement uses the tables of one of your connections is bound to that connection; any other node that stores data is bound to the project's own database unless you named another one. That is the project's default database: the generator never binds one of its named databases on its own.
Clarifying questions¶
A run pauses to ask only about the shape of the workflow — which nodes exist or how they connect, such as "notify only, or store and notify?" or "approve in chat, or by link?". It is told never to ask for a value or a connection.
The panel is titled A few details are needed. Each question offers two to four choices, and the first is marked (what the draft does now): leaving a question alone keeps that choice, so every question is optional and Continue is always available. A run pauses at most once, with at most three questions. Edit prompt abandons the run and takes you back to your description.
The draft the generator has so far stays on screen while you answer, under Draft so far: the same name, node list, Validation issues and Warnings a finished run shows, so you can see what the question is about. Open in editor is not offered on it — a paused draft is not final, and your answers change it.
Continue hands the run back to the server rather than waiting on it. The dialog goes back to the progress list and the run works through the stages again, with the finished draft replacing the questions when it lands. Nothing is stranded if the browser never sees the reply to Continue: the dialog keeps watching a paused run, so a submit whose response is lost is picked up anyway and followed to the end. Pressing Continue twice is harmless for the same reason.
Whatever you chose, and whatever you left alone, is recorded on the workflow. The editor's setup panel lists each question under What the generator decided, with You chose: … or Chosen for you: … and the other options, so the decision stays visible after the dialog is gone.
Reviewing the draft¶
A finished run shows Draft ready for review: the workflow's name, its Nodes and Edges counts, then every node with its display name and type, then what is left and what went wrong. Nodes are laid out for you left to right, and a long draft wraps into rows that read like text — left to right, then down — so it opens on screen rather than as one line running off it. Each node is pinned to the latest registered version of its type.
- Left for you to finish — the setup the draft still needs, for example 2 steps need you after this draft is saved — open it in the editor to finish them., grouped as Connections to bind and Values to fill in, each naming the node.
- Validation issues — findings the repair rounds could not clear.
- Warnings — the generator disclosing what it did.
Then:
- Open in editor creates the workflow and drops you in the editor — straight onto the setup panel when there is setup left. This is the moment anything is written. If the draft still carries problems that block saving, the workflow is not created and the problems are listed in place.
- Edit prompt goes back to the description with your text preserved, so you can rephrase and try again.
The Warnings list covers: the guesses the model disclosed about your
description (disclosed guess: …); a question it tried to ask about
configuration and answered itself instead (the generator chose a default
instead of asking (…): … — change it in the builder if the guess is
wrong); a connection or agent it named that your project does not have,
and the slot left unbound; a connection of the wrong type; a connection
your project names differently, bound under the project's name; a
connection it bound for you and why; a placeholder the model wrote into a
field, removed and left for you to fill in; a value that must be picked
from a list your project owns; a model left to your organization's model
routing; a draft name that collided with an existing workflow and was
renamed; workflow settings that were not valid and were
dropped; and a spent repair budget.
What to check before you publish¶
Validation proves the graph is well formed. It does not prove the graph does what you asked, so walk the draft node by node.
- The setup panel — finish every row: bind the connections, fill in the values. A draft with open setup cannot be published. See Finishing setup.
- What the generator decided — in the same panel, check every connection it bound for you and every question it settled; Change swaps a connection.
- The trigger — confirm that the schedule, the webhook path, the event types or the collector source is the one you meant, not a plausible neighbor. See Triggers.
- Destinations and recipients — channels, email addresses, phone numbers, issue project keys. A wrong value that looks right is the most common failure, and nothing in validation catches it.
- Egress allow-lists — an HTTP Request node cannot be published without at least one entry in its Allowed Hosts list, so the generator wrote one. Check that it names the host you actually intend, and nothing wider.
- Expressions — open every field wearing the
fxbadge and check the paths against real data. See Expressions. - Reliability settings — besides what your description asked for, the generator may have set retries, a step timeout or Execute once on a node on its own; other nodes fall back to their type's defaults. Check those, and set On error and the retry settings under Reliability in the node's Settings tab on anything that sends a message or writes data.
- The Problems panel — open it from the warning triangle at the end of the canvas toolbar, which shows while anything is left, and clear what it lists.
- A test run — Run in the panel along the bottom of the editor executes the saved draft without publishing anything. Do this before you publish, every time — and remember that everything after the trigger runs for real. See Running & debugging.
Asking for a workflow in a session¶
You can also ask for a workflow in a session's chat, or a build plan can include one. The session agent drafts it with the same generator, so everything above holds, and the chat follows along: Draft a workflow: “…”, the stages, then Save workflow draft: … and Draft saved: …, with Open workflow → to open it in the editor.
- It is saved, not published. The draft is saved as an inactive workflow in the session's project. It does nothing until it is activated, after you finish its setup.
- Questions come to you. When the generator has a question about the workflow's shape, the chat asks it after the agent's message, as one card with every question and its choices, and the session waits for your answer. If you reply without answering, the agent's next message ends with the card again.
- The workflow limit comes first. The agent learns how many workflows your organization can still create before it drafts, and when few remain it asks you which to create first.
- Fixes change the same draft. The agent updates the draft it saved rather than saving another; a name that repeats or nearly repeats an existing draft's is refused.
- Saved drafts are test-run. The agent runs each draft it saves in test mode and fixes what fails. What only you can add — a connection, a value — it lists under "Still missing" in its final message.
- The database is set up for it. When the draft reads or writes a database and the project has none, Crios creates the project's own database, "Project database", which the project's owners and editors see under Storage. It binds the draft's database steps to it and creates the tables the draft's SQL uses when the draft is saved. In a project with no app of its own, tables missing from an existing project database are created the same way. A table is only created if it does not exist yet, so the first saved draft that defines a table decides its columns. See Project databases.
- A plan's workflow is armed when you approve the plan. A workflow drafted as part of a build plan stays inactive until you approve the plan. The chat then shows Workflow armed: … — Armed when you approved the plan; it now runs on its own trigger. — or Workflow not armed: …, The plan was approved, but this workflow is still inactive., with the reason.
- A research session offers to draft. A research session that proposes workflows ends by offering to draft them in the chat, as inactive drafts to review before anything runs.
The tools the session agent uses are listed under MCP.
Limits and failure modes¶
| Limit | Value |
|---|---|
| Description length | 4,000 bytes: 4,000 characters of plain ASCII text, fewer with accented letters or other scripts |
| Repair rounds per drafting pass | 2 |
| Questions in one pause | 3 |
| Choices per question | 2 to 4 |
| Pauses per run | 1 |
| Backstop timeout on a run | 30 minutes, configurable per deployment; the continuation after your answers gets its own |
| Time without progress before a run is dropped | 30 minutes — measured from its last movement, so a working run is never dropped mid-flight |
A run that cannot produce anything usable ends on Generation failed followed by the reason — the project context could not be read, the model call failed, or the response could not be repaired into a workflow. The only way on from there is Edit prompt.
Other messages are about the run itself rather than the draft. If the run cannot start, the dialog says why — on an install with no model route for generation, that generation is not configured; in an organization at its workflow limit, This organization has reached its workflow limit (…). Delete a workflow before creating another., at once rather than after the draft — and when the server cannot be reached at all, the message is only Network Error. The same goes for submitting your answers. If the submit fails, press Continue again — either the run is still waiting and this one lands, or the first attempt reached the server after all and the dialog picks the run back up. The generation run could not be reached. Edit the prompt and try again. means the dialog lost contact with a run that had already started; it takes several failed checks in a row, not one. Any server can report on a run, because its state is kept in the database, but the drafting itself happens on the server that took your request or your answers: if that server restarts, the drafting stops, and the run stays at its last stage until it has gone 30 minutes without moving. This generation run has expired. Edit the prompt and start a new one. means the run is gone from the server — it went 30 minutes without moving, usually because it was left sitting on a question — and there is nothing left to follow.
A run is not part of a workflow's history — only the person who started it can see it, and only until it has gone 30 minutes without moving, finished or not. Closing the dialog leaves it to finish with nobody watching, so treat that as starting over.
Generating smaller pieces
The same drafting help exists inside the editor for single fields: Generate in the expression editor writes an expression (see Expressions), and on a database node's statement it drafts the SQL and its parameter bindings (see Building a workflow).
A draft is a starting point, not a reviewed configuration
At best, the generator produces a workflow that passes validation, not one that is known to be correct. Read every node before you publish — a wrong channel, a wrong recipient or a wrong path validates perfectly and then sends real messages to the wrong place.