staging · js.zarv.dev

Zarv SDK — smartflow playground

This page loads sdk.js from js.zarv.dev/sdk.js — call Zarv('smartflow', config) with a flow public key and it mounts the signup funnel as a cross-origin iframe, inline or as a modal overlay. The controls below drive the mount modes, single screens, prefill, runtime identify and the complete method. For the full integration guide, head to the developers docs.

Build

sdk loading… env loading…

Smartflow · controls

flow key
pk_…
mount
#zarv-smartflow

Theme

Passed through as theme — the funnel honors it before first paint. Re-mount to apply.

Mount mode

This mounts the real signup funnel (face-match / liveness capture) as a cross-origin iframe; step / progress / complete callbacks are written to the action log below. The funnel's allowed embed origins must include this page's origin (js.zarv.dev / js.zarv.com) or the browser blocks the iframe via frame-ancestors.

Single screen

Embeds a single funnel screen instead of the whole flow by passing screen. The SDK routes through the backend's POST .../session endpoint, which mints the screen-specific embed URL (these demo buttons open it as a modal). Prefill below is persisted on the lead before the screen renders.

Prefill

Filled fields are sent as prefill on the next mount (any mode) and the backend persists them on the lead. Leave blank to skip.

Identify (runtime)

Calls Zarv('smartflow', { action: 'identify', externalId, … }) against the currently-mounted session to attach your externalId (plus any Prefill fields above) to the auto-created lead, so the next funnel screen is prefilled. Mount a session first; the result is written to the log.

Complete (runtime)

Calls Zarv('smartflow', { action: 'complete', metadata: { exemplo: 'valor' }, … }) against the currently-mounted session to finalize the lead with custom metadata. The onComplete result — or the basic_data_incomplete error when the lead is missing required fields — is written to the log. Mount a session (and fill the basics) first.

Action log

no actions yet — click a button above.