> For the complete documentation index, see [llms.txt](https://help.windmillsoft.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.windmillsoft.kr/en/simplychat/salesforce-setup-guides/automatic-shutdown-feature/automatic-shutdown-target-setting.md).

# Automatic Shutdown Target Setting

You can determine whether to shutdown the chat based on whether the last message was from the agent or the customer.

### Added Field <a href="#undefined" id="undefined"></a>

The following fields will be added to **Custom Setting.**

| Label                   | API Name                  | Type     |
| ----------------------- | ------------------------- | -------- |
| Auto End Only For Agent | WINP\_AutoEndOnlyForAgent | Checkbox |

The shutdown target varies based on the conditions below. By default, it is unchecked.

| Condition                               | Shutdown Target                                                      |
| --------------------------------------- | -------------------------------------------------------------------- |
| "Auto End Only For Agent" is checked.   | A chat where the agent sent the last message.                        |
| "Auto End Only For Agent" is unchecked. | A chat where either the agent or the customer sent the last message. |

### How to Execute

1. Setup > Custom Setting > Click "Manage" next to SC\_Setup

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2F6U7io9lGp48jVMZ2SMPU%2Fimage.png?alt=media&#x26;token=f1d1eca1-52c2-4a77-9b74-4020ea9177f0" alt=""><figcaption></figcaption></figure>

2. Click "Edit"

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2F3EAT1SSG4HSJjq9TZs18%2Fimage.png?alt=media&#x26;token=e5a672e7-f3c1-4fe7-a8f8-8d262482f233" alt=""><figcaption></figcaption></figure>

3. Check "Auto End Only For Agent"

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2FPdZjB8BB6iZkOXjttKwv%2Fimage.png?alt=media&#x26;token=92a0db8a-bc7b-4638-96dc-aeef0aa9e063" alt=""><figcaption></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://help.windmillsoft.kr/en/simplychat/salesforce-setup-guides/automatic-shutdown-feature/automatic-shutdown-target-setting.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.
