Integration Flows
Common patterns for building chat integrations with the Headless Chat API.
Flow 1: New Conversation
The most common flow — start a fresh conversation with an AI agent.
Step-by-step
Flow 2: Resume Conversation
Pick up where a user left off by loading an existing session.
Step-by-step
Tips
- Store the session ID in your database or user session so you can resume conversations later
- Use
externalUserIdwhen creating sessions to filter sessions by user - Follow-up suggestions can be displayed as clickable buttons in your UI — just send the
textas the next message