Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
Onboarding tour for new users
Show a multi-step walkthrough the first time a user opens chat. Dashboard:- Create an experience → Tour
- Add message nodes for each step
- Set trigger:
chat_opens - Set frequency:
once - Set audience:
all(or a segment like “new users”)
NPS survey after engagement
Collect Net Promoter Score after the user has sent a few messages. Dashboard:- Create an experience → Survey
- Add an NPS question (0–10 scale)
- Set trigger:
after_user_message - Set frequency:
once per week - Set audience:
all
Feature announcement for a specific plan
Announce a new feature only to Pro users. Dashboard:- Create an experience → Announcement
- Add title, description, and a CTA button
- Set audience: segment “pro users” (or rule:
plan equals pro) - Set schedule: start when ready
Custom event trigger
Fire an experience after a specific action in your app (e.g., completing checkout). Dashboard:- Set trigger:
custom_event - Set event name:
checkout_completed
Decision branch based on survey answer
Route users through different flows based on their NPS score. Dashboard — flow editor:- Add a survey node with an NPS question
- Add a decision node connected to the survey
- Branch 1: condition
answers.nps_score >= 9→ “Thank you, would you leave a review?” - Branch 2: condition
answers.nps_score <= 6→ “We’re sorry, what can we improve?” - Branch 3 (else): → “Thanks for your feedback”
Segment targeting
Target users based on computed segments. Dashboard:- Create a segment: Audience → Segments → New Segment
- Add rules, e.g., “plan equals enterprise AND sessions > 5”
- Set experience audience to that segment
Server-side rendering (Next.js)
Eliminate the loading flash when the SDK fetches config on the client.Standalone survey in a modal
Render a specific survey outsideFirstflowWidget, for example in a dedicated feedback modal.
Inline placement with overlay for announcements
Show tours inline but announcements as overlays — per-experience placement in the Dashboard overrides the widget default.Wiring experience prompts to your chat input
When a flow node has a button CTA with a configuredctaPrompt, Firstflow calls onExperienceUserPrompt. Wire it to send the message through your chat: