# Microsoft Teams Workflows

### Configure Microsoft Teams

* In the **Apps** section, click on **Workflows > All Templates** from the left-hand navigation menu

<figure><img src="/files/NK4enCHgebYDqYDeTZlL" alt=""><figcaption></figcaption></figure>

* Browse the templates for **Post to a channel using an incoming webhook**.
* There is also an option for **Post to a Teams chat using an incoming webhook**.
* Once you’ve selected the template, choose the team and channel for the webhook.

<figure><img src="/files/Nk7LXCF89HkOYkGNgA4P" alt=""><figcaption></figcaption></figure>

* After the workflow is created, Microsoft Teams will provide a URL. Copy this URL

### Configure Copia

* In Copia, navigate to the repository where you want to create the webhook.
* &#x20;Inside the repository, go to **Settings > Webhooks**.
* Click on **Add > MS Teams Workflows**.

<figure><img src="/files/JzjhxdwCt3fY0LEvLsBO" alt=""><figcaption></figcaption></figure>

* Paste the URL from Microsoft Teams into the **Target URL** input field.
* You can also configure the trigger events/branch configruation during the setup process.

<figure><img src="/files/GvqkCB5BqvVm6IQxTsRg" alt=""><figcaption></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.copia.io/docs/git-based-source-control/integrations/microsoft-teams-workflows.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.
