Unqork documentation is available in two workspaces: UnqorkAI for the latest AI-first platform, and legacy Unqork for previous versions. Use the drop-down near the logo to switch.

Embedded UI

Prev Next

Embedded UI lets developers render Unqork modules and workflows directly inside an external web page. End-users complete forms and workflows without leaving the host page. The runtime loads through a single script tag and handles authentication, CSS isolation, error surfacing, and lifecycle management.

When to Use Embedded UI

Use Embedded UI to do any of the following:

  • Add an Unqork form or workflow to an existing website or app without routing end-users to the UnqorkAI platform.

  • Let end-users complete multi-step workflows inside a branded interface.

  • Replace legacy forms and processes gradually by embedding Unqork modules alongside existing pages.

  • Reuse a single module or workflow across multiple external sites or domains.

Embedded UI works with any JavaScript framework or plain HTML. No specific frontend setup is required.

How Embedded UI Works

Adding a single <script> tag to a host page loads the Unqork Embedded UI runtime. Once loaded, the runtime creates window.unqork, which exposes methods for initializing, mounting, and managing modules.

The runtime renders each module inside a Shadow DOM web component. This isolates the module's CSS from the host page and prevents the host page's CSS from leaking in.

To embed a module or workflow, complete the following steps:

  1. Add the embedded.js script tag to the host page.

  2. Add a mount target element where the module will render.

  3. Call runtime.initialize(), then runtime.mountModule() or runtime.mountWorkflow(), with the module ID and configuration.

For full configuration options, see the Embedded UI In-Depth Setup Guide.

What Changed from the Previous Version

The earlier Embedded UI, available in the legacy Vega platform, supported single-module embedding only. It used iframes for rendering and relied on third-party cookies for authentication. Third-party cookies are blocked by default in several major browsers, causing authentication failures in those environments.

The current version, available in the UnqorkAI platform, supports Runtime 1.0 and Runtime 2.0 (Centauri) modules. Version 9.0 adds iFrame as an intentional embed method alongside Shadow DOM, module-to-module navigation, Unqork Workflow support, and out-of-the-box style compatibility for embedded deployments.

Capability

Previous Version (Vega)

Current Version (UnqorkAI platform)

Module embedding

Supported

Supported

Workflow embedding

Not supported

Supported

Unqork Workflow support

Not supported

Supported

Embed methods

iFrame only

Shadow DOM web component and iFrame

Authentication

Third-party cookies

Multiple strategies

CSS isolation

iFrame boundary

Full Shadow DOM isolation

Module-to-module navigation

Not supported

Supported

Out-of-the-box style compatibility

Not supported

Supported

Lifecycle management

Basic

Full (initialize, mount, recover, destroy)

Error handling

Limited

Structured error events

The data exchange interface used in Vega is not part of the current Embedded UI API. For iFrame configuration, see the iFrame Mode Reference. For all configuration options, see the Embedded UI In-Depth Setup Guide.

Setup Guides

Article

Description

Set Up an Embedded UI Module

Embed a single module in an external web page in five steps.

Set Up an Embedded Workflow

Embed a multi-step workflow with navigation and submission persistence.

Embedded UI In-Depth Setup Guide

Configure every available option: authentication strategies, rendering modes, error handling, lifecycle management, and state persistence.


Changelog

Date

Change

2026-09-11

Updated for 9.0: added iFrame embed method, module-to-module navigation, Unqork Workflow support, style compatibility, and Centauri framing to comparison table (EN-8097).

2026-07-17

Editorial sweep: fixed metadata title, POV violations (lines 17, 57), split long sentence (line 28), removed bare table label, replaced broken Resources section with correct See Also.

2026-06-09

Added "When to Use Embedded UI", "How Embedded UI Works", and "What Changed from the Previous Version" sections per EN-7904/EN-7873 scope note. Removed filler adverb from opening paragraph.

2026-06-08

Initial publication: updated title and description, rewrote opening paragraph, improved guide descriptions in the table, added See Also section.