cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clear session allows you to delete variables and reset the conversation. This is helpful when you want to start a new conversation or remove any stored information from the current session.

 

For example, a train booking bot could end by saving a train ticket in the ticket ordering system. Afterwards, users should be able to book a new ticket to a different location. You can achieve this with the 'clear session' action, which removes the values of set session variables. This is useful when a user asks to correct a value or wants to start over and delete all variables. 

 

The main difference between "close conversation" and "clear session" in a bot builder is as follows:

 

🚨 Please avoid using Close Conversation as it's not functional. 🚨

 

Screenshot 2023-11-24 at 16.52.29.png

 

  • Clear session:  allows you to reset the conversation within the same session. It deletes variables and stored information from the current session, but keeps the chat session open for further interaction. This is useful when you want to start a new conversation or remove any stored information, while still allowing the user to continue chatting.

To clear your session:

  1. Open your block.
  2. Add an Action step, choose Clear session.
  3. Under Clear variables, choose the variables that you would like to erase.
  4. Save your changes.

 

Screenshot 2023-11-24 at 16.50.32.png

 

See also: 

[New chatbot builder] Save a variable under button click

[New chatbot builder] Add Collect input to your flow

How long does a WhatsApp session last?

Version history
Last update:
‎02-06-2024 06:41 AM
Updated by: