---
title: "Use Automations | Grafana Cloud documentation"
description: "Create saved Grafana Assistant prompts that you can run on demand or on a recurring schedule."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Use Automations

Use Automations to save a Grafana Assistant prompt and run it again later, either manually or on a schedule. This is useful for recurring tasks such as daily summaries, repeated checks, or routine follow-up workflows that you want Assistant to handle consistently.

Each automation run creates a dedicated Assistant conversation, so you can inspect results, follow links back to the conversation, and compare runs over time.

## What you’ll achieve

- Create reusable Assistant prompts for recurring work.
- Run an automation manually whenever you need it.
- Add a schedule for recurring runs.
- Choose whether an automation is personal or shared across your organization.
- Review recent runs and open the conversation created by each run.

## Before you begin

Ensure you have the following:

- **Grafana Cloud**: Automations are a Grafana Cloud-only feature.
- **Grafana Assistant**: Assistant must be available for your stack, and any required Assistant terms must be accepted. Depending on your Grafana Cloud agreement, terms acceptance may be handled automatically on first use or by an administrator in plugin settings.
- **Permissions**: You need RBAC permissions for the scope you want to manage:
  
  - **Personal automations**: Full management requires `grafana-assistant-app.automations.user:*` (read, create, write, delete).
  - **Everybody automations**: Full management requires `grafana-assistant-app.automations.tenant:*` (read, create, write, delete).
  - **All automations**: The **Assistant Admin** role includes `grafana-assistant-app.automations:read` and `grafana-assistant-app.automations:write`. These permissions let administrators view and edit every automation in the stack, including another user’s private automation. The **Manage** tab requires `grafana-assistant-app.automations:write`; read permission alone doesn’t grant access to the tab.
  - **Service account automations**: Creating an automation that runs as the Assistant service account requires `grafana-assistant-app.automations:write` and permission to create an **Everybody** automation. Editing one requires `grafana-assistant-app.automations:write`.
  - **Plugin access**: `plugins.app:access` scoped to `plugins:id:grafana-assistant-app`.
  
  Refer to [Manage Assistant access with RBAC](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/privacy-and-security/rbac) for details on assigning roles.
- **Skills (optional)**: Install or create [Skills](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/skills) if you want to reference reusable instructions with a `/slash-command` at the start of an automation prompt.

## Open Automations

Navigate to **AI** &gt; **Automations** in the main menu.

The Automations page lets you create, edit, enable, disable, run, and delete automations. Each card surfaces the most important runtime details at a glance:

- Whether the automation is **Enabled** or **Disabled**.
- Whether it is **Just me**, **Private**, or for **Everybody**.
- Whether it runs as a user or the Assistant service account.
- What starts it: its schedule, an event trigger, for example, a Slack message, or **Manual only** when it has neither.
- The next scheduled run, when applicable.
- The schedule deadline and **Active**, **Paused**, or **Completed** lifecycle for bounded schedules.

The **Table** view adds a **Notifications** column that shows where each automation sends its results, or **None**.

In the **Manage** tab, you can also see who created automations you don’t own. Open an automation to see who last edited it when that person differs from its creator.

The **For me** view shows your personal automations and automations shared with everyone. If you have `grafana-assistant-app.automations:write`, use the **Manage** tab to see all automations, including other users’ private automations. Changes made there can affect other users. In both **For me** and **Manage**, you can switch between cards and a table using the list view control.

## Review triggers and run history

Open an automation to see everything that starts it. The **Trigger** item, or **Triggers** when there are several, lists the schedule and each event trigger.

**Run history** shows what started each run in the **Trigger** column: **Manual**, **Schedule**, or the event type and its source. Each run keeps the trigger it started from, even after you change or remove that trigger.

## Create an automation

To create an automation:

01. Navigate to **AI** &gt; **Automations** in the main menu.
02. Click **New automation**.
03. Enter a **Name** so the automation is easy to recognize later, and an optional **Description** for extra context.
04. Select a **Visibility**: **Just me** or **Everybody**. The options shown depend on your RBAC permissions.
05. Expand **Access and billing** and select an option:
    
    - **Personal access** uses the invoker’s Grafana permissions for manual runs, the creator’s permissions for scheduled runs, and the identity the trigger supplies for event-triggered runs, for example, the author of the Slack message. Usage counts toward the same user.
    - **Organization access** uses the existing Assistant service account for every run and counts toward the organization’s system-initiated token pool. This option requires the Grafana organization Admin role and **Everybody** visibility. Click **Learn more** for pricing details.
06. Under **When to run**, choose what starts the automation. A new automation starts with a daily schedule at 9 a.m. Adjust the schedule and its **Timezone** in IANA format, for example, `America/New_York` or `UTC`. To run it only when someone starts it, click **Remove** on the schedule. To add a schedule back, click **Add trigger** and select **Schedule**.
07. Optionally, to run the automation when a pull request is merged or opened, click **Add trigger** and select **GitHub event**. Choose the **Repository** and **Event**, and an optional **Base branch**. Refer to [Run on GitHub pull requests](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/automations/#run-on-github-pull-requests).
08. Optionally set **End schedule** to keep a recurring automation active only through a specific deadline. Runs scheduled exactly at the deadline are included.
09. Write the **Instructions** Grafana Assistant should run. To start with a [Skill](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/skills), prefix the instructions with `/<YOUR_SKILL_NAME>`.
10. Expand **Notifications** and select **Slack**, **Webhook**, or **Email** if you want updates when the automation runs. Leave the destination set to **None** for no notifications.
11. Turn on **Enable now** so the automation runs on its schedule or event triggers. You can still run disabled automations manually.
12. Click **Create automation**.

### Review and test instructions

Before you save, click **Improve** beside **Instructions** to generate a suggestion. Review the changes, then click **Use improved instructions** to apply them or **Keep original** to leave your instructions unchanged.

Click **Test instructions** to open a chat draft with your current instructions. Send the draft when you’re ready. The chat uses your permissions, not the automation’s schedule, notification settings, or service account identity. Testing doesn’t save the automation.

### Schedule format

Schedules use the standard 5-field cron format (`minute hour day-of-month month day-of-week`) interpreted in the timezone you select. Use the **Visual** mode to build a schedule with dropdowns, or switch to **Expression** mode to type a cron expression directly. The expression mode also accepts a natural-language description, for example, `every weekday at 9 a.m.`, which is converted to a valid cron expression.

Common examples:

Expand table

| Schedule                | Cron expression |
|-------------------------|-----------------|
| Every weekday at 9 a.m. | `0 9 * * 1-5`   |
| Every hour on the hour  | `0 * * * *`     |
| Every Monday at 08:30   | `30 8 * * 1`    |
| First of the month      | `0 0 1 * *`     |

Schedules must be at least 15 minutes apart. Automations are designed for recurring workflows, not high-frequency jobs.

### Run on GitHub pull requests

A **GitHub event** trigger runs the automation when a pull request in a repository is merged or opened, optionally only for one base branch. Leave **Base branch** empty to match pull requests into any branch.

GitHub senders don’t have a Grafana identity, so these runs use **Organization access**. Adding a GitHub event switches **Access and billing** to **Organization access** and keeps it there while the trigger remains. Only organization admins can choose **Organization access**, so only they can add a GitHub event.

The repository list shows the repositories enabled in your GitHub connection settings. Each run receives the pull request number, title, branches, and commit SHAs, but not its description. Pull requests from forks, from bots, and from people without write access to the repository don’t start a run.

Removing a repository from this list doesn’t remove its saved triggers. To stop those runs, remove the trigger from **When to run** or disable the automation.

### Create an automation from chat

When bounded schedules are enabled for your stack, you can ask Assistant for a recurring action over a limited duration, for example, “check these metrics every 15 minutes for the next two hours.” Assistant converts the duration to an absolute deadline in your timezone, shows one confirmation with the cadence, deadline, expected execution count, and token-usage warning, then creates the automation. If you asked to begin now, the immediate run is additional to the cron-aligned runs.

Assistant also asks you to confirm before it creates or updates an automation to email its results, and before it changes the prompt of an automation that emails its results. The confirmation lists the email recipients. **Always allow** doesn’t apply to these confirmations, because email can reach any address. Other changes, such as a new prompt for an automation that posts to Slack or removing an end date, don’t ask.

The originating chat shows an **Automation** card with its schedule, status, and **Ends in…** countdown. **View details** opens the detail page in a new tab from full-screen Workspace. Each run creates its own conversation, linked from **Latest run** and the detail page. **Stop** disables future scheduled runs and changes the status to **Paused**.

At the inclusive deadline, an enabled automation shows **Completed**. The first scheduled run after the deadline removes the automation and its schedule; the card then shows **Automation unavailable**. For checks that continue in the same investigation conversation, refer to [Keep checking with automations](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/investigation/#keep-checking-with-automations).

## Publish a Page from each run

Turn on **Publish a Page** to have each scheduled or manual run present its result as a Grafana Page. The run builds the Page in its conversation, checks that it renders, and publishes it in the folder you choose, where anyone with access to that folder can open it.

To publish a Page from each run:

1. Create or edit an automation.
2. Turn on **Publish a Page**.
3. Under **Folder**, choose an existing folder or create one.
4. Click **Create automation**, or **Save changes** when you edit one.

Every notification of a completed run links to its Page. Slack notifications share the Page’s preview image after the message, and email notifications show it below the Page link. Webhook requests include the Page in a `page` object with its `id`, `title`, and `url`. If the preview image can’t be captured within two minutes, the notification still links to the Page.

Each run publishes a new Page, so a daily automation adds one Page per day. Ask for the date in the title in your prompt, for example, “Title the Page with today’s date”, to tell them apart.

Publishing a Page requires **Personal access**, because the Page belongs to the person the run acts as, and that person needs permission to create Pages in the folder. When you save the automation, Grafana Assistant checks that you can create Pages in the folder you chose. Runs that a Slack message, GitHub event, or Watcher starts don’t build a Page.

## Configure notifications

Expand **Notifications** when you create or edit an automation, then select a destination. Slack notifications can go to a channel or direct message. Webhook notifications require an HTTPS URL and can optionally include an Authorization header or HMAC signing secret. Redirects aren’t followed, so configure the final URL directly. Email notifications go to a list of up to 25 email addresses. To notify a larger audience, use a group or distribution list address.

The form configures one destination at a time. If an automation was configured through the API to notify several destinations, you can preserve that combination or replace it with a single destination.

### Email notifications

Select **Email** as the destination and add recipient addresses. You can enter addresses one at a time or paste a comma-separated list. Each notification includes the automation name, the run status, how the run was triggered, the run summary, and a link back to the conversation created by the run. When the run [publishes a Page](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/automations/#publish-a-page-from-each-run), the email also links to the Page and shows its preview image.

Email notifications format Markdown headings, lists, links, tables, and code blocks as HTML, with a plain-text alternative. To control the report structure, describe it in your automation prompt or Skill, for example, “Start with a summary, then show a table of affected services and finish with recommended actions.” Raw HTML templates and images in the summary aren’t supported. Long summaries are truncated; open **View the conversation** for the full result.

Email notifications must be enabled for your stack. If saving fails with an error that email notifications aren’t available, contact Grafana Support.

### Verify webhook signatures

When you configure an HMAC signing secret, each webhook request includes the Unix timestamp in `X-Assistant-Signature-Timestamp` and a lowercase hexadecimal HMAC-SHA256 digest in `X-Assistant-Signature`. Grafana Assistant calculates the digest as:

text ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy

```text
hex(HMAC-SHA256(<SECRET>, <TIMESTAMP> + ":" + <RAW_REQUEST_BODY>))
```

Use the request body bytes exactly as received, compare the digest in constant time, and reject timestamps outside an acceptable window to limit replay attacks.

## Choose visibility

Automations support two visibility scopes:

- **Personal** automations appear as **Just me** to their creator and are hidden from other regular users. Assistant administrators with tenant-wide automation read access can also view them; they appear as **Private** with creator attribution.
- **Everybody** automations are visible across the team for users with the right access.

Which options you can create or manage depends on your RBAC permissions. Personal scope requires `grafana-assistant-app.automations.user:*`, and tenant scope requires `grafana-assistant-app.automations.tenant:*`. Tenant-wide `grafana-assistant-app.automations:read` and `grafana-assistant-app.automations:write` permissions let an administrator view and edit both scopes without changing the automation’s owner.

For team-scoped automations, the resulting conversation is still private to the user who triggered the run. To share the output, the creator or invoker must explicitly share the chat.

## Run an automation manually

Manual runs are useful for testing a prompt or triggering an automation outside its schedule.

1. Find the automation on the **Automations** page.
2. Click **Run**.
3. Wait for the **Run triggered** confirmation. Click on the card to view the triggered run.

You can run an automation manually whether it is enabled or disabled.

If an applicable monthly token limit is already reached, **Run** shows a usage-limit message without queueing the run. **Personal access** checks the monthly limit of the user starting the run. **Organization access** checks the organization’s system-initiated token pool limit. Both also check the stack-wide monthly token limit.

Review token usage and limits in **AI &gt; Usage &gt; Tokens**. You can try again after the next monthly reset or after someone with permission to edit usage limits raises or removes the applicable limit. Refer to [Set usage limits](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/pricing/#set-usage-limits) for details.

Tenant-wide read and write access doesn’t let an administrator run another user’s private automation. Manual runs remain limited to the owner of a personal automation and users with permission to run an **Everybody** automation.

## Edit an automation

Update an existing automation when its prompt, schedule, scope, or execution identity changes.

1. Click on the automation card.
2. Open the **More actions** menu and click **Edit**.
3. Update any of the fields, including **Name**, **Description**, **Visibility**, **Access and billing**, **When to run**, **Instructions**, or **Enable now**.
4. Click **Save changes**.

Changes to the schedule or timezone take effect on the next scheduled run.

**When to run** lists what starts the automation: its schedule and any event triggers, for example, a Slack message. You can change or remove the schedule here. You can also remove an event trigger here, but you change it where you set it up. To change a GitHub event, remove it and add a new one.

Assistant administrators can edit any automation, including another user’s private automation. The detail view preserves the original creator and identifies the last editor after an administrator makes a change.

## Enable or disable an automation

Use the **Enabled** switch on the automation card to pause or resume scheduled runs without losing the configuration. Disabled automations don’t run on a schedule but can still be invoked manually with **Run**.

## Delete an automation

Remove an automation when it’s no longer needed. Conversations from previous runs are kept.

1. Click on the automation card.
2. Open the **More actions** menu and click **Delete**.
3. Confirm the deletion in the dialog.

Deleting an automation removes its schedule. Conversations created by previous runs are retained.

Tenant-wide automation write access doesn’t grant delete access to another user’s private automation. Deletion continues to use the automation’s scoped delete permission and, for a personal automation, requires ownership.

## Review run history

Each automation card has a **History** view. Click the card to see all recent runs. The history view shows:

Expand table

| Column       | Description                                                                        |
|--------------|------------------------------------------------------------------------------------|
| **Status**   | Whether the run is in progress, completed, or failed.                              |
| **Trigger**  | What started the run: **Manual**, **Schedule**, or the event type and its source.  |
| **Started**  | Relative time when the run started.                                                |
| **Duration** | How long the run took to finish.                                                   |
| **View**     | Link to the Assistant conversation created by the run. Opens in a new browser tab. |

Run history and links to run conversations remain private to the owner of a personal automation. An administrator can view and edit another user’s private automation, but can’t view its run history, run conversation link, or private run error details.

Use **Send feedback** on the automation detail page to tell Grafana whether the automation is working well for you.

## Use Skills with automations

Skills work well with automations because they encapsulate reusable instructions and can be invoked with a slash command. To run a skill from an automation, start the prompt with `/<YOUR_SKILL_NAME>` followed by any extra context.

Example prompt:

> /check-cart
> 
> Summarize the last 24 hours of error rates and notable log spikes for the checkout service. Highlight anything that breached the SLO.

For more information about creating skills, refer to [Create Skills](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/skills).

## Understand how runs behave

Each automation run creates a dedicated Assistant conversation. The conversation is opened with the configured prompt and runs to completion in the background.

- **User identity**: For automations that use **Personal access**, manual runs use the Grafana identity of the user who starts the run. Scheduled runs use the creator’s Grafana identity. Event-triggered runs use the identity their trigger supplies, for example, the author of the Slack message that started the run.
- **Service account identity**: For automations that use **Organization access**, manual, scheduled, and event-triggered runs all use the existing Assistant tenant service account. These runs continue when the creator loses access or leaves the organization.
- **Conversation ownership**: The conversation generated by a user-mode run belongs to the user who triggered it. Service account run conversations belong to the Assistant service account.
- **Token usage**: User-mode runs count toward the executing user’s token usage. Service account runs count toward the organization’s system-initiated token pool. Frequent schedules can add up quickly. Refer to [Understand Grafana Assistant pricing and usage](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/pricing) for details.
- **Failure handling**: A failed run is recorded in the **History** with a `failed` status. The next scheduled run is unaffected.

## Known limitations

- **Grafana Cloud only**: Automations aren’t available in self-hosted Grafana, even when the plugin is connected to a Grafana Cloud Assistant backend.
- **Minimum interval**: Schedules must be at least 15 minutes apart.
- **Run length**: Each run has a budget of up to 60 tool-calling steps. If a run reaches this limit before it finishes, split the work into smaller prompts.
- **Conversation ownership**: Team automations don’t automatically share the resulting conversation with other users. Sharing must be done manually from the chat.
- **Private run history**: Tenant-wide automation administration doesn’t expose another user’s personal automation run history, conversation links, or private run error details.

## Best practices

Follow these guidelines to keep automations reliable and easy to maintain.

- Start with a self-enclosed prompt that is clear, specific, and repeatable.
- Click **Improve** to refine your instructions, and click **Test instructions** to test them in a chat draft before saving.
- Use manual runs first to validate the prompt before adding a schedule.
- Use **Just me** while experimenting, then switch to **Everybody** for shared workflows if your team needs them.
- Avoid frequent schedules unless the automation is important enough to consume Assistant tokens on every run.
- Wrap recurring procedures in a [Skill](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/skills) and call it from the automation prompt with a slash command, so updates to the procedure flow into every scheduled run.
- Review important automations periodically to ensure their prompts, schedules, and permissions remain appropriate.

## Troubleshoot common issues

Use the following checks when an automation doesn’t behave as expected.

### Scheduled runs aren’t firing

- Confirm the automation is **Enabled**.
- Check the **Next run** value by clicking on the card. If it’s missing, the schedule maybe invalid; edit the automation and re-enter the cron expression.
- Verify the timezone is a valid IANA timezone, for example, `America/New_York`.
- Confirm the schedule is at least 15 minutes apart from the previous run.

### A run failed

- Open the conversation linked from the **History** view to see the agent’s last activity and error messages.
- Review the prompt for ambiguous references, missing data sources, or resources the creator no longer has access to.
- Re-run manually to confirm whether the failure is transient.

### “Visibility” only shows one option

The visibility options reflect your RBAC permissions. If you only see **Just me** or only see **Everybody**, ask an administrator to grant the corresponding scoped `grafana-assistant-app.automations.*` permissions. The tenant-wide `grafana-assistant-app.automations:read` and `grafana-assistant-app.automations:write` permissions are intended for administrators who need to view and edit all automations. Refer to [Manage Assistant access with RBAC](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/privacy-and-security/rbac) for the complete permission list.

## Next steps

- [Create Skills](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/skills) to package reusable instructions you can call from an automation.
- [Configure Assistant rules](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/configure/rules) to shape Assistant behavior across automations and chat.
- [Manage Assistant access with RBAC](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/privacy-and-security/rbac) to grant the right level of automation access.
