Add Custom Configuration

Create a new configuration setting to create site specific custom setting for CPM configurations for invoking machine learning predictions.

To add custom configuration:

  1. Log in to .net console of your site.
  2. Click Configuration on the navigation pane.
  3. Expand Site Configuration, and then double-click Configuration Settings.
  4. Select the custom folder.
  5. Click New on the ribbon and select the data type: Text.
  6. Enter the field information as suggested in the table below. (CPM Configs)
    Field Custom Configuration Setting Value
    Key CUSTOM_CFG_EMOTION
    Maximum Length 4000
    Default

    {

    "B2C_BASIC_AUTH": "<< Base64 authorization of api user >>",

    "INITIAL_MESSAGES_TO_SKIP": ,"<< Number of initial chat messages in a chat to be skipped from evaluation>>",

    "MIN_REQUEST_MANAGER_CONFIG":50, <<Threshold limit for request for manager prediction. Prediction score less than this value won't be eligible as valid request for manager >>,

    "MIN_EMOTION_CONFIG":50, << Threshold limit for emotion prediction. Prediction score less than this value won't be eligible as negative emotion >>,

    "MAX_NEGATIVE_CHAT_COUNT": ,<< Max number of negative chat messages allowed before considering a chat as chat in negative emotion >>,

    "MAX_TIME_GAP_FOR_AGENT_RESPONSE": <<Max time delay allowed for an agent to respond to customer chat>>,

    "MAX_TIME_GAP_AGENT_RESPONSE_FOR_NEGATIVE": << Max time delay allowed between first and last negative message >>,

    "MAX_TEXT_LENGTH": << Max Word length of the end user messages between first and last negative customer response >>,

    "API_TIME_OUT":<<time out for rest api call from cpm>>,

    "CHAT_DETAILS_REPORT_URL":<<full api url of analyticsReportResults api https://{DOMAIN}/services/rest/connect/{VERSION}/analyticsReportResults>>,

    "IS_EMOTION_ACTIVE": << flag to enable emotion feature>>,

    "IS_MANAGER_ASK_ACTIVE":<<flag to enable request for supervisor feature>>,

    "EMOTION_XO_NAME": <<XO name for emotion connection>>,

    "SUPERVISOR_XO_NAME": <<XO name for supervisor ask connection>>,

    "SUPERVISOR_ENDPOINT" :<<OCID of supervisor model>>,

    "EMOTION_ENDPOINT" :<<OCID of emotion model>>,

    "POSITIVE_LOOKUPNAME" : <<Look up name for Positive sentiment in customisable menu. This is optional if we want to have custom label>>,

    "NEGATIVE_LOOKUPNAME" : <<Look up name for Negative sentiment in customisable menu. This is optional if we want to have custom label>>,

    "NEUTRAL_LOOKUPNAME" : <<Look up name for Neutral sentiment in customisable menu. This is optional if we want to have custom label>>

    }

    Data Type Text
  7. Click Save.
  8. Click New on the ribbon and select the data type: Text.
  9. Enter the field information as suggested in the table below. (Log Configs)
    Field Custom Configuration Setting Value
    Key CUSTOM_CFG_LOG_CONFIG
    Data Type Text
    Default INFO.
    Site INFO
    Maximum Length 50

    Default and Site value can be any of these values: INFO/DEBUG/ERROR/WARN.

  10. Click Save.