1. Canvas Components
  2. IFrame Component

Canvas Components

IFrame Component

Explains the iframe canvas component for hosted Webchat. Useful for embedding external pages, dashboards, forms, and web tools inside chat.

Embed an external web page (such as a public form) 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