Skip to main content
The Wizflow Widget renders flows built in the Flow Builder inside your own website. A script tag loads it, and an HTML element marks where the flow appears. The widget renders into your page’s own DOM. It fills the width of its container, scrolls with the page, and keeps its styling isolated from your site’s CSS.
Two elements are available: <wizflow-form> for form flows, and <wizflow-chatflow>

Key Concepts


Getting Your Snippet

1

Open the Embed page

In the dashboard, go to Embed. It shows your script URL, your embed key, and a ready-to-paste snippet.
2

Pick the flow

Choose a flow from the dropdown. The snippet and the live preview beside it update to match, so you can confirm it looks right before copying anything.
3

Copy the complete example

Use Put it together at the bottom of the page to copy the whole snippet at once.
4

Paste it into your site

Drop it into the page where the flow should appear.

The Snippet

  1. The script loads the widget and lazy loads the elements on demands.
  2. Wizflow.init runs once and points the widget at your Wizflow instance.
  3. <wizflow-form> renders the form.
The element can sit anywhere on the page, before or after the script. Wizflow.init must run after the script tag, since that is what defines window.Wizflow.
The Embed page fills in your baseUrl and publicKey, so the snippet is ready to copy as-is.

Configuration

Wizflow.init configures the widget for the whole page: Each element selects its flow:

Chat Flows

<wizflow-chatflow> renders a conversational flow. Same script tag and same Wizflow.init as forms.

Inline

Sits in the page like any other block. Give it a height, since it fills its container:

Floating

A launcher button pinned to the corner of the viewport, opening a panel above it. Position the element anywhere, it takes itself out of the flow:
The panel is at most 400px wide and 640px tall, shrinking to fit smaller viewports. Its title comes from the flow’s name.

Styling the launcher

launcher-icon is rendered at 28x28. Without it the widget uses its own icon. launcher-foreground-color sets the close icon shown while the panel is open.

Several Flows on One Page

Call Wizflow.init once, then add as many elements as you need, each with its own flow:
Changing template-key on an element already on the page swaps the widget to that flow.

Adding a flow from JavaScript

For sites that build their markup at runtime:

Your Embed Key

The embed key identifies your account to the widget. It is safe to publish: it grants read access to the flows you own and permission to submit responses to them. Find it under Account Settings → Embed key, or at the top of the Embed page.
Regenerating replaces the key immediately. Every site still using the old key will show an error until its snippet is updated. Regenerate only when the key needs rotating.
On dedicated deployments your administrator sets the key. The Embed page shows whichever key applies to you.

Content Security Policy

If your site sets a Content Security Policy, allow your Wizflow host in both directives:

Troubleshooting

Open your browser console. An undefined Wizflow points at a wrong script URL or a Content Security Policy blocking it. A clean console usually means Wizflow.init never ran, which leaves the element empty.
The key in your snippet has fallen out of sync with your account, usually after a regeneration. Copy the current key from the Embed page.
The template-key does not match a flow on your account. Check it against the dropdown on the Embed page, which lists the exact keys.
File upload fields are unavailable in an embed. Compare against Wizflow’s own preview, and contact support@wizflow.io if a supported field looks wrong.
The widget fills its container, so a narrow or zero-height parent squeezes it. Give the surrounding element a normal block width and let the widget size itself.

Next Steps

Flow Builder Basics

Build the flow you want to embed

Live Pages

Host the whole page on Wizflow instead

Triggers & Automation

Send an email, call a webhook, or generate a PDF on completion

Theme Editor

Style flows hosted on Wizflow