1. Canvas Components
  2. IFrame Component

Canvas Components

IFrame Component

The iframe component allows you to embed an external web page (such as a public form) directly within the webchat interface.

Example Usage

        {
  "platforms": {
    "webchat": {
      "sessionuuid": "~~stub.data._incoming_webchat_data.sessionuuid",
      "webchat_control_event": {
        "action": "render_component",
        "params": {
          "component_type": "iframe",
          "component_params": {
            "title": "Stubber",
            "src": "https://app.stubber.com"
          }
        }
      },
      "stubsession": {
        "set_new_with_timeout_hours": 24
      }
    }
  }
}

      

Parameters

Parameter Type Description
titles string The title displayed above the iframe
src string The URL of the page to embed