You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sc-14909] Added a prototype of the ai chat assistant (#2927)
* [sc-14909] Added a prototype of the ai chat assistant
* [sc-14909] Changed strategy to work with cross-context questions. Enhanced pages.json
* [sc-14909] Improved ux, polished ui
* [sc-14909] Do not close the chat when user click on a link in it
* [sc-14909] Used docsKb/ask endpoint for second call, hid the feature behind the flag
* [sc-14909] Added audit_metadata with orign and accountId to the /ask requests
|`id`| Stable kebab-case. Prefix with context: `account-`, `kb-`, `agent-`. Never change after first use. |
132
+
|`route`| Full path from root. Keep params as `:placeholders`. |
133
+
|`title`| Exactly the resolved English string shown as the page heading. |
134
+
|`summary`|**Purpose-first**: start with what the user _achieves_ here, not what UI elements exist. Include synonyms and user-facing terminology (e.g. "answer history", "invite team members", "cloud sync"). 1–3 sentences. |
135
+
|`capabilities`| User tasks and goals derived from the template — what the user _does_, not what button labels say. |
136
+
137
+
**Summary quality checklist — before writing:**
138
+
139
+
1. Does it say what the user _achieves_ (not just what's rendered)?
140
+
2. Does it include terminology a user might use when asking a question? (e.g. "answer history", "billing", "embed widget", "change language")
141
+
3. Would an AI reading only this entry understand when to recommend this page?
142
+
4. Is it free of purely technical descriptions ("this page lists X with Y controls")?
143
+
144
+
**Bad vs good summary examples:**
145
+
146
+
| ❌ Bad (UI mechanics) | ✅ Good (purpose + user terminology) |
| "This page lists search activity logs with totals, column controls, filters, exports, and row drill-down." | "View the history of search queries and AI-generated answers for a Knowledge Box. Useful for auditing past interactions and reviewing specific answers." |
149
+
| "This page lists saved agent sessions with search, date filters, pagination, and delete actions." | "Browse past conversation sessions with a Retrieval Agent. Each session contains the full history of questions and AI-generated answers." |
150
+
| "This page manages the external sources available to the current retrieval agent." | "Manage the knowledge sources (data connections) that the agent uses when answering questions." |
135
151
136
152
---
137
153
@@ -149,26 +165,30 @@ Key patterns to extract from templates:
149
165
150
166
**Correct entry:**
151
167
152
-
```yaml
153
-
- id: account-home
154
-
route: '/at/:account/manage/home'
155
-
title: 'Consumption'
156
-
summary: "Overview of your account's consumption: token usage and total query counts across all Knowledge Boxes."
157
-
capabilities:
158
-
- 'View token consumption based on activity, with period selector'
159
-
- 'See the list of Knowledge Boxes and navigate directly to one'
160
-
- 'View total query counts for the last 30 days, 12 months, and since account creation'
168
+
```json
169
+
{
170
+
"id": "account-home",
171
+
"route": "/at/:account/manage/home",
172
+
"title": "Consumption",
173
+
"summary": "Overview of your account's consumption: token usage and total query counts across all Knowledge Boxes.",
174
+
"capabilities": [
175
+
"View token consumption based on activity, with period selector",
176
+
"See the list of Knowledge Boxes and navigate directly to one",
177
+
"View total query counts for the last 30 days, 12 months, and since account creation"
178
+
]
179
+
}
161
180
```
162
181
163
182
**What was wrong in the manually written version:**
164
183
165
-
```yaml
166
-
# BAD — guessed from routing context, not component code:
167
-
title: 'Account Home'# wrong: real title is "Consumption"
168
-
summary: 'Overview of your account...'# vague and incorrect
169
-
capabilities:
170
-
- 'Create a new Knowledge Box'# WRONG: this page has no create action
171
-
- 'Switch between KBs and Agents'# WRONG: this is not on this page
184
+
```json
185
+
{
186
+
"id": "account-home",
187
+
"route": "/at/:account/manage/home",
188
+
"title": "Account Home",
189
+
"summary": "Overview of your account...",
190
+
"capabilities": ["Create a new Knowledge Box", "Switch between KBs and Agents"]
|`apps/dashboard/src/app/*routing*`|`apps/dashboard/src/assets/chat/pages.yaml`| HIGH |
206
-
|`libs/common/src/lib/<feature>/**/*.component.html`| Check if feature maps to a pages.yaml entry; update `summary` and `capabilities` if so | MEDIUM |
225
+
|`apps/dashboard/src/app/*routing*`|`apps/dashboard/src/assets/chat/pages.json`| HIGH |
226
+
|`libs/common/src/lib/<feature>/**/*.component.html`| Check if feature maps to a pages.json entry; update `summary` and `capabilities` if so | MEDIUM |
207
227
|`libs/common/src/lib/<feature>/**/*.component.ts`| Same as above — check for new public actions | LOW |
0 commit comments