@snf/qa-bot-core 0.2.11 → 0.2.13
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 +8 -8
- package/build/static/js/main.js +1 -1
- package/build/static/js/main.js.map +1 -1
- package/dist/qa-bot-core.js +2 -2
- package/dist/qa-bot-core.js.map +1 -1
- package/dist/qa-bot-core.standalone.js +4 -4
- package/dist/qa-bot-core.standalone.js.map +1 -1
- package/dist/qa-bot-core.umd.cjs +1 -1
- package/dist/qa-bot-core.umd.cjs.map +1 -1
- package/dist/types/config.d.ts +19 -10
- package/dist/types/contexts/AnalyticsContext.d.ts +11 -3
- package/dist/types/utils/flows/qa-flow.d.ts +4 -4
- package/dist/types/utils/logger.d.ts +1 -1
- package/dist/types/utils/session-utils.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -418,14 +418,14 @@ The bot fires analytics events via an optional callback prop, allowing you to wi
|
|
|
418
418
|
|
|
419
419
|
| Event | When Fired | Key Fields |
|
|
420
420
|
|-------|------------|------------|
|
|
421
|
-
| `
|
|
422
|
-
| `
|
|
423
|
-
| `
|
|
424
|
-
| `
|
|
425
|
-
| `
|
|
426
|
-
| `
|
|
427
|
-
| `
|
|
428
|
-
| `
|
|
421
|
+
| `chatbot_open` | Chat window opened | `sessionId` |
|
|
422
|
+
| `chatbot_close` | Chat window closed | `sessionId`, `messageCount`, `durationMs` |
|
|
423
|
+
| `chatbot_new_chat` | User clicks "New Chat" | `sessionId`, `previousMessageCount` |
|
|
424
|
+
| `chatbot_question_sent` | User submits question | `sessionId`, `queryId`, `questionLength` |
|
|
425
|
+
| `chatbot_answer_received` | API returns response | `sessionId`, `queryId`, `responseTimeMs`, `responseLength`, `hasMetadata` |
|
|
426
|
+
| `chatbot_answer_error` | API call fails | `sessionId`, `queryId`, `errorType` |
|
|
427
|
+
| `chatbot_rating_sent` | User rates response | `sessionId`, `queryId`, `rating` |
|
|
428
|
+
| `chatbot_login_prompt_shown` | Login gate displayed | `sessionId` |
|
|
429
429
|
|
|
430
430
|
All events include `type` and `timestamp`. The `sessionId` is auto-injected when available.
|
|
431
431
|
|