> 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-early-completion.md).

# AI Agents - Early Completion

Using the AI agent to end a conversation early and send a farewell message.

## Skill Configuration

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

In the settings, in the "**Termination Message**", you can define a message to be sent when the conversation is ended by early exit. It is also possible to keep the option "**End service?**", if you also want to close the service in SAC 360º.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FNzCvzIeVKbWHO9Uaj8WB%2Fimage.png?alt=media&amp;token=003673f3-ea9a-483f-849f-a9396c457238" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fyr31XQnl3ewHIF4qhSHD%2Fimage.png?alt=media&amp;token=d24ab758-feb5-4d72-9c81-5e0dd03022c7" 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**", he received the termination message and the service was resolved.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FaxJE29fXUbLKxOwGYT0b%2Fimage.png?alt=media&amp;token=ad88a486-96d8-4c37-8a07-04174f40d43f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FP48D88U5Q5U3sL10vGGr%2Fimage.png?alt=media&amp;token=57b36ec7-640f-4bf3-b003-9734950faaf3" alt=""><figcaption></figcaption></figure>
