# 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&#x26;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&#x26;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.
* &#x20;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&#x26;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&#x26;token=9609db3d-84ac-4fa6-9d87-d165cb40913e" alt=""><figcaption></figcaption></figure>
