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.
Install
Add environment variables
Add the provider
Wrap your app root withFirstflowProvider. Place it above any component that needs to access the SDK.
Wrap your chat UI
Wrap the component that contains your message list and composer withFirstflowWidget. Experiences render relative to this boundary.
Create and publish an experience
- Go to the Dashboard and open your agent
- Click Experiences → New experience
- Build a tour or survey in the flow editor
- Set Status to Active and click Publish
firstflow.refreshConfig().
Next steps
FirstflowProvider
All provider props and configuration options
FirstflowWidget
Widget props and placement options
useFirstflow()
Instance methods: setUser, track, reset
Survey
Render surveys outside the widget