> For the complete documentation index, see [llms.txt](https://docs.perfectscale.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.perfectscale.io/customize-workflow/communication-and-messaging/ms-teams-integration/how-to-configure-teams_webhook.md).

# How to configure teams\_webhook

{% hint style="info" %}
**teams\_webhook** is a mandatory field to configure MS Teams integration.
{% endhint %}

{% hint style="warning" %}
starting **May 18, 2026**, old webhooks may stop working. To avoid disruptions, all users need to migrate to the new workflow. [Learn more](https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/).
{% endhint %}

Setting up teams\_webhook is a simple process that can be completed in a few steps.

1. Go to <https://teams.microsoft.com/>.
2. In the target Teams channel, open Workflows and create a new flow using the `When a Teams webhook request is received` trigger. Set `Anyone` in the `Who can trigger the flow`.
3. Parse JSON wit hthe following parameters:
   * Content - “Teams” Body
   * Schema:

```json
{
    "type": "object",
    "properties": {
        "type": {
            "type": "string"
        },
        "attachments": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "contentType": {
                        "type": "string"
                    },
                    "contentUrl": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "content": {
                        "type": "object"
                    }
                }
            }
        }
    }
}
```

4. Select `Apply to each`, then set `attachments` as the **Select an output from previous steps** value.
5. Set `content` value for the **Compose -> Inputs** (inside `Apply to each`).

<figure><img src="/files/nccpTT02wqnltH1EFefd" alt=""><figcaption><p>Configuring MS Teams webhook</p></figcaption></figure>

6. Click **Post card in chat or channel** and set the **Adaptive Card** field to `Outputs` (inside `Apply to each`).

<figure><img src="/files/ZMVnqZY522We7wmSYq7d" alt=""><figcaption><p>Post card config</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.perfectscale.io/customize-workflow/communication-and-messaging/ms-teams-integration/how-to-configure-teams_webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
