Quickstart
Get a live Chatterfly workflow running on a web page in about five minutes using the serverless embed — no backend code, no token plumbing.
Before you start
You'll need:
- A Chatterfly account — sign up free if you don't have one.
- A React app to embed into (Next.js, Vite, CRA — anything that renders React 18+). If you don't have one, the hosted page approach below needs no code at all.
The five steps
Create a workflow
In the dashboard, go to Workflows → New. The easiest start is picking a template (e.g. a feedback survey or lead-qualification flow) — or describe what you want to the editor assistant and let it draft the workflow for you.
Deploy it
In the workflow hub, open the Ship tab and click Deploy. This publishes a pinned version of your workflow. In the Deploy dialog, choose Public access — this allows anonymous participants to start runs without a server-side token. (Public access is available for single-participant workflows.)
Copy the workflow ID
From the Ship tab, copy the workflow ID — it looks like wf_abc123. Referencing the workflow (rather than a specific deployment) means your embed always targets the latest live deployment and never needs updating when you redeploy.
Install the widget
npm install @chatterfly/widgetDrop in the component
import "@chatterfly/widget/style.css";
import { ChatterflyWidget } from "@chatterfly/widget";
export default function MyPage() {
return (
<ChatterflyWidget
workflowId="wf_abc123"
apiBase="https://your-chatterfly.example.com"
onCompleted={() => console.log("Done!")}
/>
);
}That's it. When the component mounts, Chatterfly resolves the workflow's latest live deployment, creates an anonymous run, mints a participant token, opens a WebSocket, and renders the conversation. Reload the page and try your workflow end-to-end.
Even faster: hosted page
Every Public deployment with a survey slug also gets a Chatterfly-hosted page. Skip the embed entirely and just share the link:
https://your-chatterfly.example.com/survey/<tenant-slug>/<survey-slug>No npm install, no React, no hosting. Branding and the slug are configurable in the deployment settings.
Where to go next
- Want your own user identity, roles, or server-side control? Use the full widget embed with participant tokens.
- Start runs from your backend or other systems with the REST API or triggers & webhooks.
- Customise what participants see with input types & variants.
