Quickstart
A workspace is a folder with an itero.toml; an empty one will do.
mkdir hello && cd hellotouch itero.tomlmkdir workflows actionsA workflow, workflows/greet.json: on a greet.someone message, run the
action #hello, then show what it said.
{ "on": [{ "event": "greet.someone" }], "steps": ["#hello", "#notify"] }An action, actions/hello: any executable file. It gets the message’s
fields as environment variables, and what it prints joins the run’s
state, so #notify finds $text there.
#!/bin/shecho "{\"text\": \"Merhaba, $name!\"}"chmod +x actions/helloitero checkitero check reads every file and says what is wrong. Start the daemon
and leave it running; it takes each message as it comes:
itero daemonIn another terminal, in the same folder, send a message:
itero emit greet.someone '{"name": "Ayşe"}'Within a second a notification says “Merhaba, Ayşe!”. Then:
itero workflows # each workflow, its runs, and whether the daemon runsitero runs # the run, done, with its nameitero runs <name> # the run step by step.itero/itero.log has a line for each step. Ctrl-C stops the daemon;
itero service install runs it from login on.
- Writing a workflow: side by side, conditions, workflows as steps, the end lists.
- Actions: what an action gets and how it answers.
- Messages and sources: where messages come from.
- The log, IDs and names: what happened, and how to find it.
- The examples in the repository:
mail-alert,mail-servers,order,page-digest,page-summary(a local model) andphotos.