Skip to content

When a user closes or reloads the chat page, the Flow executes Close leg logic

To set up this Global action:

  1. Add the Step name to the Set up Global Actions (RWC) Step.
  2. In the Step, turn on the Process chat close event (browser page close and refresh) toggle.
  3. In the Process as field, select Command from the dropdown. This Set up Global Actions (RWC) Step gets a close leg on the Flow tree.
  4. On the close leg, add and configure Steps to build the logic for chat closure handling.

NOTE

The Flow will execute these Steps after the chat closure. That is why it does not make sense to add RWC Steps here.

  1. Save and activate the Flow.

Result

A user triggers the execution of the Step when they:

  • close or reload the chat browser page
  • close the RWC App

The Flow proceeds to the close leg of the Step and executes the logic you built there.

NOTE

This Global action does not get triggered when:

  • a user closes the embedded RWC window
  • a user clicks the Restart conversation button in the chat in case your chat has it

To delete or change this Global action further in the Flow

The Flow has the Set up Global Actions (RWC) Step that processes chat closure in the Flow. If at a certain point in the conversation, you want to cancel such chat closure processing, override the Step. Add the second Set up Global Actions (RWC) below the first Step further in the Flow. The names of the two Steps can be different. In the second Step, to remove the logic of closure processing from the chat, leave the Process chat close event (browser page close and refresh) toggle disabled. To change closure processing rebuild the Close leg logic.