> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-active-engagement.md).

# AI Agents - Active Engagement

Using the AI agent to "wake up" the lead after a period of inactivity.

## Skill Configuration

To use the active engagement feature, it is necessary to enable this option on the agent. The time set in the settings of "**Inactive Engagements**" will be counted from the last message sent by the agent — that is, when it is waiting for a response from the lead.

In the settings, in the instructions field, you must specify how the agent should engage with the lead — for example, whether it should use a specific form of address, make some personalized reference, or recall relevant information. The part **Limit by Condition**, defines under which criterion this engagement should not happen, considering the support context and/or the lead's fields.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FNVkez51c1LbMbPsPdjTS%2F1.png?alt=media&amp;token=b8c95cb8-a873-467d-9059-39edf2c2162a" alt=""><figcaption><p><em>Agent Skills.</em></p></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FaMCLvXgTL1AVTePsYZLo%2F2.png?alt=media&amp;token=30cc48f7-4e05-4b10-a9ce-8b39f4ad535f" alt=""><figcaption><p><em>Active Engagement Settings.</em></p></figcaption></figure>

{% hint style="info" %}
The Active Engagement skill will only work if the lead sends at least one message to the agent.
{% endhint %}

## Testing the Skill

As shown in the example below, after 30 minutes of inactivity on the part of the lead, he received the two previously configured engagement messages.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F33pFPePdvRqX2WuyOeRk%2F3.png?alt=media&amp;token=c53cfd1f-fa48-4737-b187-874947a7483e" alt=""><figcaption><p><em>Support with Active Engagement.</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-active-engagement.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
