Real workflows, wired together by events, authored as files in a repo, not clicked together on a canvas. Each one compiles with loopy compile; click into any to see it step by step.
A sensor turns an outside signal into a typed event, and only when it matters. The event on the bus drives a workflow that has no idea where it came from.
A poll sensor checks a health endpoint and emits an Incident only when it is down. A second workflow reacts by opening a GitHub issue.
open example →A webhook sensor turns each new Zendesk ticket into a CustomerTicket. A workflow decides whether it warrants work and opens a pull request when it does.
open example →Time-driven workflows. The entry step names a built-in cron(...) schedule, so there is no sensor to write. Each tick carries last_run, so the agent acts only on what changed since then.
Workflows that trigger on built-in Github.* events. No sensor code and no event declaration: the step names the event in on:, and the compiler wires the webhook.
A pull request opens. Github.PullRequestOpened fires, and an agent reviews the diff and posts inline comments on the PR.
open example →An issue opens. Github.IssueOpened fires, and an agent classifies it into a typed area and severity, then posts a triage comment.
open example →A pull request merges. Github.PullRequestMerged fires, and an agent drafts the changelog entry it implies and opens a PR adding it.
open example →