Creating the widget code
Open the DevOps > Deployments > Widget report.
Define the specifications of you widget and copy the generated code, you will need it in the next step.
Widget for a specific page
You can add the Konverso Kbot for Snow virtual agent widget only for a specific page. If you know that users might have questions when they go to a particular page, you can provide them with the opportunity to solve possible issues with the help of the Konverso Kbot for Snow virtual agent.
Adding the UI Widget Object
NEED TO ADD A NEW UI WIDGET OBJECT IN SNOW
1. Select Service Portal > Widget view in ServiceNow and create a new one called “Kbot Chat Widget”.
2. Assign the following value to the Server script
field:
(function() { /* populate the 'data' object */ /* e.g., data.table = $sp.getValue('table'); */ var settingsUtils = new x_konve_kbot_test.KonversoWidgetSettingsUtils(); data.settings = settingsUtils.getSettings(); })();
The copy in the field Client Controller
the script created in the Kbot report
Open the page https://<my tenant>.konverso.ai/admin/context-group/devops-tools/report/812
DEFINE THE FIELDS TO BE UPDATED, THE NAMING CONVENTION, ETC
Adding the widget to a specific page
1. In the navigation tree, find and click Service Portal Configuration.
2. In the Service Portal view, select Designer.
3. From the list of pages, select the one that you want to modify. DEFINE THE NAME OF THE MAIN PORTAL PAGE (THIS IS INDEX I BELIEVE)
4. To quickly find the widget, type its name in the search field in the upper left of the window.
5. Drag and drop the widget into the page.
Result
Now the button with the Konverso Kbot for Snow virtual agent widget is displayed on the page that you have modified.