# Teams Presence Based Routing

{% hint style="info" %}
Required Prerequisites:

* Presence API Service account configured. See [Presence API Service Account](/appendix/presence-api-service-account.md)
* Landis Contact Center - Platform permissions granted. See [Integration Permissions](/appendix/integration-permissions.md)
  {% endhint %}

When turned off, calls will be routed to agents regardless of their Teams presence state. When turned on, agents will receive calls only when their Teams presence state is Available.

If Route Callers When Teams Presence Is Busy is selected, agents can also receive calls when their Teams presence state is Busy, In a call, In a conference call, and/or In a meeting.

{% hint style="info" %}
The Microsoft documentation states that the Teams presence API has an average latency of less than 10 seconds and a maximum latency of 60 seconds.<https://learn.microsoft.com/en-us/graph/change-notifications-overview#latency>
{% endhint %}


---

# 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://cc.docs.landis.cloud/appendix/teams-presence-based-routing.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.
