KFirst
The KFirst dashlet is an integration of the USU Knowledge Management product KWidget aka KFirst. You can easily connect an existing USU Knowledge Center to the USU Portal and use tools like Knowledge Search, FAQ and Chatbot.

You can assign a Chatbot or a KFirst widget to a portal page. Unlike the other dashlets, the KFirst dashlet can only be added via the the Page designer.
Important
Only one KFirst dashlet can be inserted per Portal Page.
In addition to the general attributes, you have the following configuration options:
Resource
Target | Add the target URL/path of the resource and define the request method. |
Method |
|
Body Params/Body Edtior | NoticeThe field is only available when the target method
|
Chatbot authentication
Important
To make the USU Chatbot authentication work, configuration in all relevant systems is needed: USU Chatbot, USU Service Management and USU Portal.
Login in private mode on your KFirst Manager application.
e. g.
https://your.server.url/kfirst-manangerGo to Widgets > Portal > Activity sets > mainpage
Scroll down to the Activites section
Click on the pencil icon to edit the relevant Bot.
Open the Special Settings tab and add
&sessionId=${KFIRST.config.sessionId}at the end of the Object URLe. g.
https://your.server.url/kbot-widget/bots/vm/74jgcMhl-InYfsSieo1Ls4vVdxOqFhCjrjggoLQN-Q=/bot.html?sessionId=${KFIRST.config.sessionId}Click on Save changes
To integrate authentication, follow the following steps:
Call the Authentification Service with OpenID-Connect-UserInfo-Token. You will. get the
generated_session_idas response.You can find the service and a detailed documentation (README) here:
Add the KFirst snipped to portal website, where
generated_session_idis a response from the service.<script> /* Call Keycloak Service Get generated session id in response */ var KFIRST = {}; KFIRST.config = {}; KFIRST.config.sessionId = "generated_session_id"; </script> <script type="text/javascript" src="http://localhost:28080/kfirst-widget/js/loader.js?apikey=fL-zz1O-c9ReWdmh4fN8E4Vgc7pYspIq0sFwfFpdsyg%3D" async="async" defer="defer"> </script>Configure the bot as embedded frame activity with adjusted URL
e. g.
http://localhost:xxxxx/kbot-widget/bots/preview/Zyi69nraJNp5k3ylXNICW1281p7fjkvz3gsSpPFbd1Y=/bot.html?sessionId=${KFIRST.config.sessionId}
Chatbot language
There are two ways to set the language for the chatbot:
Login in private mode on your KFirst Manager application.
e. g.
https://your.server.url/kfirst-manangerGo to Widgets > Portal > Language settings
Scroll to the 2. Language detection section
Click on Add.
In the dialog select URL parameter and click Add.
Activate the lang URL parameter and save that it's on the highest positon.
Go to Widgets > Portal > Activity sets > mainpage
Scroll down to the Activites section
Click on the pencil icon to edit the Self-Service-Bot.
Open the Special Settings tab and add
lang=${KFIRST.config.lang}to the Object URL.e. g.
https://your.server.url/kbot-widget/bots/Test/8Es81xfH4FL_V5seIKsgCRkOZfgXaFfec4w3sLo0Z8=/bot.html?lang=${KFIRST.config.lang}&sessionId=${KFIRST.config.sessionId}Click on Save changes
Open the Chatbot Manager App.
Go to Home > Bots overview > [Botname] > Mandatory Settings > Widget UI Settings
Open the Advanced settings tab
Choose the Language detection method Language from URL query parameter.
Login in private mode on your KFirst Manager application.
e. g.
https://your.server.url/kfirst-manangerGo to Widgets > Portal > Language settings
Scroll to the 2. Language detection section
Click on Add.
In the dialog select Browser language and click Add.
Activate the Browser language parameter.
Open the Chatbot Manager App.
Go to Home > Bots overview > [Botname] > Mandatory Settings > Widget UI Settings
Open the Advanced settings tab
Choose the Language detection method Language from browser.
