Adding a backlink to your application in Vizzlo’s Editor

Vizzlo’s web editor support a special mode of integration with other applications which allows for a smoother user experience, we call this backlink mode.

When in this mode, the editor’s UI will be slightly changed to keep the user in the flow.

User Flow: Keeping the user in the loop between ACME and Vizzlo editors

How to signal that you want the user to be redirected back to your application

For some of the user-facing URLs (that do not belong to the API), the following three query parameters are intoduced:

Based on the existence of these paremeters, backlink mode will be enabled in the Vizzlo Editor and a backlink that contains the name of the application linking to Vizzlo will be added to the user interface:

Vizzlo Editor User Interface in Backlink Mode

Upon clicking this button, the user is redirected to the requested redirect_url with the following added query parameters:

Currently, backlink mode is supported for these entry points you might want to direct the user user:

Backlink mode also works when you want to open the Vizzlo editor in another browser tabs or window, given that:

Backlink mode works with native applications, too, if the redirect URL you registered with Vizzlo is also registered as a Custom Protocol Handler (Windows) or Custom URL Scheme (Mac).

Example flow of actions

In the following example, «ACME Presentations» is an online presentation tool which integrates with Vizzlo. ACME’s client ID is acme123abc and the rediret URL used for Vizzlo callbacks is https://acme.example/callbacks/vizzlo:

  1. User alice@corp.exampleis currently editing an ACME presentation which is internally referenced by id xyz123. Their browser’s URL is https://acme.example/presentations/xyz123.

  2. On Slide 23, the user decides to add a Waterfall Chart.

    ACME Presentations does not implement their own UI for selecting the appropiate type of chart, so they will direct the user to Vizzlo’s Portfolio for this action.

  3. ACME creates a JSON Web Token that identifies the user, the presentation, and the slide the user was, for example with this content:

    {
      "iss": "acme.example",
      "iat": 1591344614,
      "exp": 1622880614,
      "sub": "alice@corp.example",
      "slide": 23,
      "doc": "xyz123"
    }

    After signing this is the actual token: eyJ0eXAiOiJKV1...Qey0FYOgbpk

  4. ACME will now redirect the user to https://vizzlo.com/graphs?client_id=acme123abc&redirect_uri=https%3A%2F%2acme.example%2Fcallbacks%2Fvizzlo&state=eyJ0eXAiOiJKV1...Qey0FYOgbpk

  5. The user is searching the portfolio, and finally creates a document with Vizzlo, the URL looks like https://vizzlo.com/aliceexample/vzldocid112233.

  6. After finishing their document the user clicks the “Back to ACME” button provided in the top right of the editor.

  7. Vizzlo direct’s the browser to https://acme.example/callbacks/vizzlo?state=eyJ0eXAiOiJKV1...Qey0FYOgbpk&endpoint=https%3A%2F%2vizzlo.com%2Fapi%2Fv1%2Fusers%2Faliceexample%2Fdocuments%2Fvzldocid112233

  8. Based on the JWT (state) and endpoint provided, ACME opens alice@corp.example’s presentation xyz13 on slide 23 and add’s the Vizzlo Waterfall Chart available at API endpoint https://vizzlo.com/api/v1/users/aliceexample/documents/vzldocid112233.