This document explains the flow of the onboarding-only assistant from the front-end widget to the backend services and your external APIs.
The onboarding widget is a script that manages state in local storage and an in-memory object.
The UI combines a message area, action buttons, and an input bar for free-text replies during collection phases.
When the widget launches, it starts with a registration card that collects name, email, and password through inputs or free text.
On submit, the client sends a registration action with payload to the onboarding chat API. The backend calls the registration function, which parses the registration cURL command, builds the request, and calls the external registration API.
If authentication is configured, the onboarding service also calls the authentication function to log in and extract a token or API key, which is returned to the widget for later steps.
After registration, the widget renders an initial setup flow driven by the initial field definitions from the backend.
Once all fields are collected, the widget shows a summary and asks the user to confirm or edit. On confirm, the client posts an initial setup action. The onboarding service applies defaults and mappings, injects authentication, sends the request to the configured initial setup endpoint, and persists session data along with optional lead information.
Additional steps let you chain API calls after initial setup.
The onboarding service parses the step-specific configuration, filters payload to allowed keys, injects authentication, calls the external API, and appends execution details to the stored onboarding session.
The onboarding flow is resilient to skips and reloads.
The onboarding-only bot focuses on activation rather than general conversation.