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

# Send leads to Microsoft Teams

> Post to a Microsoft Teams channel the moment a visitor leaves their details in Darwin's website chat or asks for a person, through Zapier.

<div className="darwin-location"><strong>Runs through</strong> Zapier → Darwin + Microsoft Teams <a href="https://app.meetdarwin.ai/admin/settings/api">Open API settings ↗</a></div>

Darwin tells your team in Microsoft Teams while the visitor is still on your site: a new lead, a visitor asking for a person, or a meeting booked from the chat, each with a link to the conversation.

<Note>
  This connection runs through Zapier: Darwin's Zapier app starts the Zap and Zapier's Microsoft Teams app does the work in Microsoft Teams. You choose the fields. This recipe is a two-step Zap, which Zapier's free plan includes.
</Note>

## Before you start

* A paid Microsoft 365 business or enterprise plan that includes Teams. Microsoft Teams Free accounts can't connect to Zapier.
* A Microsoft 365 admin may need to approve the Zapier app in Teams.
* Darwin added to your Zapier account and a Darwin key for Zapier. [Connect Zapier](/integrations/zapier) covers both in two minutes.

## Alert a channel when a visitor asks for a person

<Steps>
  <Step title="Choose the Darwin trigger">
    In Zapier, create a Zap. For the trigger, choose **Darwin** and the event **Visitor Asked for a Person**. Connect your Darwin account with the key, then select **Test trigger** to load a sample.
  </Step>

  <Step title="Add the Microsoft Teams action">
    Choose **Microsoft Teams** as the action app and the event **Send Channel Message**, connect your Microsoft account, and pick the team and channel.
  </Step>

  <Step title="Map the fields">
    Write the message and insert Darwin's fields where you want them. For example:

    | Microsoft Teams field | Darwin field |
    | - | - |
    | Message Text | `{{Full name}} ({{Email}}) asked for a person on {{Page URL}}: {{Why they asked for a person}}. Open the chat: {{Darwin url}}` |
  </Step>

  <Step title="Test and publish">
    Test the action, check the result in Microsoft Teams, then publish the Zap. The next request for a person shows up in the channel within seconds.
  </Step>
</Steps>

## More alerts worth setting up

* **New Lead** to your sales channel, with the visitor's name, email, page and **Darwin url**.
* **Meeting Booked** to your team channel, with the meeting time.

## Good to know

* Each alert is its own two-step Zap, so all of them work on Zapier's free plan.
* To message one person, use **Send Chat Message**.

<AccordionGroup>
  <Accordion title="Darwin isn't listed in Zapier">
    Darwin is in private beta on Zapier. Open the invite link in [Connect Zapier](/integrations/zapier) while signed in to the Zapier account you build Zaps in.
  </Accordion>

  <Accordion title="Is this a native Microsoft Teams integration?">
    No. It runs through Zapier: Darwin's Zapier app starts the Zap and Zapier's Microsoft Teams app posts the message. You write the message.
  </Accordion>

  <Accordion title="My Agent Studio test didn't start the Zap">
    Preview conversations never start a Zap, so testing your agent doesn't fill your tools. Chat on your live website to test end to end, or use the samples from **Test trigger**.
  </Accordion>
</AccordionGroup>

[Connect Zapier →](/integrations/zapier) · [All Darwin triggers and actions →](/integrations/zapier#triggers) · [Webhooks and the API →](/api-reference/introduction)


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