title: Dialogflow CX | How to close/reset a conversation
body: <p>How can I close or reset a conversation programmatically from Java app?. According to Dialogflow CX documentation &quot;<em>A session remains active and its data is stored for 30 minutes after the last request is sent for the session.</em>&quot;</p>
  <p>I want to keep the session active for less time. For example, if I want the session to be active for 5 minutes, when user sends a message 5 minutes or more after last message, conversation must start again and previous flows must be closed and context parameters must be deleted.</p>
  <p>With Dialogflow ES it is posible using ContextsClient, however new version does not offer ContextsClient class.</p>