Automations

Trigger-driven agent loops on a visual canvas: when something happens, the agent works, tests run, and a pull request opens.

Available on Plus

An automation is a loop you draw once and Fairlx runs every time its trigger fires. A new bug can start the agent, run your tests, open a pull request, post to Slack and move the card to In Review, without anyone assigning it. Automations are available on Plus.

Open them from Agent → Agent tools → Automations. The page has your list of loops on the left and the canvas for the selected loop on the right.

app.fairlx.com
Automations canvas showing the Bug → fix → test → PR loop with Trigger, Fairlx Agent, Run tests and Supervisor steps and a Run now button
The Bug → fix → test → PR loop on the automations canvas.

Triggers

Every loop starts with one trigger. Most triggers can be narrowed with filters such as item type, priority, status or a keyword.

TriggerFires when
Work item createdA bug, story or task is raised.
Status changedAn item moves to a status, for example Ready.
Assigned to FairlxSomeone assigns the Fairlx Agent.
@Fairlx in a commentSomeone mentions @Fairlx on the item.
@Fairlx in Slack / DiscordA thread reply mentions Fairlx.
CI failedCI fails on a merged or default-branch commit. The keyword matches repo, branch, workflow, job or class.
Deploy failedA production deploy fails. The keyword matches repo, branch or environment.
CI passed after mergeCI on a watched merge, and its production deploy, goes green.
Run button onlyNever fires on its own. Use Run now.

Step types

After the trigger, connect steps on the canvas. Each step has its own settings in the details panel.

StepWhat it doesSettings
TriggerStarts the loop.Trigger kind and filters
Fairlx AgentRuns the agent on the item, usually in a coding sandbox.Prompt, autonomous mode
Run testsRuns a test command in the sandbox.Command, number of retries
Deploy / PRDelivers the work, for example by opening a pull request.Mode, optional command
NotifyPosts a message.Channel (Slack or in-app), target, message
SupervisorWatches the loop and tells someone when it starts, fails or finishes. Can require approval.Target, channel, when to notify, require approval
Close itemMoves the item to a status and leaves a comment.Status, comment

A step can have a failure path, drawn as a red dashed line, so you decide what happens when tests fail or the agent cannot finish.

Example: Bug → fix → test → PR

This loop is available as a template when you create a new loop. It handles new bugs end to end.

  1. Trigger: Work item created

    Filtered to the Bug item type, so only new bugs start it.

  2. Fairlx Agent

    The agent reproduces the bug in the sandbox, finds the root cause and makes the smallest safe fix. Its prompt:

    Agent prompt
    Reproduce the bug in the sandbox, find the root cause, and fix it with the
    smallest safe change. Add or update a regression test.
  3. Run tests

    Runs your test command, for example npm test -- --run, with up to two retries.

  4. Deploy / PR

    Opens a pull request with the fix.

  5. Notify and Close item

    Posts to Slack with the item key, title and pull request link, then moves the item to In Review with a comment.

  6. Supervisor

    Tells the person you choose when the loop starts, fails or finishes.

Notify messages can include values from the run. The template uses:

Notify message
Fairlx fixed {{key}} — {{title}}. Tests pass and the PR is open: {{prUrl}}

Build a loop

  1. Create the loop

    Click New loop and start from a template, or describe what you want in Describe the loop and Fairlx drafts it onto the canvas.

  2. Configure each step

    Select a step to open its settings. Set the trigger filters, edit the agent prompt and the test command, and choose who the Supervisor notifies.

  3. Save and test

    Click Save loop, then Run now to try it before it fires on real events.

  4. Enable it

    Turn on Enabled in the loop toolbar. From now on the trigger starts the loop.

Run now

Run now starts the loop immediately and shows its recent runs. Use it to test a new loop, or with the “Run button only” trigger for loops you want to run on demand, such as a weekly dependency check. On a phone, loops open read-only with Run now and their last runs.

Plans and credits

Automations are a Plus feature. Agent steps spend AI credits like any agent run, and coding steps use the same sandboxes as coding sessions. See Credits & usage.

Good practices

  • Filter triggers tightly. “Work item created” with no filter fires on every item. Narrow it to a type, priority or keyword.
  • Test with Run now first. Run the loop by hand on a sample item before you enable it.
  • Always add a Run tests step before Deploy / PR. It catches broken fixes before anyone reviews them.
  • Add a Supervisor. Someone should hear about failures. Use “require approval” for loops that build features rather than small fixes.
  • Keep prompts specific. Say what “done” means and what the agent must not do, for example “Never skip or delete the failing test.”
  • Deliver through pull requests. Let people review automated work in Review Studio before it merges.

Automations and approvals

Automated work still lands as a branch or pull request that people review. Combine loops with the project’s agent defaults and approval settings to keep the level of oversight you want.

FAQ

Can an automation post to Slack?+
Yes. Use a Notify step with the Slack channel. The project needs the Slack integration.
Can I pause a loop without deleting it?+
Yes. Turn off Enabled in the loop toolbar. The loop and its canvas stay as they are.
Are automations available on the Normal plan?+
No. Automations need Plus.
Was this page helpful?

Last updated 21 Nov 2026