CX Genie
  • Introduction
    • 🤖General Features
  • Dashboard
    • Overview
  • Bots
    • General Information
    • Training Data
      • FAQs
      • Articles
      • Documents
      • URLs
      • Connect with database
      • Connect E-Commerce Store
    • Bot's Knowledge
    • Workflow
      • Module Explaination
      • Dynamic Variables Explaination
      • Trigger Workflow Condition
      • Workflow Components
        • Text and Image Button: Create Text and Image message
        • Message with actions
        • Saved flows
        • Collect feedback
        • Notify agent
        • Form submit
        • Turn off auto-reply
        • Close conversation
        • Recap chat message
        • Frequent Questions
        • Capture Customer Info
        • Create Ticket
        • Auto-tagging
        • Queue list
        • Auto-assign Agent
        • Condition
        • AI API
        • API Call
        • Connect to database
        • Route
    • Settings
    • Launch bot
    • Prompt and Models
    • Webhook
    • Platform Integration
      • WordPress
      • Shopify
      • Big Commerce
      • Magneto
      • Discord
      • Slack
      • Telegram
      • Facebook
      • Instagram
      • Zalo
      • WhatsApp
    • Contacts
  • Bot's Learning
    • Bot learns from Conversations
    • Unanswered Questions
    • Connect with previous chat history for the bot to learn
  • Live Chat
    • Overview
    • List of Conversations
    • Tools of the Conversation
    • Tools
    • Chat settings
    • AI Actions
  • Ticket (Subcription Feature)
    • Ticket List
    • Create Ticket(s)
    • Edit / Update the Ticket
    • Merge Ticket
    • Ticket Settings
  • Marketplace
    • Custom Authentication V2.0
    • Product Data Sync-up
      • E-commerce Store
      • Product Data
    • White Label
    • Help Desk
    • Form Builder
  • Main Flow
    • How AI handles incoming messages.
    • Bot Learns from Conversations by Editing Auto Suggestions
    • Bot learns from conversations immediately
  • Create your chatbot by using templates
    • SAAS Template
    • Agency Template
    • F&B Template
    • E-commerce Template
    • From a Scratch
  • Others
    • Chatbot Completion
    • Escalate to a Human Agent
  • Help Desk
    • Chat/tickets
    • Team
    • View
    • Report
    • Settings
  • Categories & Tags
    • Categories
    • Tags
  • Settings
    • General
    • Members & Permission
    • Subscription
    • Activity logs
  • Referal
    • Referal of CX Genie
  • Mailbox
    • How to integrate
Powered by GitBook
On this page
  1. Marketplace

Custom Authentication

Custom Authentication is an add-on to help you connect & and sync your users with chat users on CX Genie

Last updated 4 months ago

  • After subscribing to this feature, you can find it in Workspace Settings -> Workspace Information -> Enable required login for chat user. There will be some fields that you need to know:

  • Authentication URL: This is the endpoint we will call to your server to retrieve user information from there to create a chat user on CX Genie side.

  • Select identity method: The main field to identify whether that chat user already exists in our system. For example, if you currently select the phone number, after retrieving the user information from your side, CX Genie will check if this phone number has a corresponding chat user. If it does, CX Genie will update the info; if not, we will create a new one.

  • Header token: The token to be included in the request when our server calls your server.

  • To use this feature, when embedding the chat or installing the package on mobile, you will need to pass in the user token. Example when embedding bubble chat:

<script src="https..://widget.cxgenie.ai/widget.js" data-aid="227b289e-bb0b-49cc-a9c8-fd9bcafddf18" data-token="%USER_TOKEN%" data-lang="en"></script>
  • Example: when using URL: http://www.testing.com

    • Header token: HEADER_TOKEN

    • User Token: USER_TOKEN

    • CX Genie will request:

curl --request POST \
  --url https://testing.com/ \
  --header 'Authorization: HEADER_TOKEN Bearer' \
  --header 'Content-Type: application/json' \
  --data '{
    "access_token": "USER_TOKEN"
}'
  • Expected response from your server:

{
    "status": true,
    "message": "Successfully!",
    "data": {
        "name": "Sample User",
        "phone_number": "090XXXXXXX",
        "country_code": "+84",
        "email": "sample@gmail.com",
        "avatar": "https://...",
        "label": "Your custom label for chat user"
    }
}

To activate the custom authentication, toggle this button on.