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

# Set Handover Inactivity

<Frame>
  <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/services/set-handover-inactivity.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=1df97e0364e13895488f645ce4c76fd0" alt="Set Handover Inactivity Node configuration panel" style={{ width: 'auto' }} width="416" height="110" data-path="_assets/ai/develop/node-reference/services/set-handover-inactivity.png" />
</Frame>

## Description

This Node detects and handles user inactivity, freeing up capacity for the human agent team. To configure this Node, specify the time in minutes during which the user can be inactive.

## Parameters

| Parameter | Type   | Description                                                |
| --------- | ------ | ---------------------------------------------------------- |
| Timer     | Number | The time in minutes during which the user can be inactive. |

## How to Use

To use the Node, first configure the [Lookup](/ai/agents/develop/node-reference/logic/lookup) Node to enable different inactivity behaviors.

<Frame>
  <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/jD73u_IBHRit9B59/_assets/ai/develop/node-reference/other/set-handover-inactivity-lookup.png?fit=max&auto=format&n=jD73u_IBHRit9B59&q=85&s=198f79694acb8607e1c062a598c48ae1" alt="Lookup Node configured for handover inactivity behavior" style={{ width: 'auto' }} width="1190" height="736" data-path="_assets/ai/develop/node-reference/other/set-handover-inactivity-lookup.png" />
</Frame>

To manage the user inactivity time, use the `input.handover.inactivityCount >= <times inactivity was reached>` condition in the **Condition** field of the [If](/ai/agents/develop/node-reference/logic/if) Node. For example, `input.handover.inactivityCount >= 2`. You can also adjust the count value as needed.

<Frame>
  <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/jD73u_IBHRit9B59/_assets/ai/develop/node-reference/other/set-handover-inactivity-if.png?fit=max&auto=format&n=jD73u_IBHRit9B59&q=85&s=96c83f0d881f0d43b4220bb133d6a050" alt="If Node with handover inactivity count condition" style={{ width: 'auto' }} width="1569" height="764" data-path="_assets/ai/develop/node-reference/other/set-handover-inactivity-if.png" />
</Frame>

To improve the user experience, after the Set Handover Inactivity Node, add a [Say](/ai/agents/develop/node-reference/basic/say) Node message that prompts the user with a message such as `Are you still there? The conversation will be automatically closed soon`.

<Frame>
  <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/jD73u_IBHRit9B59/_assets/ai/develop/node-reference/other/set-handover-inactivity-say.png?fit=max&auto=format&n=jD73u_IBHRit9B59&q=85&s=14770d54cdf9fcc36ba4db74d9a32e2f" alt="Say Node with inactivity prompt message for the user" style={{ width: 'auto' }} width="1600" height="705" data-path="_assets/ai/develop/node-reference/other/set-handover-inactivity-say.png" />
</Frame>

Using the [Say](/ai/agents/develop/node-reference/basic/say#handover-settings) Node, you can determine if the agent, user, or both receive messages from the AI Agent after the time has expired.

To close a handover based on the inactivity event, use the [Close Handover](/ai/agents/develop/node-reference/service/close-handover) Node. Alternatively, you can initiate another inactivity behavior if necessary.

## More Information

* [User Inactivity Detection and Handling](/ai/escalate/handover-features/user-inactivity-detection)
* [Agent Handover](/ai/agents/develop/node-reference/service/handover-to-agent)
* [Set Handover Inactivity](/ai/agents/develop/node-reference/service/set-handover-inactivity)
* [Close Handover](/ai/agents/develop/node-reference/service/close-handover)
