> 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-guide/check-the-agents-last-response-time.md).

# Check the agent's last response time

Records the time when the agent last responded.

This value can be used to calculate the net response time from the start to the end of the chat.

### Additional Fields

The following two fields are added to Chat Session.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FHLdHwXEybN4aGtyKxpdA%2Fimage.png?alt=media&amp;token=0651d0c2-b9b1-4899-8919-232b8004e1dd" alt=""><figcaption></figcaption></figure>

### Conditions for updating the filed values

1. The Chat Session status is "Chat End."
2. The `IsCheckedLastTalkAgent` field is false.
3. The schedule for checking the agent's last response time must be running.

### Execution steps

1. In App Launcher, open **Run Schedule**.\
   ![](https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2Fxt0E5jYk3pyPXdQEQNlS%2Fimage.png?alt=media\&token=52855385-ebb8-4bc9-890f-8a808399920a)
2. Specify the execution time and click the button next to it.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FetnNp36Vct5PiUC2S28K%2Fimage.png?alt=media&amp;token=0233898e-ef4c-4746-beee-f14516bfc95c" alt=""><figcaption></figcaption></figure>

3. If "Success" is displayed, the registration has been completed successfully.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2Fmj7L4SXWLWRWpijN43JZ%2Fimage.png?alt=media&amp;token=26f9b9fc-29ed-4c2b-b04c-e59a4232f498" alt=""><figcaption></figcaption></figure>

4. You can check the registered schedule under **Setup** > **Scheduled Jobs**.

<figure><img src="https://174170309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcMCw4RFNzatnGReKcWKb%2Fuploads%2FkVEOTXMDMZgEqjX7p1AJ%2Fimage.png?alt=media&amp;token=6003a1da-5113-4a9f-ab75-c6558a115251" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Notes**

This process **must** be completed before generating the End Chat record for the Chat Session.

Configure the schedule to run before the time configured in SC\_Setup.

**Automated Responses:** Auto responses are not treated as agent responses. Only messages sent by an actual agent are used to calculate the agent's response time. When `[WINP__IsCheckedLastTalkAgent__c]` is set to true, the agent's actual response time is considered to have been recorded.
{% endhint %}
