> 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

Step-by-step guide on 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&amp;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&amp;token=1abb94d0-e88e-4d3d-8cdd-0dfa986d9dbd" alt=""><figcaption><p>Post card config</p></figcaption></figure>
