--- title: CopilotChatWelcomeScreen description: "Initial empty state and welcome message component" --- `CopilotChatWelcomeScreen` is the default component displayed by [CopilotChat](/reference/copilot-chat) when there are no messages. It provides a welcoming introduction with an input field and optional suggestion chips. ## What is CopilotChatWelcomeScreen? The CopilotChatWelcomeScreen component: - Displays when the conversation is empty (no messages) - Shows a customizable welcome message - Includes the chat input for starting conversations - Displays suggestion chips for quick actions - Built on the [slot system](/reference/slot-system) for deep customization ## Component Architecture CopilotChatWelcomeScreen provides a slot for the welcome message and receives input and suggestions as props: ```mermaid graph LR WS[CopilotChatWelcomeScreen] --> welcomeMessage WS --> input[input prop] WS --> suggestionView[suggestionView prop] ``` ### Slot Descriptions | Slot/Prop | Description | | ---------------- | --------------------------------------------------- | | `welcomeMessage` | The greeting text or component displayed at the top | | `input` | The chat input component (passed as a prop) | | `suggestionView` | Suggestion chips component (passed as a prop) | ## Basic Usage Customize the welcome screen through the `welcomeScreen` prop on [CopilotChat](/reference/copilot-chat): ```tsx ``` ## Customizing the Welcome Message The simplest way to customize the welcome message is through labels: ```tsx ``` Or style the welcome message component: ```tsx ``` ## Disabling the Welcome Screen To skip the welcome screen and show an empty chat directly: ```tsx ``` ## Slot Customization CopilotChatWelcomeScreen uses the [slot system](/reference/slot-system). Each slot accepts four types of values: 1. **Tailwind class string** - Add or override CSS classes 2. **Props object** - Pass additional props to the default component 3. **Custom component** - Replace the component entirely 4. **Nested sub-slots** - Drill down to customize child components ### Welcome Message Customization Style the welcome message: ```tsx ``` Or with a custom component: ```tsx function CustomWelcomeMessage() { return (
Logo

Welcome to AI Assistant

Ask me anything about your project

); } ; ``` ## Replacing the Welcome Screen To completely replace the welcome screen with your own component: ```tsx import { CopilotChatView } from "@copilotkit/react-core"; function CustomWelcomeScreen({ input, suggestionView }) { return (
AI Mascot

Hi there!

I'm your AI assistant. I can help you with coding, research, writing, and much more. What would you like to explore?

{input}
{suggestionView}
); } ; ``` ### Using the Render Function For full layout control while keeping the default components: ```tsx function CustomWelcomeScreen(props) { return ( {({ welcomeMessage, input, suggestionView }) => (

AI Assistant

Your intelligent companion for coding, writing, and problem-solving.

{welcomeMessage}
{input}
{suggestionView}
)}
); } ; ``` The render function receives: | Property | Type | Description | | ---------------- | -------------- | ------------------------------- | | `welcomeMessage` | `ReactElement` | The rendered welcome message | | `input` | `ReactElement` | The chat input component | | `suggestionView` | `ReactElement` | The suggestions chips component | ## Examples ### Branded Welcome Screen ```tsx ``` ### Minimal Welcome ```tsx ``` ### Welcome with Custom Layout ```tsx function CenteredWelcome({ input, suggestionView }) { return (

Ready to help

Start a conversation below

{input}
{suggestionView}
); } ; ``` ### Welcome Screen with Feature List ```tsx function FeatureWelcome({ input, suggestionView }) { return (

AI Assistant

💻
Code Help
📝
Writing
🔍
Research
{input}
{suggestionView}
); } ; ``` ## Related - [CopilotChat](/reference/copilot-chat) - Parent component that uses CopilotChatWelcomeScreen - [CopilotChatInput](/reference/copilot-chat-input) - Input component displayed in welcome screen - [CopilotChatSuggestionView](/reference/copilot-chat-suggestion-view) - Suggestions displayed in welcome screen - [Slot System](/reference/slot-system) - Deep dive into slot customization