# 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="https://1573387604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABMqnYtsOO44JmQTVSnn%2Fuploads%2F2JUgZGKhIfR0o02mGwOO%2Fimage.png?alt=media&#x26;token=8c7654bf-b504-4d09-aa0d-4df35bf71242" 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="https://1573387604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABMqnYtsOO44JmQTVSnn%2Fuploads%2FGCnCBz2l9Mx4BtjYUWgb%2Fimage.png?alt=media&#x26;token=1abb94d0-e88e-4d3d-8cdd-0dfa986d9dbd" alt=""><figcaption><p>Post card config</p></figcaption></figure>


---

# Agent Instructions: 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.
