|
128 | 128 | <p class="session-area__disclaimer"> |
129 | 129 | {{ t('assistant', 'Output shown here is generated by AI. Make sure to always double-check.') }} |
130 | 130 | </p> |
| 131 | + <div v-if="agencyAvailable && (messages == null || messages.length === 0)" class="session-area__agency-suggestions"> |
| 132 | + <NcButton v-for="suggestion in agencySuggestions" |
| 133 | + :key="suggestion.message" |
| 134 | + class="session-area__agency-suggestion" |
| 135 | + :aria-label="suggestion.aria" |
| 136 | + variant="tertiary" |
| 137 | + :text="suggestion.message" |
| 138 | + @click="chatContent = suggestion.message" /> |
| 139 | + </div> |
131 | 140 | <p v-if="chatContent?.length > 64_000" |
132 | 141 | class="session-area__disclaimer"> |
133 | 142 | {{ t('assistant', 'Messages should not be longer than {maxLength} characters (currently {length}).', { maxLength: 64_000, length: chatContent.length }) }} |
@@ -261,6 +270,21 @@ export default { |
261 | 270 | pollTitleGenerationTimerId: null, |
262 | 271 | autoplayAudioChat: loadState('assistant', 'autoplay_audio_chat', true), |
263 | 272 | slowPickup: false, |
| 273 | + agencyAvailable: loadState('assistant', 'agency_available', false), |
| 274 | + agencySuggestions: [ |
| 275 | + { |
| 276 | + aria: t('assisant', 'Ask assistant, what\'s the weather today'), |
| 277 | + message: t('assisant', 'What\'s the weather today?'), |
| 278 | + }, |
| 279 | + { |
| 280 | + aria: t('assisant', 'Ask assistant, to create a share link for a file'), |
| 281 | + message: t('assisant', 'Can you create a share link for me?'), |
| 282 | + }, |
| 283 | + { |
| 284 | + aria: t('assisant', 'Ask assistant, which actions it can do for you'), |
| 285 | + message: t('assisant', 'Which actions can you do for me?'), |
| 286 | + }, |
| 287 | + ], |
264 | 288 | } |
265 | 289 | }, |
266 | 290 |
|
@@ -1023,6 +1047,19 @@ export default { |
1023 | 1047 | position: sticky; |
1024 | 1048 | bottom: 0; |
1025 | 1049 | } |
| 1050 | +
|
| 1051 | + &__agency-suggestions { |
| 1052 | + display: flex; |
| 1053 | + flex-direction: row; |
| 1054 | + align-items: start; |
| 1055 | + gap: 10px; |
| 1056 | + flex-wrap: wrap; |
| 1057 | + justify-content: start; |
| 1058 | + padding: 0 1em; |
| 1059 | + } |
| 1060 | + &__agency-suggestion { |
| 1061 | + flex-shrink: 0; |
| 1062 | + } |
1026 | 1063 | } |
1027 | 1064 | } |
1028 | 1065 | </style> |
0 commit comments