> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avina.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Teams Integration

> Post Avina leads into a Microsoft Teams channel with a Teams Workflow webhook

## Overview

Avina posts leads to Microsoft Teams through an incoming webhook that you create in Teams with the built-in **Workflows** app. There is nothing to install or approve on the Avina side: you create the workflow, paste its URL into an automation, and every lead that automation captures is posted to the channel as a card.

> [!NOTE]
>
> Workflows requires a Microsoft 365 work or school account (Business Basic or higher, or any Enterprise plan). Teams (free) and Teams Essentials do not include Workflows, so the option will not appear there.

## Step 1: Create the webhook in Teams

**1. Open Workflows from the channel**

In Teams, go to the channel that should receive signals. Click the **⋯** next to the channel name and choose **Workflows**.

![The channel options menu in Microsoft Teams with Workflows highlighted](https://mintcdn.com/meshanalytics/GhI25SGE-ZUBbVv-/images/integrations/microsoft-teams/channel-workflows-menu.png?fit=max\&auto=format\&n=GhI25SGE-ZUBbVv-\&q=85\&s=e91058df429fd5f8e5f83c500c5c8a4a)

**2. Pick the webhook template**

Select **Send webhook alerts to a channel**. If it is not shown, search the templates for "webhook".

![Workflows template picker showing Send webhook alerts to a channel](https://mintcdn.com/meshanalytics/GhI25SGE-ZUBbVv-/images/integrations/microsoft-teams/workflows-templates.png?fit=max\&auto=format\&n=GhI25SGE-ZUBbVv-\&q=85\&s=1980444db5e7a415b8d575318239443e)

**3. Name it and save**

Give the workflow a name such as "Avina signals", confirm the team and channel, and click **Add workflow** (labelled **Save** in some tenants). Teams may ask you to sign in to the Teams connector the first time.

**4. Copy the webhook link**

Teams opens the workflow's details page. Click **Copy webhook link**. This is the URL you will paste into Avina.

![Workflow details page with the Copy webhook link action](https://mintcdn.com/meshanalytics/GhI25SGE-ZUBbVv-/images/integrations/microsoft-teams/copy-webhook-link.png?fit=max\&auto=format\&n=GhI25SGE-ZUBbVv-\&q=85\&s=e4070f2c977d6e6f05f297c169fc3508)

> [!WARNING]
>
> Treat the webhook link like a password. Anyone who has it can post to the channel. If it leaks, delete the workflow and create a new one.

## Step 2: Add the destination in Avina

**1. Create or edit an automation**

Go to **Automation**, create a new automation or open an existing one, and choose the audience and filters that should trigger it. See [Automations](https://docs.avina.io/features/automations.md) for the full builder.

**2. Choose Microsoft Teams Message as the action**

Under **Then…**, select **Send a Microsoft Teams Message** and paste the webhook link into the URL field.

![Avina automation builder with the Microsoft Teams Message destination and webhook URL field](https://mintcdn.com/meshanalytics/GhI25SGE-ZUBbVv-/images/integrations/microsoft-teams/automation-teams-destination.png?fit=max\&auto=format\&n=GhI25SGE-ZUBbVv-\&q=85\&s=07946b63f7bdaf18baf526ad65223a47)

**3. Test it**

Click **Test Webhook**. A card titled "Avina test signal" appears in the channel within a few seconds.

> [!TIP]
>
> If the test card arrives, the connection is working. Save and activate the automation.

## What gets posted

Each lead the automation captures becomes one card in the channel with:

* **Headline** and the signal summary, with links to the company and any sources
* **Matched contacts**, each with an email link and LinkedIn link when available
* **Account**, **owner**, **ICP fit**, and **account score** when Avina has them
* **Buttons** to open the company website and LinkedIn page

Existing leads aren't posted automatically when you activate the automation, only leads found after activation. To post earlier leads, use **Enroll N Past Matching Leads** when you activate, or enroll them from the automation's **Not Enrolled Yet** list.

## Good to know

* **The workflow belongs to the person who created it, not to the channel.** If that person leaves your organization, Teams disables the workflow and leads stop arriving. To avoid this, open the **Workflows** app, find the workflow under **Your workflows**, and add a co-owner.
* **Do not edit the template's steps.** The template forwards Avina's card straight to the channel. Changing the post action can stop the card from rendering.
* **Private channels** post the card on behalf of the workflow's creator rather than as the Workflows bot.
* **One channel per automation.** To post the same leads to several channels, create one workflow per channel and one automation per webhook URL.

## Troubleshooting

| Symptom | What to check |
| - | - |
| Test Webhook fails | Copy the link again from the workflow details page. The URL is long and easy to truncate. |
| Test works but leads never arrive | The automation is inactive, or its audience and filters do not match any new leads. Check the automation's enrollments in Avina. |
| Leads stopped arriving after working for a while | The workflow was turned off or its owner left the organization. Open **Workflows** → **Your workflows** and confirm it is **Active**. |
| Card arrives without buttons | Your Teams client is out of date. Buttons render on current desktop, web, and mobile clients. |

## Stopping delivery

Deactivate the automation in Avina, or turn the workflow off in Teams: open **Workflows** → **Your workflows**, click **⋯** next to the workflow, and choose **Turn off** or **Delete**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.