Klarety

Try, go live and pause

Test an automation's draft, take it live so it runs on its own, and pause it when you need to.

An has three states:

  • Draft: runs only when you try it.
  • Live: starts on its own on its schedule or trigger, and spends the 's .
  • Paused: stops starting on its own until someone takes it live again.

A live automation runs unwatched and costs credits, so only a workspace owner or admin can take one live.

Before you start

ToYou need
Try a draftTo be able to edit the project
Run a live automation nowTo be able to open the project
Go live, or make an earlier version live againTo be a workspace Owner or Admin
Pause or deleteTo be able to edit the project

Anyone else sees "An org admin takes automations live." are set in SettingsMembers (see Members). The AI in a Studio can never take an automation live or delete one; it can only ask.

Try a draft

Try it runs the newest draft once, now. Nothing goes live and no schedule starts.

Open the automation

Open it from Automations or from the project's Automations tab.

Select Try it

The opens and you follow each step. On a live automation with draft changes the button reads Try changes; the live version keeps running.

Check the result

Read its Result, and open Log and files on any step. If it is not right, change the draft and try again.

An automation page with the Try it and Go live buttons

klarety automations test saves the draft from your files and runs it once. Pass inputs with --input name=value (repeatable; 7 is read as a number and true as a boolean).

klarety automations test daily-summary --project PROJECT_ID --input table=sales.orders

The answer is the run's id. Follow it with klarety automations show <run_id> and read what it produced with klarety automations result <run_id>.

Go live

A live automation spends credits

Once live, the automation runs on its own and every run uses the workspace's credits. Try the draft first, and pause it when you no longer need it.

Select Go live

On the automation's page, select Go live. The app asks "Take daily-summary live?" (with your automation's name) and reminds you it will spend the workspace's credits.

Confirm

Select Go live again. The automation is Live, its trigger is active, and it moves to Automatic (or On demand) on the Automations page.

The Take live confirmation dialog on an automation page

The Studio's AI can ask to publish an automation instead. You see a notice, "Your AI asks to publish an automation", with See it, Publish and Not now. Nothing runs until a person selects Publish.

From code you ask; a person decides in the app. klarety automations publish saves the draft and sends the request:

klarety automations publish daily-summary --project PROJECT_ID
{
  "version_id": "...",
  "asked": true
}

A workspace owner or admin signed in with their own API key can publish a saved version directly with nx.automations.publish("PROJECT_ID", "daily-summary", version_id). Anyone else gets a RefusedError (HTTP 403), because a live automation spends the workspace's credits.

Run a live automation now

A live automation that starts When you press Run waits under On demand. Open it and select Run.

klarety automations run daily-summary --project PROJECT_ID

Pause an automation

Select Pause and confirm. It stops starting on its own; runs in progress finish. Go live again any time.

nx.automations.unpublish("PROJECT_ID", "daily-summary")

Go back to an earlier version

Every version that went live is kept. Open Earlier versions, pick one and select Make live again. It replaces the live version at once, and needs a workspace owner or admin.

Delete an automation

Select Delete, then Delete automation. It stops and leaves the list. Past runs and their cost stay on record.

If something goes wrong

  • Go live is not available: you are not a workspace owner or admin. Ask one to take it live, or ask your Studio's AI to request it so it shows up for them.
  • A live automation did not start on time: check that it is Live and not paused. A run that failed shows under Failing; open it to see which step stopped and why.
  • Draft changes are not running: changes stay a draft until someone takes them live. The status reads Live, with draft changes.

Where to go next

On this page