# AI SRE Notion integration

Connect Notion to allow AI SRE to look up your team's runbooks, documentation, and other knowledge stored in Notion, and to write back what it learns.

Go to **AI SRE** → [Integrations](https://chat.betterstack.com/team/0/integrations/popular ";_blank") → **Notion** and create a Notion connection for Better Stack:

1. Open **Notion** → **Developer** → [Connections](https://www.notion.so/profile/integrations/internal ";_blank")
2. Click **New connection**.
3. Type in "Better Stack" as **Connection name**, select **API token** and click **Create connection**.
4. Click **Content access** → **Edit access** and select the pages you want to give AI SRE access to.
5. Click **Configuration** and copy the **API token**.
6. Back in Better Stack, enter an **Integration name**, paste the token into **API token** and click **Connect**.

<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  <iframe 
    style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" 
    src="https://www.youtube.com/embed/e2JrNFcMTIA" 
    title="YouTube video player" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" 
    referrerpolicy="strict-origin-when-cross-origin" 
    allowfullscreen>
  </iframe>
</div>

## Look up runbooks and docs in Notion

This is useful when your incident response procedures and technical documentation are in Notion. During an investigation, AI SRE automatically searches for relevant runbooks before trying to solve a problem from scratch.

Once connected, AI SRE can:

-   List your Notion workspaces.
-   Search across pages and databases.
-   Read the content of individual pages, including text, tables, and other blocks.
-   Query databases and read their schemas.
-   Read page comments.

[info]
#### Can't see the most relevant Notion articles?

The integration can only access the pages you select under **Content access** on the Notion connection. If AI SRE can't find a page, open **Notion** → **Developer** → [Connections](https://www.notion.so/profile/integrations/internal ";_blank") and click **Better Stack** → **Content access** → **Edit access** to add it.
[/info]

## Build a knowledge base in Notion

AI SRE can write to Notion, so it can save what it learns during an investigation and grow a knowledge base your team reuses next time.

Once connected, AI SRE can:

-   Create and save pages.
-   Append content to a page.
-   Edit existing content on a page.
-   Add comments.

[success]
#### AI SRE only writes to pages you've shared
AI SRE can only write to the pages you select under **Content access** → **Edit access** on the Notion connection.
[/success]
