@botfabrik/engine-webclient 4.76.15 → 4.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/client/assets/index-Civ1F2yz.js +110 -0
- package/dist/client/assets/index-Civ1F2yz.js.map +1 -0
- package/dist/client/assets/index-yILb8Y1Q.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/package.json +8 -8
- package/dist/client/assets/index-B4mEjt51.js +0 -110
- package/dist/client/assets/index-B4mEjt51.js.map +0 -1
- package/dist/client/assets/index-CVGpUoSB.css +0 -1
package/README.md
CHANGED
|
@@ -106,6 +106,31 @@ Es werden keine Benutzerdaten erfasst, bis der Benutzer durch den Klick auf den
|
|
|
106
106
|
|
|
107
107
|
Action die ausgeführt wird, wenn der Client das erste mal aufgerufen wird.
|
|
108
108
|
|
|
109
|
+
### commands (optional)
|
|
110
|
+
|
|
111
|
+
Eine Liste von Befehlen, die der Chatbot unterstützt.
|
|
112
|
+
|
|
113
|
+
Beispiel:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
commands: ['summarise', 'optimize']
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Wenn der Benutzer eine neue Nachricht mit `/` beginnt, werden ihm die konfigurierten Befehle zur Auswahl gegeben. Wichtig ist, dass der Chatbot diese Befehle dann auch interpretiert.
|
|
120
|
+
|
|
121
|
+
Mittels Übersetzungsdatei kann pro Befehl eine Beschreibung hinterlegt werden.
|
|
122
|
+
|
|
123
|
+
Beispiel
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
{
|
|
127
|
+
"commands": {
|
|
128
|
+
"summarise": "Fasst den nachfolgenden Text präzise und verständlich zusammen.",
|
|
129
|
+
"optimize": "Optimiert den nachfolgenden Text hinsichtlich Rechtschreibung, Grammatik und Stil."
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
109
134
|
### requestUserInfos (optional)
|
|
110
135
|
|
|
111
136
|
Diese Funktion wird beim Erzeugen eines neuen Session Records aufgerufen. Man hat damit die Möglichkeit, die Session Daten unter `session.getSessionInfo().user` projektspezifisch anzupassen.
|
|
@@ -363,8 +388,16 @@ Verzeichnis `public/\${name-meines-webclients}/` abgelegt werden. Auf gleiche Ar
|
|
|
363
388
|
--guest-bubble-top-right-radius: var(--bubble-radius-small);
|
|
364
389
|
--guest-bubble-bottom-right-radius: var(--bubble-radius-small);
|
|
365
390
|
--guest-bubble-bottom-left-radius: var(--bubble-radius-large);
|
|
391
|
+
--guest-bubble-command-background-color,
|
|
392
|
+
rgba(255, 255, 255, 0.3);
|
|
366
393
|
|
|
367
394
|
--scrollbar-thumb-color: #adadad;
|
|
395
|
+
|
|
396
|
+
/* commands */
|
|
397
|
+
--commands-background-color: var(--brand-primary-color);
|
|
398
|
+
--commands-text-color: white;
|
|
399
|
+
--commands-active-background-color: rgba(255, 255, 255, 0.3);
|
|
400
|
+
--commands-active-text-color: white;
|
|
368
401
|
}
|
|
369
402
|
```
|
|
370
403
|
|