# Teams Presence Based Routing

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

* Presence API Service account configured. See [Presence API Service Account](https://cc.docs.landis.cloud/appendix/presence-api-service-account)
* Landis Contact Center - Platform permissions granted. See [Integration Permissions](https://cc.docs.landis.cloud/appendix/integration-permissions)
  {% 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 %}
