Widget Attribute Details
Detail
1. data-token
data-token
Description: The authentication token verifies access to the widget.
Usage: Set this attribute to the token provided in your Feedloop AI dashboard.
Example:
2. data-identity
data-identity
Description: A unique identifier to associate the widget with a specific user.
Purpose: Tracks user sessions and provides personalized interactions.
Example:
3. data-profile-*
data-profile-*
Description: Attributes prefixed with
data-profile-
allow additional user details, such as name, gender, or preferences, for a personalized experience.Example:
4. data-fullscreen
data-fullscreen
Description: Automatically enables fullscreen mode for the widget when set to
true
.Purpose: Enhances user focus on the chatbot.
Example:
5. data-hide-header
data-hide-header
Description: Hides the widget header when set to
true
for a minimalistic appearance.Purpose: Creates a simpler interface by removing the header.
Example:
Best Practices for Integration
Secure Your Token:
Keep the
data-token
value secure and avoid exposing it in public repositories.
Test in Staging:
Before deploying the widget to production, test it in a staging environment to ensure proper functionality.
Dynamic Identity Binding:
If your users log in to your application, dynamically set the
data-identity
attribute in JavaScript to associate the widget with their session.
Last updated