How to assign Key-Value to Client from Mindbehind Live and APIs

How to assign Key-Value to Client from Mindbehind Live and APIs

Website (live.mindbehind.com) 

If the agent has an open live conversation from the right client panel the agent can add, remove a key-value propery of the client by selecting the Profile tab 

Using Apis: 

Get Client: 

  • Endpoint URLhttps://app.mindbehind.com/live-core/getClient 
  • HTTP Method: GET 
  • Query Parameters: Should contain: 
  • clientID: This is your system client ID. It can be any string. You can also use your client phone number if you want 
  • companyID: This is your company id. You will get that from company profile page 
  • Result: You will get a JSON payload as next: { 
    name: string!; 
    surname: string!; 
    email: string!; 
    phone: string!; 
    companyID: string!; 
    clientID: string!; 
    channelType: string!; 
    tags: string[]; 
    keyValueProperties: {key:string,value:string}[]; 

 

Set Key-Value Property: 

  • Endpoint URL: https://app.mindbehind.com/live-core/setKeyValueProperties 
  • HTTP Method: POST 
  • Body: Should contain: 
  1. clientID: This is your system client ID. It can be any string. You can also use your client phone number if you want 
  1. KeyValueProperties: array of objects containing key as string and value as string ([{key:string,value:string}]) 
  • Result: You will get a JSON payload as next: { 
    name: string!; 
    surname: string!; 
    email: string!; 
    phone: string!; 
    companyID: string!; 
    clientID: string!; 
    channelType: string!; 
    tags: string[]; 
    keyValueProperties: {key:string,value:string}[]; 

    • Related Articles

    • Client Tokens for Web Chat Channels

      In Mindbehind Web chat channel, we are supporting three types of authentication, either anonymous, or through one-time code coming to the client's mobile phone as a SMS message, or through tokens in case the client already signed in your website and ...
    • How to Send parameters from Mindbehind WebChat to the bot

      Default data (always sent to the bot) We are always sending the 1. BROWSER_TYPE : The type of browser the client has (ex: Microsoft Edge, Mozilla Firefox, Google Chrome) 2. CHAT_URL: The url of the page Parameters in the URL We are checking the url ...
    • How to use Webhook Service

      1) Click the Marketplace tab from the navigation menu on the left at MindBehind Live. 2) Select Conversation Urls from Category dropdown list. 3) After clicking the Select button, a popup will be opened. Select your company click "Next". 4) You need ...
    • Generative AI: Dictionary & Keys

      What are dictionary & keys? Dictionary is a feature of Generative AI, which is designed to show texts in multiple fields and update those text with only one action into those multiple fields. Keys are the pointers that we use into Gen AI Knowledge ...
    • How to Use Wait for Action

      Action usage Use the wait for action when you want to control the assistant behavior from your outside system. The story begins by drag and dropping (Or simply clicking on) the Wait for action from the Actions menu on the left side of your assistant ...