{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":5277,"path":"conversational-interfaces/virtual-agent/va-open-conversations.md","title":"Closing Virtual Agent and Agent Chat conversations","bundle":null,"doc_type":null,"release":"australia","body":"\n# Closing Virtual Agent and Agent Chat conversations\n\nVirtual Agent and Agent Chat conversations that are abandoned by requesters remain open until they are automatically closed by the scheduled job, **Time Out Abandoned VA Conversations**. This job runs hourly each day.\n\nThe default timeout period for abandoned Virtual Agent and live agent conversations is two hours \\(7200 seconds\\). The **Time Out Abandoned VA Conversations** job runs hourly to find and close any conversations that have been open longer than the default \\(or configured\\) timeout period.\n\nAs admins, you can change the default timeout period for closing Virtual Agent and live agent conversations by [adding the system property](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_AddAPropertyUsingSysPropsList.md) **com.glide.cs.conversation\\_idle\\_timeout**. The timeout value that you specify in this property applies to all conversations in supported Virtual Agent and live agent channels, including chat channels \\(such as Microsoft Teams, Slack, and Workplace from Facebook\\) and messaging channels \\(such as SMS\\). For details, see [Change the timeout period for Virtual Agent and live agent conversations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-open-conversations.md).\n\nIf you're using Virtual Agent and Agent Chat on multiple chat channels, you can add a channel-level idle timeout value that overrides the timeout value set in the **com.glide.cs.conversation\\_idle\\_timeout** property for chat channels. For details, see [Override the conversation timeout period by channel](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-open-conversations.md).\n\nIf needed, you can also change the time at which the Time Out Abandoned VA Conversations job runs.\n\n**Note:** If you're using NLU/keyword, you can initiate the Closing Conversation topic with phrases tied to the intent \\(End Conversations\\) such as `Bye` or `Exit`. If the chat isn't closing when you enter an appropriate phrase, the NLU model for the setup topics might not be published or assigned.\n\nClosing the conversation in an LLM chat works similarly to NLU/keyword chat. You enter a phrase such as `Bye` or `Exit`, the LLM recognizes the statement, and closes the conversation.\n\n## Change the timeout period for Virtual Agent and live agent conversations\n\nAdd the **com.glide.cs.conversation\\_idle\\_timeout** property to the System Property \\[sys\\_properties\\] table to specify the length of time that an abandoned Virtual Agent or Live Agent conversation remains open \\(idle\\). When the **Time Out Abandoned VA Conversations** job runs hourly, it closes any Virtual Agent and Live Agent conversations that have been open longer than the specified time.\n\n1.  In the navigation filter, enter `sys_properties.list`.\n2.  Click **New**.\n    1.  Complete these fields:\n\n<table id=\"table_k4d_c1t_wlb\"><thead><tr><th>\n\nField\n\n</th><th>\n\nValue\n\n</th></tr></thead><tbody><tr><td>\n\nName\n\n</td><td>\n\nEnter the system property name: `com.glide.cs.conversation_idle_timeout`\n\n</td></tr><tr><td>\n\nDescription\n\n</td><td>\n\nEnter an explanation for this property: `Idle timeout period (in seconds) for all conversations`\n\n</td></tr><tr><td>\n\nType\n\n</td><td>\n\nSelect `integer`.\n\n</td></tr><tr><td>\n\nValue\n\n</td><td>\n\nEnter the number of seconds that abandoned Virtual Agent or Live Agent conversations remain open, after the requester's last response. This value must be less than 7200 seconds, since the **Time Out Abandoned VA Conversations** job runs every 3600 seconds \\(hourly\\) to close idle conversations.\n\n For example, a value of 1800 seconds \\(30 minutes\\) means that an abandoned conversation remains open for 1800 seconds \\(30 minutes\\). When the **Time Out Abandoned VA Conversations** job runs, it closes any conversations that have been idle longer than 1800 seconds.\n\n</td></tr></tbody>\n</table>    2.  Click **Submit**.\n\n## Override the conversation timeout period by channel\n\nYou can set the conversation timeout value for a channel by adding a channel-specific conversation timeout value that overrides the **com.glide.cs.conversation\\_idle\\_timeout** property. When the **Time Out Abandoned VA Conversations** job runs hourly, it closes any Virtual Agent or Live Agent conversations in the channel that have been open longer than the specified time.\n\n1.  In the navigation filter, enter `sys_cs_channel.list`.\n2.  In the Messaging Channels table, locate the channel record to be changed and double click the **Conversation Idle Timeout** field.\n3.  Enter the number of seconds that abandoned Virtual Agent or Live Agent conversations remain open in the channel, after the requester's last response.\n\n    For example, a value of 1800 seconds \\(30 minutes\\) means that an abandoned conversation in the channel remains open for 1800 seconds \\(30 minutes\\). When the **Time Out Abandoned VA Conversations** job runs, it closes any conversations that have been idle longer than 1800 seconds.\n\n4.  Save the value.\n\n## Change the Time Out Abandoned VA Conversations scheduled job\n\nTo change the time that this hourly scheduled job runs or to make other adjustments to the scheduled job:\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Scheduled Jobs** and open the Time Out Abandoned VA Conversations record.\n2.  In the Scheduled Script Execution form, change the **Time** at which the scheduled job runs. Or, depending on how you want to adjust the timing, change other fields in the form as needed.\n\n    For example, to change the interval at which the job runs, in the **Run** field, select **Periodically**. You then specify the **Repeat Interval** \\(**Days** and **Hours**\\) that the job runs and the **Starting** date for the interval. For a description of the other fields that you can change in this form, see [Automatically run a script of your choosing](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_ScheduleAScriptExecution.md).\n\n3.  Click **Update**.\n\n    The job runs at the specified time and frequency.\n\n\n**Parent Topic:**[Using Virtual Agent with a live agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/using-va-agent-chat.md)\n\n"}}