Build a workflow
Build a workflow by picking a trigger, then adding steps under it. Everything you edit stays in a draft, and a trigger starts runs only from the published version.
Create a workflow
Section titled “Create a workflow”Open Workflows and click Create workflow. Name it, then pick a trigger; nothing else is available until you do. See Triggers.
You can also start from a template or import a workflow exported from another workspace.
Renaming a workflow or editing its description doesn’t create unpublished changes.
Start from a template
Section titled “Start from a template”KloudMate’s ready-made workflows, which diagnose or fix common problems, are in the gallery. Browse them at templates.kloudmate.com. To install one, click Import, paste its ID, click Check, then click Apply. You need the Developer role.
| Template | ID | Starts | What it does |
|---|---|---|---|
| Tell a down host from a down agent | host-reachability | When a host alert opens | Reports whether the machine is down, its collector stopped, or the machine is up and the alert is real. |
| Report disk usage and the largest directories | disk-usage | When a disk alert opens | Lists the mounts by usage, then the largest directories on the fullest mount. |
| Report the top processes by CPU and memory | top-processes | When a host load alert opens | Lists the processes by CPU and by memory, with the owner and the PID. |
| Free disk space, with approval | disk-cleanup | When a disk alert opens | Shows what uses the space and waits for approval, then vacuums the journal, removes rotated logs, and reports the space it freed. |
| Report why a Step Function execution failed | sfn-diagnose | When a state machine alert opens | Reports the most recent failed execution’s error, its cause, and the states it ran. |
| Redrive a failed Step Function execution, with approval | sfn-redrive | When a state machine alert opens | Shows what failed and why, waits for approval, then restarts the execution from the state that failed. |
| Tell an EC2 instance fault from a host fault | ec2-status-check | When an EC2 status check fails | Says whether the fault is in the operating system or in the AWS host underneath. |
| Reboot an EC2 instance, with approval | ec2-reboot | When an EC2 instance check fails | Asks for approval, then reboots, and stops instead when the fault is in the AWS host underneath. |
| Report the state of an Azure VM | azure-vm-diagnose | By hand | Reports what Azure holds for the machine, then what the machine reports about itself. |
| Restart an Azure VM, with approval | azure-vm-restart | By hand | Asks for approval, restarts the machine, waits for it, then confirms with the machine itself. |
| Send alerts to your workflows | alert-router | When an alert group opens or new alerts join it | Runs a workflow you choose for each resource in the group. See Send alerts to your workflows. |
Each template’s page in the gallery says what it needs. A template that runs commands on a host needs runbook scripts allowed on that host, and one that calls AWS or Azure needs a connection to it.
The template installs as a draft that’s switched off and isn’t connected to any alerts. Before you publish it:
- Fill in the blank fields. Every template sends its result by email, so set the address on each Send Email step. Publishing fails on any field the template left blank, and names the field, for example
notify_email. - Pick a connection on each AWS or Azure step.
- Name the approvers on each Approval step.
- Send alerts to it. A template that starts on an alert needs its webhook URL on a notification channel that a routing rule uses. See Start a workflow from an alert.
The draft’s description lists what you need to set up. The draft also comes with a sample alert payload, so the variable picker shows real field names before any alert arrives.
Add steps
Section titled “Add steps”Click the + between any two nodes to open the palette. Actions are grouped under Apps, AI, and Utilities, with control flow on its own tab. Search spans all of them, so typing reaction finds the Slack action without opening Slack first.

Inside a control-flow block, the palette shows only the steps that block accepts. A Wait until check block takes actions, Branch, and Route steps only.
Configure a step
Section titled “Configure a step”The tabs in a step’s panel depend on the step.
Setup appears when the step uses a connection, or when one field’s value decides the options in another. On an AWS step, for example, pick the connection and the service on Setup, and Configure then shows that operation’s parameters. A step with neither, such as Transform or Run Code, opens straight on Configure.
Configure holds the rest of the fields. They come from the action itself, so an MCP step shows the chosen tool’s own arguments.
Test runs the step against real data. It’s hidden in view mode, which is how a saved workflow opens from the list, so click Edit to show it. See Test a workflow.

Use a variable in a field
Section titled “Use a variable in a field”Text, JSON, and condition fields take {{ }} references directly, with a picker for the trigger payload, an earlier step’s output, and workspace variables. To use a variable in a dropdown field, click the braces button beside it. See Templating.
Rename a step
Section titled “Rename a step”Edit the name at the top of the panel. That changes the display name only. The builder generates a step’s id when you add it, and the id never changes, so existing {{ steps.<id>.output }} references keep resolving. Take references from the variable picker instead of typing them: it lists steps under their names and inserts the right id.
Step settings
Section titled “Step settings”Action steps have a collapsible Settings section under their fields. Control-flow steps don’t, because their timing and failure fields are ordinary inputs: a wait has a duration, an approval has a timeout.
| Setting | Default | What it does |
|---|---|---|
| On failure | Stop the workflow | Go to the next step records the error under steps.<id>.error and carries on. |
| Retry attempts | 3, or 1 for AI Prompt and AI Extract | At most 5. Not offered on an action that changes external state: those run once, so a failed write is never silently repeated. |
| Timeout | 60s, or 5m for Ask KloudMate Assistant | How long one attempt may run, up to 15m. Ask KloudMate Assistant stops at 5m even if you set it higher. |
No retries gives the same default as leaving Retry attempts alone, so you can’t set a read-only action to zero retries from the builder.
Publish and enable a workflow
Section titled “Publish and enable a workflow”Your edits change only the draft. Discard changes reverts the draft to the last published version.
The builder checks the workflow as soon as you open it. It marks each step that has a problem, with the message under the field that caused it. If problems remain when you click Publish or Test run, the builder lists them, and Fix on a row takes you to that step.
Publishing runs every check, including whether each connection, called workflow, and secret the workflow uses still exists. Then it writes an immutable version.
The first publish also switches the workflow on, so its trigger starts firing right away. A later publish never switches a workflow back on after someone turned it off. Turn the switch off to stop a scheduled, webhook, form, or app-event workflow from starting runs without deleting anything.
A run always uses the version it started on, so publishing while a run is in flight doesn’t change it.
Versions
Section titled “Versions”Click Versions to see every published version, who published it, and when.
- Make live points the workflow at an earlier version without touching your draft. If that version no longer passes the checks, for example because a connection it uses was deleted, the builder lists the reasons.
- Restore to draft copies an old version into the draft so you can edit it and publish again.
KloudMate deletes old versions after 30 days, but always keeps the newest 20 per workflow and the live one. See Limits.
Run a workflow by hand
Section titled “Run a workflow by hand”A published workflow with a manual or form trigger has a Run button. Fill in the trigger’s input parameters and it starts a real run of the published version, even while the workflow is switched off. Users with the Developer role can always do this; a Viewer can when the workflow is set to allow it.
Test run runs the draft instead of the published version. See Test a workflow.
Filter and tag workflows
Section titled “Filter and tag workflows”Tag a workflow inline on its row. Filter the list by status (Enabled, Disabled, or Draft for a workflow that’s never been published) or by tag, or search it.

Export and import
Section titled “Export and import”Export… on a published workflow’s row menu gives you its published version as YAML, ready to Copy or Download. Connections, notification channels, called workflows, and workspace variables appear as named inputs rather than as IDs, so the same file can be imported into another workspace. Anything the export can’t describe stays as a raw ID, and the export lists it.
To import, click Import next to Create workflow, paste the exported YAML or click Choose file, then click Check and Apply. The import matches each reference against the destination workspace:
- A notification channel matches by name and type.
- A workspace variable matches by name and kind, constant or secret. If it’s missing, click Set value during the import to create it.
- A connection matches only when it’s the same one, as when you import a file back into the workspace it came from, or when the workspace has only one usable connection of that kind. Otherwise, select one from the Pick a match list.
- A called workflow matches when it’s in the same file or was imported earlier. Put a called workflow in the same file as the workflow that calls it.
The imported workflow is published, so it runs as soon as the import finishes. If a connection it needs has no match, it’s saved but not published. Importing a workflow that already exists updates it: the import replaces its draft and publishes the file’s version.
Export needs the Read permission for workflows. Import needs Configure, and creating a secret variable needs Secrets. See Config as code for the kmctl CLI and the rest of what an import does.