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.

This article covers UnqorkAI features. UnqorkAI requires an active AI capabilities agreement. To upgrade from Unqork 9.0 or learn more, contact your Unqork representative.

Using Smart Components in a Module

Prev Next

Smart Components are added and configured in the Module Builder the same way as any standard component. The Properties panel is driven by what the component declares in its interface, not authored per usage.

Adding Smart Components to the Canvas

Public Smart Components display in the component tray under their assigned category (Primary Fields, Secondary Fields, and so on). Components with no assigned category display under Uncategorized. Select a component from the tray to add it to the canvas.

The In This Module group displays first in the tray and lists the module's own Private Smart Components, placed or not. The group requires UnqorkAI and a role that grants View on Smart Components (Private). Hover a Smart Component row and click Preview to open its definition in the Focused Component View, where a Private component offers Make Public. For the group's delete action, see Config View.

Each Smart Component on the canvas displays its type (UI, Logic, or Query) and component name.

Properties Panel

Selecting a Smart Component on the canvas opens the Properties panel. The header row includes icon buttons for Notes and Tags, and a menu for Permissions. These work the same way as any standard component. See Component General Settings for details.

Selecting the component name next to COMPONENT in the Properties panel header opens the Focused Component View, a full-panel overlay. Logic Smart Components show their logic in the Definition area.

Public components display Duplicate and Edit Definition. Private components display Make Public, which creates a new Public component from the Private one. See Making Smart Components Public.

  • Edit Definition opens the component in the Smart Components Hub. Without update permission, the button reads View Definition.
  • Duplicate creates a Private copy for that module. It is hidden in view mode and unavailable while a draft is open on the component.

A banner on Public components states: "Public Smart Components cannot be edited inside a module — Duplicate it into a private copy, or Edit Definition in the Smart Components Hub."

Component Settings

Every Smart Component on the canvas has component-level settings that define how it integrates with the module.

Setting Available for Description
Property ID All types The component's identifier in the module. Other components reference this ID and actions target it. Components inside the Smart Component do not automatically use this Property ID; each component's data is wired independently.
Store Data in Database UI only When set to ON, data stored under the Property ID persists with the submission.
Theme Mode UI only Sets the color scheme for this component: Light, Dark, or System (follows the end-user's device preference). Theme Mode works whether or not the application has a Linked Theme configured; it only selects which variant to render. The theme that supplies the colors is linked to the application's style, not set here. See Linking a Theme.

Permissions are component-level. The Permissions menu controls access to the component as a whole. Individual components inside cannot have separate permissions. If a component needs different permissions from the rest, it must be its own Smart Component with its own Property ID.

UI Smart Component Sections

The Properties panel for a UI Smart Component has three sections.

Section Description
Configuration One field for each input the component declares. Accepts a static value or a reference to another component on the module.
Appearance Contains the Theme Mode setting — sets the color scheme for this component: Light, Dark, or System.
Data Contains the Store Data in Database toggle — when set to ON, data stored under the Property ID persists with the submission.

Component Updates

When a Smart Component used in a module has a newer published definition, a banner displays: "Smart Components have changed. Check your configuration still works with the current version, then save this module — or mark the updates as reviewed if nothing needs changing."

The module always renders the latest published definition. There is no version pinning.

The banner clears in two ways: save the module, or select Mark as Reviewed. Mark as Reviewed records the current versions as reviewed without saving the module or creating a revision.

To hide the banner without recording a review, select × in the corner. The banner stays hidden until you leave the module. A publish that updates a component not already flagged shows it again.

Configuring Input Values

The Configuration section displays one field for each input the component declares. Every field accepts one of the following:

  • Static value: A fixed value set directly in the field.
  • Reference: A pointer to another component's value on the module. Select the reference toggle on the field and choose the source component.

The available fields and their types are set by the component's interface. Adding or removing fields requires a change to the component definition through the Build Agent. Ask it in the Smart Component Editor for a Public component, or in the owning module for a Private one.

Wiring Logic Smart Components

Logic Smart Components have no visual presence on the canvas. They run when triggered and return output data. After configuring input values in the Configuration section, use the Outputs section to bind the component's results to other components on the module.

The Triggers section includes the following field.

Field Description
Trigger Type Manual: runs only when another component triggers it. Watch: also runs when its inputs change.

Wiring Query Smart Components

Query Smart Components work like a Plug-In component. The query runs only when triggered, never automatically. Use the Outputs section to bind the query's results to components on the module. The Triggers section includes the following fields.

Field Description
Trigger Type Manual: runs only when another component triggers it. Watch: also runs when its inputs change.
Set Debounce Displays when Trigger Type is Watch. Milliseconds to wait after an input change before re-running the query. Default is 500.
Triggered By Lists the components that fire this query. The wiring lives on the triggering component — a Button's Click Trigger or an Initializer — not here.
Post Trigger The component triggered after the query completes successfully.
Error Trigger The component triggered if the query fails.

Targeting Smart Components from Logic

The platform can only see and act on the Smart Component as a whole, not the individual components inside it. Actions (Hidden, Visible, Clear, Trigger) apply to the entire component. Individual components inside cannot be named, hidden, triggered, or targeted from outside. If a piece of logic must target a specific component independently, that component must be its own Smart Component with its own Property ID.

Setting a value works differently. Setting a value on a Smart Component writes to submission data at the specified location; it does not act on the component directly. Whether anything changes visually depends on whether a component inside is reading from that same data location.

See Smart Component Output Type Compatibility for the full list of output types that work on Smart Components and which are silently ignored.

Two patterns that work with standard components are not recommended with Smart Components. Dynamic Refresh causes silent failures when the targeted component cannot be refreshed, and Smart Component-heavy modules accumulate duplicate Property IDs that make refresh unpredictable. Imported Modules are copied structures that can drift from their source; Smart Component references (by ID, updated in one place) are the better . Both features remain active in the platform.

Saving with Copies

A module can place only the Private Smart Components it owns. If a module ends up placing a Private Smart Component that another module owns, saving the module opens the Save with a copy? dialog. The dialog title reads Save with copies? when more than one component is involved.

The dialog lists each component with its owner, as Belongs to followed by the module title in quotation marks, or as Belongs to another module. Click Save With a Copy or Save With Copies to confirm. Confirming gives the module its own copy of every listed component and points each placement in the module to the copy. The dialog has no per-component choice. Click Cancel to close the dialog without saving.

A copy is identical to the original at first and does not receive later changes to it. A copy keeps the original's name. When the module already has a component with that name, the copy adds a number: Card becomes Card2, and Card2 becomes Card3. A message confirms the save: Module saved with copies followed by the component names.

Clicking Save or Update and Save in the Save menu opens the dialog. The save shortcut, leaving the module, and saving module settings cannot open it. Each of those displays this message instead: This module uses private Smart Components that belong to other modules. Open the Save menu and choose Update and Save to resolve it.

Build Agent Limitations

The Build Agent creates Smart Components as Private components; the Focused Component View for the created component shows Make Public. The Build Agent cannot change a Public component's definition. When it attempts this, it explains that Public components can only be changed in the Hub and offers Duplicate or Edit Definition instead. The agent never acquires the module lock. When the current module is in Viewing mode, the lock card action reads "Switch to Editing and retry." When the module is in a different application, the card offers to go there and take the editing lock. When another user holds the lock, the agent cannot proceed and no recovery option appears.


Changelog

Date Change
2026-11-06 Added the In This Module tray group and the Preview row action; replaced appear with display.
2026-11-12 Stated that interface fields change through the Build Agent.
2026-11-05 Added Saving with Copies: the Save with a copy dialog, its messages, and the copy numbering.
2026-11-03 Linked Make Public to Making Smart Components Public; removed the title suffix.
2026-10-20 Renamed Configuration, Outputs, and Triggers from tabs to sections; clarified the Focused Component View entry point and actions; added UI Smart Component Sections, Component Updates, and Build Agent Limitations; added Trigger Type, Set Debounce, and Triggered By fields; added a Dynamic Refresh and Imported Modules note; clarified that Theme Mode works without a Linked Theme.
2026-10-15 Clarified that Theme Mode selects between the light and dark values of the theme linked to the application's style.
2026-09-10 Tech accuracy pass — corrected tray section name (category-based, not "Smart Components"); corrected Notes/Tags/Permissions from tabs to icon buttons/menu; corrected "Theme" → "Theme Mode"; corrected "General tab" → "Configuration tab"; removed legacy Output Target and retired Query Pipeline section; corrected action names (Hidden/Visible, not hide/show); removed "output triggers" for Logic SCs.
2026-09-10 Rewrote for 9.0 — removed "block" terminology; tightened paragraphs; improved headings; updated Focused Component View reference.
2026-07-29 Added Block Settings section and Targeting from Other Components section.
2026-07-28 Initial draft.