Create a Widget in Glassix

Agent workspace widgets apps

Agent widgets are a specific type of app that makes it easy for agents to see the right information and take quick actions to support your users or convert your leads. They are great for streamlining existing workflows and enabling new ones by bringing other services into the Inbox.

Let’s say that your agents use a knowledge-base or an external CRM, while they are chatting. Instead of accessing it in a separate window, you can add a widget that displays the CRM for use in the conversation details in your workspace. Allowing agents to quickly view and utilize the information they need at any given moment.

Create Embedded App Widget

  1. Go to Settings.

    Click on the symbol in the agent dashboard.

  2. Click DevelopersEmbedded App Widget.
  3. Click New App.
  4. In the URL text box, type the the URL.



The target URL must start with HTTPS:// .

  1. In the Name text box, type a name of your choice.
  2. In the Hight scroll bar, decide the height of your Widget in pixels.
  3. Click Save.


Widgets are iframes shown in the agent's workspace. Each widget is comprised of:

  • Name of the widget app
  • URL of the webpage or external application that you wish to display within the widget.
  • Default height of the widget, in pixels.
  • widget app Id
  • Secret
  • Type

iframe Example

Here we've built a widget app that shows the company's info based on the customer's email address:

iframe Parameters

In each ticket, an iframe will appear with the source of the URL you have defined, with additional query string parameters:

applicationIdUUID of your app widget
departmentIdsame as the API key
userNameThe user name of the logged in agent
tokenJWT token (hmac sha512) signed with your app secret.
The token contains as claims the applicationId, departmentId and ticketId.
Using the token you can make sure that the request to your iframe is legitimate.

iframe Parameters Example

Here's an example of an iframe source with all the parameters:[email protected]


Add the following script in your HTML document header, which will take care of the iframe styling and automatic height resizing based on the content.

<script src=""></script>


The font family, font size, and more should match the styling of the agent's workspace. Adding the "embedded-app-iframe.js" script to the document header will take care of the styling.

The "embedded-app-iframe.js" script will call this function when it's done loading all the resources.

    window.onDoneLoadingResources = function () {


The height of the iframe is determined by the default height you have defined. The downside of an iframe is that its height is not dynamic according to the content inside it. "embedded-app-iframe.js" will detect height changes and update the parent window that the height has changed.

Full Example

<!DOCTYPE html>
    <meta charset="utf-8" />
    <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" />
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densityDpi=device-dpi" />
    <script src=""></script>
    <p>McDonald's Corporation operates and franchises McDonald's restaurants worldwide.</p>
    Oak Brook, Illinois, United States
    <a href="" target="_blank"></a>

A few notes

  • Make sure that the X-Frame-Options header is not enabled.
  • As Glassix runs on HTTPS, your iframe must be served from HTTPS as well.

Did this page help you?