> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/ai-sre/ai-sre-for-administrators/get-started/create-runbooks.md).

# Create Your First Runbook

Runbooks automate incident response actions and provide step-by-step guidance for responders.

### Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

* **AI SRE access:** A Harness project with AI SRE enabled. Go to the [AI SRE onboarding guide](/ai-sre/ai-sre-for-administrators/get-started/overview.md) to review prerequisites.
* **Integrated tools:** Runbook actions call your connected tools. Go to [Integrate Your First Tool](/ai-sre/ai-sre-for-administrators/get-started/integrate-tools.md) to connect them first.
* **Incident types:** To attach a runbook to a trigger, define an incident type first. Go to [Set Up Your First Incident Type](/ai-sre/ai-sre-for-administrators/get-started/setup-incident-types.md) to create one.

### Create a runbook <a href="#create-a-runbook" id="create-a-runbook"></a>

{% tabs %}
{% tab title="Step by Step" %}

#### Create the runbook <a href="#create-the-runbook" id="create-the-runbook"></a>

Create a new runbook and give it a name:

1. Navigate to **Runbooks** from the left pane
2. Click on **New Runbook**
3. Fill the creation form with the details:
   * Fill in the runbook details
   * Click on **Save**

#### Add the first action <a href="#add-the-first-action" id="add-the-first-action"></a>

Add an action from the available categories:

1. Click on **New Action**
2. Select the action from the categories you want to add in your runbook. The actions have been classified into different categories based on the use case
3. Select the action:
   * Select the action
   * Click on **Select**

#### Configure the action <a href="#configure-the-action" id="configure-the-action"></a>

Set the details for the action you selected:

1. Fill the details for the selected action
2. Click on **Save**

#### Add more actions <a href="#add-more-actions" id="add-more-actions"></a>

Once saved, you can add more actions:

1. Click on **New Action**
2. Then, **Select Action** and repeat the steps and save

#### Add triggers (optional) <a href="#add-triggers-optional" id="add-triggers-optional"></a>

Additionally, you can add triggers for your runbooks. Click on **Triggers** (this step is optional).

1. Click on **New Trigger**
2. Select the **Incident type** from the dropdown with which you want to attach the runbook
3. Define the **condition of the trigger**
4. Click on **Save** from the top right
   {% endtab %}

{% tab title="Interactive Guide" %}
{% embed url="<https://app.tango.us/app/embed/48a2f0ca-d07f-4395-aa7b-9b5c2c7b9018?skipCover=true&defaultListView=false&skipBranding=false&makeViewOnly=false&hideAuthorAndDetails=true>" %}
Create runbook in AI SRE
{% endembed %}

Automate response actions and guide responders step-by-step during incidents.
{% endtab %}
{% endtabs %}

***

### Next steps <a href="#next-steps" id="next-steps"></a>

* Go to [Expression Languages](/ai-sre/ai-sre-for-administrators/get-started/expression-languages.md) to learn about CEL and Mustache for dynamic content.
* Go to [Create Runbooks](/ai-sre/ai-sre-for-administrators/set-up-runbook-management/create-runbook.md) for advanced runbook configuration.
* Go to [Configure Runbook Triggers](/ai-sre/ai-sre-for-administrators/set-up-runbook-management/triggers/overview.md) to automate runbook execution.
