2.6 Configure CSF Mapping in Weblogic

The below section details the process of CSF configuration for BOT to appear on OFSLL home page.

Following are the Parameters:

  • Create a map called LOGIN_CHATBOT_MAP_NAME = ofsll.login.chatbot
  • Channel ID
  • URI
  • BOT enabled – Y/N
  1. Login to the Weblogic server.

    Figure 2-25 WebLogic Server Login



  2. In the following screen, click NEW MAP
  3. Add URI
  4. Enter BOT INDICATOR.
  5. Enter BOT CHANNEL ID
  6. Configure the chatbot.js on the login page. Refer to the below image and .js code for reference.

    Ensure that no changes are done to the following js code:

    function onLoginPageLoad(event) {
    var source = event.getSource();
    AdfCustomEvent.queue(source, "LoginChatbotEvent",
    {
    'someArg' : 'true'
    },
    true);
    }
    function onHomePageLoad(evt) {
    var eventSource = evt.getSource();
    AdfCustomEvent.queue(eventSource, "HomeChatbotEvent",
    {
    'someArg' : 'true'
    },
    true);
    }
    function initSdk(name, uri, channel) {
    var chatWidgetSettings = {
    initUserHiddenMessage : 'Hi', openChatOnLoad : false, URI : uri, channelId : channel,
    font: '12px "Helvetica Neue", Helvetica, Arial, sans-serif',
    locale: 'en-US',
    enableClearMessage: true,
    enableAutocomplete:false,
    setSize:('400px' ,'786px'),
    showConnectionStatus:true,
    showTypingIndicator:true,
    displayActionsAsPills:true,
    enableSpeech:true,
    enableAttachment:false,
    enableBotAudioResponse: true,
    skillVoices: [{
    lang: 'en-US',
    name: 'Samantha'
    }, {
    lang: 'en-US',
    name: 'Alex'
    }, {
    lang: 'en-UK'
    }]
    };
    if (!name) {
    name = 'Bots';
    }
    setTimeout(function () {
    const Bots = new WebSDK(chatWidgetSettings);// Initiate library with configuration
    Bots.connect()// Connect to server
    .then(function () {
    })
    window[name] = Bots;
    });
    }

    The above code needs to be implemented in the chatbot.js file as shown below:

  7. Web-sdk.js needs to be added from the << OFSLL Installed Directory >>/ /web_interface/ofsllbot/WebApp/scripts.
    The BOT when launched from Web Application is as shown below: