Define an automation
An automation runs without anyone watching, so everything the agent needs is decided when you define it: what to do, which code to work on, which services to use, when to start, and what to do with the result. You define an automation once on the Automations page and change it at any time.
You don't have to start from an empty form. A template fills in the instructions for common workflows such as code review or fixing failed CI builds.
Before you start
Your organization is set up for Air Teams – see Set up Air Teams.
The repository you want to automate is connected. Automations work with GitHub, GitHub Enterprise Server, GitLab, and GitLab Self-Managed – see Connect a VCS provider.
Create an automation
Create an automation
Open the form
Open https://air.jetbrains.cloud, go to the Automations page, and click New Automation. The new automation form opens.

Start from a template
To start from a template, click Use Template in the Instructions section and select it under Organization or By Air. To start from scratch, fill in the empty form.

Name the automation
Enter a name in the name field, or leave it empty for Air Teams to name the automation.
Choose the scope
In the scope selector under the name, keep Personal or select a project to share the automation with its members – see Personal and project automations.
Select a repository
Click Select repository and select what the run works on: a repository, an environment configuration, several repositories, or nothing at all – see Repositories and environments for automations.
In a project whose automations run on the project's AI credits, a GitLab repository is available only if both you and the project's GitLab account can reach it. The ones its account can't reach are marked No project access – see Set up GitLab access for project automations.
Write the instructions
In Instructions, describe what the agent does in every run, or adjust the template's instructions. To switch to another template, click Use Template again. For what makes instructions work without anyone watching, see Write instructions for unattended runs.
Under the instructions, select the agent and the model the runs use.
For a step that a person has to do instead of an agent, click Person in the form header – see Automations done by a person.
Set up triggers
In Triggers, click Add Trigger and set when a run starts and what Air Teams does with its changes – see Automation triggers.
An automation without triggers runs only when you click Run Now. Leaving triggers out at first is a good way to test the instructions – see Run an automation manually.
Connect services via MCP
In Connectors, add the external services the agent uses during the run. The agent also gets the MCP servers from the repository's
.mcp.json– see MCP servers for automations.Set up notifications
In Notifications, optionally add a webhook that sends every finished run to Slack or another system. Failed runs are emailed to you without any setup – see Automation notifications.
Click Create.
Write instructions for unattended runs
The agent can't ask you anything during a run, so the instructions have to answer its questions in advance. The built-in templates follow the same rules:
Say what done means and what to report – for example, one inline comment per finding, or a summary with fixed sections. You don't need to say how to commit or open a pull request: the trigger's change handling tells the agent that. The exception is As the instructions say, where Air Teams doesn't commit or push anything, so the instructions have to say where the changes go.
Say what to do when the task can't be done – for example, post the findings as an issue comment instead of a fix, or leave a pull request alone and list it in the summary.
Set limits – how many pull requests or issues one run handles, and what to skip, such as drafts or anything labeled
do-not-merge.Keep repeat runs quiet – if there's nothing to report, the agent should say so in one line instead of posting again.
The agent also follows the repository's project instructions, so conventions shared with cloud tasks don't need to be repeated here.
Personal and project automations
An automation is either personal or shared within a project. This sets who can use it, which environments and connectors it can use, and whose AI credits its runs spend:
Personal – the default. Only you can view, edit, or run the automation, and its runs spend your AI credits.
Project – project admins can manage the automation, and project members can view it and run it manually. Its runs spend the project's AI credits or the personal credits of the person who created the automation, whichever the project's admins chose under AI Credits – see AI credits for project automations. That setting also decides who the run is, and so how it reaches the repository – see How automation runs reach the repository.
To share an automation, select a project in the scope selector under the automation name when you create or edit it. You can change the project at any time, or set it back to Personal.

AI credits for automation runs
Every run spends AI credits: yours for a personal automation, and for a project automation whichever credits the project's admins chose – see Personal and project automations. An automation can run many times a day, so pick triggers that fire only as often as the work needs, and test new instructions with Run Now before you add triggers.