ai/ai-chat/ai-chat-suggestion.component.ts
A suggestion chip that can be displayed in the chat interface. When clicked, it automatically populates and sends a predefined prompt.
| host | { |
| selector | c8y-ai-chat-suggestion |
| standalone | true |
| imports |
C8yTranslatePipe
|
| templateUrl | ./ai-chat-suggestion.component.html |
IconDirective
C8yTranslatePipe
@if (!useAiButtons()) {
<button
class="btn btn-default btn-sm"
[title]="prompt() | translate"
(click)="suggest()"
[disabled]="disabled()"
>
<i [c8yIcon]="icon()"></i>
{{ label() | translate }}
</button>
} @else {
<button
class="btn btn-sm btn-ai"
[title]="prompt() | translate"
(click)="suggest()"
[disabled]="disabled()"
>
<span>{{ label() | translate }}</span>
</button>
}