|
1 |
| -# Concierge Template |
| 1 | +# Oracle Digital Assistant Concierge Template |
2 | 2 |
|
3 |
| -TBD |
| 3 | +The Concierge Template is a skill for quickly setting up a Knowledge bot. |
4 | 4 |
|
5 |
| -Reviewed: 30.01.2024 |
| 5 | +Concierge Template WebSDK |
6 | 6 |
|
7 |
| -# When to use this asset? |
| 7 | +Setup: |
| 8 | + To use this web-sdk for your bot you minimally need to do the following: |
| 9 | + 1. In the scripts/concierge.js file: |
| 10 | + line 3: Enter the URI of your ODA instance in the format shown |
| 11 | + line 5: Enter the channelId of the webchannel you created in ODA |
| 12 | + 2. Use the sample index.html or add the following lines in the <head> section of your html-page: |
| 13 | + <script src="scripts/concierge.js" defer></script> |
| 14 | + <script src="scripts/settings.js" defer></script> |
| 15 | + <script src="scripts/web-sdk.js" onload="initSdk('Bots')" defer></script> |
8 | 16 |
|
9 |
| -TBD |
| 17 | +Images: |
| 18 | + Under /images you can find all images used by the template; change/overwrite them to your liking |
10 | 19 |
|
11 |
| -# How to use this asset? |
| 20 | +Colors: |
| 21 | + In the colors section (search for 'colors:') of scripts/concierge.js file you can find all html-colorcodes |
| 22 | + Remarks behind each entry explain what the color is used for. |
| 23 | + A few less changed colors are also in style/concierge.css. (search for '#') |
12 | 24 |
|
13 |
| -TBD |
| 25 | +Languages: |
| 26 | +By default this template uses the language of the browser user profile. |
| 27 | +You can change that by adding the language code to the initSdk function in your html page: |
| 28 | + <script src="scripts/web-sdk.js" onload="initSdk('Bots','fr')" defer></script> |
| 29 | +In the i18n section (search for 'i18n:') in the scripts/concierge.js file you can add a language section with all translations of texts used by the widget. |
| 30 | +You can manage the language menu of the chatwidget with the multiLangChat section (search for 'multiLangChat:') in the scripts/concierge.js file |
| 31 | +In the function getConciergeValues(search for 'function getConciergeValues') in the scripts/concierge.js file you have to check if you need to add your new language section |
| 32 | + |
| 33 | +Passing values to your bot: |
| 34 | +In the initUserProfile section (search for 'initUserProfile:') in the scripts/concierge.js file you can add values to be used by your bot. Custom parameters can be added in the profile/properties section. |
| 35 | +In your freemarker expression you can use them like profile.properties.value.company (check variables in the skill tester). |
14 | 36 |
|
15 | 37 | # License
|
16 | 38 |
|
|
0 commit comments