Feedloop AI
  • GETTING STARTED
    • Discover Feedloop AI
    • Authentication
      • Sign Up
      • Login
    • Platform
      • Workspace
      • Project
      • People
      • Usage
  • WHAT IS AGENT
    • What is Agent
      • ⚪Manage Agent
    • Basic Agent
      • ⚪Instruction
        • Who
        • What
      • ⚪Training
        • Rules
        • Example
      • ⚪Skill
        • Knowledge
        • Analys
      • ⚪Style
    • Procedures
    • Advance Reasoning
      • ⚪Creating New Agent
      • ⚪Advance Agent Activation
      • ⚪Deleting Agent
      • ⚪Advance Agent Managing Existing
  • AGENT SETTINGS
    • Instruction
      • Who
      • What
      • Additional Instruction
    • Training
      • Chat Rules
      • Retrieval
      • Answering
    • Context
      • Primitive Context
      • Array
    • Tools
      • Knowledge
      • API - Call
        • Manage API Call
        • Basic Configuration
        • Header
        • Body Field
          • Input Binding
            • Page 2
          • Output Binding
        • Testing API Call
        • Trouble Shooting
        • Example Implementation
          • API Call Covid
      • Data Connector
    • Card
      • Intro & Summary Text
      • Data Visualization Card
      • Analyze Card
    • Procedure Basic Info
      • Activation Condition
      • Goal
      • Action
    • Procedures Interaction
      • Procedures Step
      • Procedures Context
      • Procedures Tools
  • AGENT UTILITY
    • Resource
      • Document PDF
        • Preparing your PDF
      • Data Connector
        • Create new data connector
        • Configure dataset, table, and column
        • Using Data Playground
        • Dataset in Data Playground
        • Training in Data Playground
        • SQL generation and modification
        • SQL Execution
    • Apps
      • Chat Widget
      • Web App
    • Testing
    • Monitoring
      • Customer Chat
      • Context
      • Document
  • TASK
    • ⚪Image Analyzer
      • Building Analyzer
      • ID Identifier
    • ⚪Document Analyzer
      • Contractual Document Analyzer
    • ⚪Database Analyzer
    • ⚪Additional Solution
      • Text Sentiment Analyzer
      • Customer Complaint Analyzer
  • For Developer
    • API Chat
      • Chat Initialization
      • Chat Message
      • Chat History
      • Error Handling
    • Embed Widget
      • Embedding the Widget
      • Identity Attributes
      • Widget Attribute Details
Powered by GitBook
On this page
  • Detail
  • Best Practices for Integration
  1. For Developer
  2. Embed Widget

Widget Attribute Details

Detail

1. 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:

    htmlCopy codedata-token="YOUR_TOKEN_HERE"

2. data-identity

  • Description: A unique identifier to associate the widget with a specific user.

  • Purpose: Tracks user sessions and provides personalized interactions.

  • Example:

    htmlCopy codedata-identity="user@example.com"

3. data-profile-*

  • Description: Attributes prefixed with data-profile- allow additional user details, such as name, gender, or preferences, for a personalized experience.

  • Example:

    htmlCopy codedata-profile-name="John Doe" 
    data-profile-gender="male"

4. data-fullscreen

  • Description: Automatically enables fullscreen mode for the widget when set to true.

  • Purpose: Enhances user focus on the chatbot.

  • Example:

    htmlCopy codedata-fullscreen="true"

5. 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:

    htmlCopy codedata-hide-header="true"

Best Practices for Integration

  1. Secure Your Token:

    • Keep the data-token value secure and avoid exposing it in public repositories.

  2. Test in Staging:

    • Before deploying the widget to production, test it in a staging environment to ensure proper functionality.

  3. 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.

PreviousIdentity Attributes

Last updated 5 months ago