# A.I. Agents - Early Completion

## Skill Configuration

To use the Early Termination feature, you must enable this option in the agent. The condition defined in the "**Termination Condition**" settings will be evaluated with each new message from the contact; if the condition is met, then the agent will be terminated.

In settings, in the "**Termination Message**" field, you can set a message to be sent when the conversation is ended by early exit. It is also possible to leave the option "**Close service?**" enabled if you also want to end the service in the 360º SAC.

<figure><img src="/files/6b972a07afff9f4c2d460e976f9abb75a03cfbc6" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/3796ecc8ec9b824cdb095372a523e2292daff28e" alt=""><figcaption></figcaption></figure>

## Testing the Skill

As the following example shows, after the customer sends a message that matches the configuration of "**Termination Condition**", they received the termination message and the service was resolved.

<figure><img src="/files/c193d9c2b49fe497db5898eafb0da887a2260c8a" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5fd2e799483e9cd60b4c3ac0543a45a63ac349d0" alt=""><figcaption></figcaption></figure>


---

# 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://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-early-completion.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.
