Skip to main content

Create the factory

agentId (sub-tenant scope). Pass an agentId (agt_…) to scope the Element to a specific sub-tenant under your account — useful when one account serves multiple stores or brands. Leave it out to use your account default. The e-commerce plugins expose it as an optional setting.TODO(filecheck): define what an agent/sub-tenant is, when to use one, and where to obtain an agentId in the dashboard.

Create an intake element

Create options

string
The Workflow to run. Required unless jobId is provided.
string
Resume an existing job. When set, workflowId is ignored.
'inline' | 'dialog'
default:"inline"
Render inline in the page flow, or behind a trigger button as a dialog.
string
Locale for the widget UI, for example en-US.
object
Map file facts onto your product-page controls. See Connectors.
string
Resolve a connector server-side by id (cntr_…).
object
UI overrides: title, subtitle, theme, accent, layout, showHeader, submitLabel, autoSubmit, and more.

Methods

intake.on(...) returns an unsubscribe function. See Events.