> For the complete documentation index, see [llms.txt](https://docs.copia.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.copia.io/docs/git-based-source-control/integrations/microsoft-teams-workflows.md).

# Microsoft Teams Workflows

### Configure Microsoft Teams

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

<figure><img src="https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FaJDcNSZKGtpsz1wMkz7m%2Fworkflows1.png?alt=media&amp;token=1e467d70-d1d7-40b0-9513-d1c639e733cc" 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="https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FUZP3bPSmP8Palj2G94tV%2Fworkflows2.png?alt=media&amp;token=f6947794-32c6-4774-9076-b371048f29b0" 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.
* Inside the repository, go to **Settings > Webhooks**.
* Click on **Add > MS Teams Workflows**.

<figure><img src="https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2FUxNF1MZx8M7dBb2nCCWT%2Fworkflows3.png?alt=media&amp;token=b615e7e0-680a-473a-afa9-917ef2c919c0" 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="https://3704730939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lSQNVI3DZ15V7kjkMCA%2Fuploads%2F4xMqELqJQXAe2gQYrPNH%2Fworkflows4.png?alt=media&amp;token=9609db3d-84ac-4fa6-9d87-d165cb40913e" alt=""><figcaption></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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.copia.io/docs/git-based-source-control/integrations/microsoft-teams-workflows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
