# AI welcome screen

The **AI welcome screen** is the first thing users see when they open an AI chat. It introduces the AI and offers starting points, so users don't face an empty input without knowing what to ask.

## Usage

The AI welcome screen is shown before the first message in an [AI chat](<https://element.siemens.io/components/chat-messages/ai-chat/>). As soon as the user prompts a message, the welcome screen should disappear.

![AI welcome screen screen](<../images/ai-welcome-screen.png>)

### When to use

- When starting a new conversation in an [AI chat](<https://element.siemens.io/components/chat-messages/ai-chat/>), before any message is sent.
- To set expectations about what the AI can and can't do.
- To help users get started with relevant prompt suggestions.

### Best practices

- Show only relevant prompt suggestions that reflect common actions or the current context.
- Limit the number of suggestions, and use prompt categories when there are too many to scan.
- Write suggestions as complete prompts users can edit them or send as they are.

## Design

### Elements

![AI welcome screen elements](<../images/ai-welcome-screen-elements.png>)

1. AI icon
2. Salutation: A brief, welcoming message that sets a conversational tone.
3. Prompt categories (optional): When suggestions exceed a manageable number, group them by topic or function using [summary chips](<https://element.siemens.io/components/status-notifications/summary-chip/>)
4. Prompt suggestions (optional): Curated prompts or example questions that reflect common or relevant actions.
5. [Chat input](<https://element.siemens.io/components/chat-messages/chat-input/>)

## Code

Use `si-ai-welcome-screen` to introduce the assistant before the first message. It accepts prompt suggestions and can be slotted into [`si-chat-container`](<https://element.siemens.io/components/chat-messages/chat-container/>). It is built into [`si-ai-chat`](<https://element.siemens.io/components/chat-messages/ai-chat/#welcome-screen>).

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component, computed, inject, signal } from '@angular/core';
import {
  SiAiWelcomeScreenComponent,
  PromptCategory,
  PromptSuggestion
} from '@siemens/element-ng/chat-messages';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [SiAiWelcomeScreenComponent],
  templateUrl: './si-ai-welcome-screen.html'
})
export class SampleComponent {
  private logEvent = inject(LOG_EVENT);

  readonly promptCategories: PromptCategory[] = [
    { label: 'All prompts' },
    { label: 'Maintenance' },
    { label: 'Analytics' },
    { label: 'Troubleshooting' }
  ];

  readonly selectedCategory = signal<string | undefined>('All prompts');

  readonly promptSuggestions: Record<string, PromptSuggestion[]> = {
    'All prompts': [
      { text: 'How do I optimize performance for large datasets?' },
      { text: 'What are the best practices for data validation?' },
      { text: 'Help me troubleshoot this error message' },
      { text: 'Explain the difference between async and sync operations' }
    ],
    'Maintenance': [
      { text: 'How do I update system dependencies?' },
      { text: 'What are best practices for database maintenance?' }
    ],
    'Analytics': [
      { text: 'How do I visualize this data?' },
      { text: 'What metrics should I track?' }
    ],
    'Troubleshooting': [
      { text: 'Help me troubleshoot this error message' },
      { text: 'Why is my query running slowly?' }
    ]
  };

  readonly currentPromptSuggestions = computed(() => {
    const category = this.selectedCategory() ?? 'All prompts';
    return this.promptSuggestions[category] || [];
  });

  onPromptSelected(suggestion: PromptSuggestion): void {
    this.logEvent(`Prompt selected: ${suggestion.text}`);
  }
}
```

Template:

```html
<div class="p-5">
  <si-ai-welcome-screen
    [categories]="promptCategories"
    [promptSuggestions]="currentPromptSuggestions()"
    [(selectedCategory)]="selectedCategory"
    (promptSelected)="onPromptSelected($event)"
  >
    <p class="h1 mb-0"> <strong>Hello</strong>, </p>
    <p class="h1 mb-0">how can I help you today?</p>
  </si-ai-welcome-screen>
</div>
```

### Prompt suggestions

Prompt suggestions can be provided as either:

- A simple array of suggestions (no categories)
- A record mapping category labels to arrays of suggestions

When using a record, categories are automatically displayed as filter pills.

```
// Simple array (no categories)
promptSuggestions = [
  { text: 'How do I optimize performance?' },
  { text: 'What are best practices?' }
];

// Record with categories
promptSuggestions = {
  'All prompts': [{ text: 'How do I optimize performance?' }, { text: 'What are best practices?' }],
  'Maintenance': [{ text: 'Schedule preventive maintenance' }, { text: 'Track equipment downtime' }]
};
```

### [SiAiWelcomeScreenComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L45-L78>)

**Kind:** component

**Selector:** `si-ai-welcome-screen`

```
import { SiAiWelcomeScreenComponent } from '@siemens/element-ng/chat-messages';
```

AI welcome screen component for displaying initial state in AI chat interfaces.

The AI welcome screen component provides an engaging initial state for AI chat interfaces, featuring a welcome message, optional prompt categories for filtering, and suggested prompts that users can click to start conversations.

The component includes:

• Welcome header with AI branding and customizable greeting

• Optional category pills for filtering prompt suggestions

• Clickable prompt suggestion cards

• Optional refresh button to regenerate suggestions

See: [SiAiChatComponent](<../../../api/siemens/element-ng/components/SiAiChatComponent/index.html#SiAiChatComponent>) for the AI chat container which uses this component

See: [SiChatContainerComponent](<../../../api/siemens/element-ng/components/SiChatContainerComponent/index.html#SiChatContainerComponent>) for the base chat container

```
component SiAiWelcomeScreenComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [categories](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L50-L50>) | `PromptCategory[]` | `[]` | The list of prompt categories |
| [promptSuggestions](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L62-L62>) | `PromptSuggestion[]` | `[]` | The list of prompt suggestions as an array, update this when the selected category changes. |
| [selectedCategory](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L56-L56>) | `string \| undefined` | `undefined` | The currently selected category ID |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [promptSelected](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L67-L67>) | `PromptSuggestion` | Emitted when a prompt suggestion is clicked |
| [selectedCategoryChange](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L56-L56>) | `string \| undefined` | The currently selected category ID |

### Types Documentation

### [PromptCategory](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L10-L12>)

**Kind:** interface

```
import type { PromptCategory } from '@siemens/element-ng/chat-messages';
```

```
interface PromptCategory
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L11-L11>) | `TranslatableString` |  |

### [PromptSuggestion](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L14-L16>)

**Kind:** interface

```
import type { PromptSuggestion } from '@siemens/element-ng/chat-messages';
```

```
interface PromptSuggestion
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [text](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts#L15-L15>) | `TranslatableString` |  |

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
