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
Click Deploy in the editor. This publishes a pinned version of your workflow. In the deployment settings, enable survey mode — this allows anonymous participants to start runs without a server-side token.
Copy the deployment ID
From the deployment panel, copy the ID — it looks like dep_abc123.
Install the widget
npm install @chatterfly/widgetDrop in the component
import "@chatterfly/widget/dist/style.css";
import { ChatterflyWidget } from "@chatterfly/widget";
export default function MyPage() {
return (
<ChatterflyWidget
deploymentId="dep_abc123"
apiBase="https://your-chatterfly.example.com"
onCompleted={() => console.log("Done!")}
/>
);
}That's it. When the component mounts, Chatterfly automatically 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 survey-mode deployment 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.
