1. Canvas Controls
  2. Close Canvas

Canvas Controls

Close Canvas

Explains closing the hosted Webchat canvas programmatically. Useful for returning users to the normal chat view after rich UI interactions.

This will automatically close the canvas for the user.

Example Usage

        {
  "platforms": {
    "webchat": {
      "sessionuuid": "~~stub.data._incoming_webchat_data.sessionuuid",
      "webchat_control_event": {
        "action": "page_control",
        "params": {
          "page_action": "close_canvas"
        }
      }
    }
  }
}