> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rootly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic

> Connect your Anthropic account to Rootly to power AI-assisted incident workflows using Claude with your organization's own API key and data agreements.

## Introduction

The Anthropic integration lets you connect Rootly to your organization's Anthropic account, using your own API key to power AI-assisted incident workflows with Claude. This gives your team control over the model, data handling, and API usage under your organization's specific agreements with Anthropic. Usage is billed directly to your Anthropic account — not through Rootly — making this a good fit for organizations with data residency requirements or custom API agreements.

With the Anthropic integration, you can:

* Generate AI-powered summaries, analyses, and responses within incident workflows
* Send custom prompts to Claude with full Liquid template support for dynamic, incident-aware content
* Use a system prompt to define Claude's role, tone, or constraints for each workflow action
* Choose which Claude model to use based on your account's available models

## Before You Begin

Before setting up the Anthropic integration, make sure you have:

* A Rootly account with permission to manage integrations
* An [Anthropic API key](https://console.anthropic.com/settings/keys) with access to the models you want to use

We recommend creating a dedicated API key for Rootly rather than using a personal key — this makes it easier to rotate or revoke access independently. Your key is validated on save and encrypted at rest in Rootly.

<Callout icon="triangle-exclamation" color="#FEF3C7">
  API keys are validated against the Anthropic API when you save the integration. If the key is inactive, expired, or over its usage limit, the integration will not save.
</Callout>

## Installation

<Steps>
  <Step title="Open the integrations page in Rootly" icon="plug">
    Navigate to the integrations page in your Rootly workspace and select **Anthropic**.
  </Step>

  <Step title="Enter your Anthropic API key" icon="key">
    Paste your Anthropic API key into the **API Key** field. You can generate or manage keys in the [Anthropic Console](https://console.anthropic.com/settings/keys).
  </Step>

  <Step title="Select a default model" icon="robot">
    Choose the Claude model you want to use for workflow actions. The available models are fetched dynamically from your Anthropic account. Common options include:

    * `claude-opus-4-5` — most capable, best for complex analysis
    * `claude-sonnet-4-5` — balanced performance and speed
    * `claude-haiku-4-5` — fastest, best for high-volume workflows
  </Step>

  <Step title="Integration connected" icon="circle-check">
    <Callout icon="circle-check" color="#DCFCE7">
      Your Anthropic integration is active. The **Create Anthropic Chat Completion** workflow action is now available in your incident and action item workflows.
    </Callout>
  </Step>
</Steps>

## Workflow Actions

### Create Anthropic Chat Completion

Sends a prompt to Claude and captures the response as a workflow output. The response can be used in subsequent workflow steps, posted to Slack, or written to incident fields. Rootly uses a maximum output of **4,000 tokens** per request — for longer responses, consider breaking your workflow into multiple steps with more focused prompts.

| Field         | Description                                                             | Required |
| ------------- | ----------------------------------------------------------------------- | -------- |
| Model         | The Claude model to use — fetched from your Anthropic account           | Yes      |
| Prompt        | The user message sent to Claude — supports Liquid templating            | Yes      |
| System Prompt | Instructions for Claude's role or behavior — supports Liquid templating | No       |

The **System Prompt** field is useful for setting Claude's persona or output format. For example: *"You are an incident response assistant. Respond in bullet points. Be concise."*

<Callout icon="code" color="#EDE9FE">
  Use Liquid variables in your prompts to include live incident context — for example `{{ incident.title }}`, `{{ incident.severity }}`, and `{{ incident.description }}`. See the [Liquid variables reference](/liquid/incident-variables) for all available fields.
</Callout>

## Troubleshooting

<AccordionGroup>
  <Accordion title="The API key is rejected when saving the integration" icon="key">
    Rootly validates your API key by making a test request to the Anthropic API. If the key is rejected, confirm it is active and has not been revoked in the [Anthropic Console](https://console.anthropic.com/settings/keys). Also check that the key has not exceeded its usage limits.
  </Accordion>

  <Accordion title="The workflow action fails with an authentication error" icon="lock">
    If the integration was working and then stopped, the API key may have been rotated or revoked. Go to the integration settings in Rootly and update the API key — Rootly will re-validate on save.
  </Accordion>

  <Accordion title="The workflow action fails with a rate limit error" icon="gauge-high">
    Anthropic enforces rate limits based on your plan tier. If you are running many concurrent workflows, you may hit requests-per-minute or tokens-per-minute limits. Consider staggering workflows or upgrading your Anthropic plan. Rootly does not retry rate-limited requests automatically.
  </Accordion>

  <Accordion title="The model I want is not appearing in the model selector" icon="robot">
    The model list is fetched dynamically from your Anthropic account. If a model is not appearing, confirm that your API key has access to that model. Some models require a specific Anthropic tier or may not yet be available on your account.
  </Accordion>

  <Accordion title="Liquid variables are not rendering correctly in the prompt" icon="code">
    Check your Liquid syntax — unclosed tags or undefined variables can cause rendering failures or unexpected output. Use the [Liquid variables reference](/liquid/incident-variables) to confirm correct variable names and test your template in a low-stakes workflow first.
  </Accordion>
</AccordionGroup>

## Related Pages

<CardGroup cols={3}>
  <Card title="Incident Workflows" icon="bolt" href="/workflows/incident-workflows">
    Build workflows that use Claude to analyze, summarize, or respond to incidents automatically.
  </Card>

  <Card title="Liquid Variables" icon="code" href="/liquid/incident-variables">
    Reference for all incident variables available in Liquid-templated prompts.
  </Card>

  <Card title="Rootly AI" icon="robot" href="/ai/ai">
    Learn about Rootly's built-in AI features for incident management.
  </Card>
</CardGroup>
