Build & publish
Start an agent with Lucid, from scratch or from a template, build its chain of steps, test the draft, publish it, and read its runs.
You build an agent as a draft, test it, then publish it. Publishing saves a version and arms the trigger. From then on every run is recorded, step by step.
Start an agent
In Agents, click New agent. There are three ways to start:

| Option | What happens |
|---|---|
| Create with Lucid | Lucid opens with Create an agent that…. Describe what you want. Lucid drafts the agent, usually from a template, and shows it as a card. Approve the card to create a draft agent. Nothing is published or run. |
| From scratch | An empty canvas. The agent exists once you name it and click Save. |
| Templates | Ready-made agents, grouped by what they are for: alerts and incident response, GitHub, Slack, evals, cost, datasets, reports, security and more. Search, or start with Start here. A template asks for the few choices it needs, such as which alerts, which Slack channel or which model, then Create agent opens it as a draft. |
A template says what it needs first, for example Slack, A model or A coding agent. If something is missing, the dialog tells you before you create it.
Build the chain
The canvas is a vertical chain: the trigger at the top, then each step under it. Trodo lays the steps out for you; you don't drag them around.

- Choose a trigger first. Every agent has exactly one. See Triggers.
- Click + on a line to insert a step there, or + at the end of a branch to add a step there. Add step at the bottom does the same. See Steps for what you can add.
- One step can feed several, which then run side by side. To join branches again, drag from a step's bottom handle to the step they should all feed.
- A step that branches (If, Decide) has one way out per branch, each with its own +.
- A flagged step has something to fix, such as a missing model. Hover the flag to see what.
Click a step to open its panel: Settings on the left, then Input (what the steps before it produced) and Output (what it returned). Rename the step at the top of the panel, or delete it there.
Your edits save to the draft as you go. The top bar says Saving…, Saved, or Unpublished changes when the draft differs from the published version.
Pass data between steps
A step reads what came before it with {{ }} expressions, in any text field:
| Expression | Gives |
|---|---|
{{ $json }} or {{ $input }} | The output of the step just before |
{{ $node["Read rows"].json }} | The output of the step with that name |
{{ $trigger }} | What the trigger delivered, for example {{ $trigger.alert.name }} |
{{ $item }}, {{ $index }} | The current item and its position, in a step that runs for each item |
{{ $now }}, {{ $today }} | The current time, and today's date (YYYY-MM-DD) |
A field that is only an expression keeps the value's type, so {{ $json.rows }} is a list. Expressions can compare and combine values ({{ $json.count > 10 }}) but can't call functions. A step fed by several steps receives one object keyed by their names.
Test the draft
- Test in the top bar runs the whole draft without publishing it. The trigger hands it a sample shaped like what it will deliver: for an alert, the chosen alert with its last reading. Each step's result shows on the canvas and in its panel.
- Test in a step's panel runs that step and the steps before it, never the ones after it. Use it to build one step at a time.
Publish
Click Publish. Trodo checks every step first; a flagged step blocks publishing until you fix it. Publishing:
- saves the draft as a new version (v1, v2, …) that never changes,
- arms the trigger: a schedule starts, a webhook URL goes live, an alert starts the agent when it fires,
- marks the agent Active.
After you change a published agent, the button says Republish. The published version keeps running until you do.
Version history lists the draft and every published version. For each one: View it read-only, Restore as draft to make it your draft again, or Publish this version to go back to it.
To stop an agent without deleting it, tick it in the Agents list and choose Disable. Enable arms it again.
Read its runs
Runs opens the agent's history: runs, succeeded, failed and median duration for the last 7 days, then one row per run with its status, trigger, version, steps completed, duration, when it started and whether a person or a trigger started it. Filter by status, or Run now to start the published version by hand.
Click a run to open it:

- The header shows the run's status, the version that ran, what triggered it, and how long it took.
- Steps lists each step in order. Open one for its Input, Output, Logs and any Error. A branch that wasn't taken shows as Skipped.
- Graph shows the run on the canvas. Trigger payload shows exactly what the trigger delivered.
- Retry runs a finished run again; Cancel stops one that is still going; Open agent goes to the editor.
Each agent keeps its 200 most recent runs.
Overview
An agent is a trigger and a chain of steps that Trodo runs for you: when an alert fires, on a schedule, from a webhook or a Slack event. Where agents live, and how alerts, Track issues and self-improving evals use them.
Triggers
What starts an agent: you, a schedule, a webhook, an alert, or a Slack event, and what each one hands the steps after it.