Updates welcome screen elements including welcome message, description, starter prompts, timestamp, and agent icon by modifying theDocumentation Index
Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt
Use this file to discover all available pages before exploring further.
agentWelcomeContent Redux state. This method enables dynamic customization of the chat interface’s initial appearance and content.
The method accepts a configuration object that defines the properties of each welcome screen element. You can call this method at any time to change the current welcome screen display.
Syntax
Parameters
Configuration object containing welcome screen element definitions. All properties are optional.
config properties
Primary greeting heading that is displayed as large text. Supports Markdown formatting.
- Character limit: 150 characters (capped at 4 lines in the UI)
- Default behavior: When omitted, the previous Redux value is retained. To remove the welcome message, set it to an empty string (
'').
Supporting information that is shown as subheading below the welcome message. Supports Markdown formatting.
- Character limit: 1000 characters (capped at 2 lines in the UI)
- Default behavior: When omitted, the previous Redux value is retained. To remove the description, set it to an empty string (
'').
Controls whether the current time is displayed in the top-left corner of the welcome screen.
- Default behavior: When omitted, the previous Redux value is retained.
Array of interactive prompt cards. One to three cards display in a static grid, and four or more cards display in a horizontal carousel.
- Default behavior: When omitted, the previous Redux value is retained. To remove all prompts, set it to an empty array (
[]).
starterPrompts item properties
Unique identifier for the prompt.
Main heading of the prompt card.
- Character limit: 1000 characters (capped at 2 lines)
Supporting text below the title.
- Character limit: 1000 characters (capped at 2 lines)
The actual text sent to the agent when clicked.
agentIcon property
Visual identifier that persists beyond the welcome screen. Accepts a URL string.
- Supported formats: External URL, SVG data URL with base64 encoding (recommended for SVG), PNG, JPG, SVG
- Default behavior: When omitted, the previous Redux value is retained. To remove the icon, set it to an empty string (
'') ornull.
Returns
void
Returns a
void operator.Examples
The following example shows a full configuration with all available properties:Alternative approach: You can also hide the welcome screen by configuring the agent settings in the watsonx Orchestrate UI. This provides another way to control welcome screen visibility without using the
updateWelcomeScreen() method.Considerations
Property behavior
When a property is omitted from the configuration object, the previous Redux state value is retained. This allows for partial updates without affecting other properties.Important: When you omit a property from the
updateWelcomeScreen configuration, the system uses the previous value that is stored in Redux. This means that previously set values persist unless explicitly overridden. To reset to defaults, you must explicitly set the property, for example, empty string for text or empty array for prompts.Empty string vs null vs omitted
| Value | Behavior |
|---|---|
| Omitted | Previous Redux value is retained |
Empty string ('') | Property is cleared or removed. |
null | Property is cleared or removed. |
Empty array ([]) | All items are removed for starterPrompts. |
Character limits and line capping
The UI enforces character limits and line capping to maintain a clean interface:| Property | Character limit | Line cap | Behavior when exceeded |
|---|---|---|---|
welcomeMessage | 150 characters | 4 lines | Text is truncated with ellipsis |
description | 1000 characters | 2 lines | Text is truncated with ellipsis |
starterPrompts[].title | 1000 characters | 2 lines | Text is truncated with ellipsis |
starterPrompts[].subtitle | 1000 characters | 2 lines | Text is truncated with ellipsis |
starterPrompts[].prompt | No limit | N/A | Full text is sent to agent |
Merge strategy
The method uses a deep merge strategy with array replacement:- Objects: Deeply merged (nested properties combined)
- Arrays: Completely replaced (not merged)
- Scalars: Replaced with new values
- API calls are always made.
- Programmatic values take precedence over API values.
- API fills in missing fields with defaults.
Content formatting
Customization of the welcome screen’s visual style is not supported. Only the default welcome screen design is applied. Text content can be modified; however, no formatting is supported. Any Markdown or HTML syntax that is provided in the text is rendered as plain text and is not interpreted.Limitations
- Only text content can be updated.
- Styling, layout, and formatting cannot be customized.
- Markdown and HTML tags are not supported and display as plain text.
Starter prompts display
- One to three cards: Displayed in a static grid layout.
- Four or more cards: Displayed in a horizontal slider or carousel.
- No quantity limit: Supports unlimited number of prompt cards.
Timing
The method can be called immediately fromonLoad without waiting for chat:ready:
Layout support
Welcome screen customization is available for the following form layouts:- ✅ Floating: Floating chat widget.
- ✅ Custom: Custom implementations (including side panel).
- ✅ Fullscreen: Fullscreen chat interface.
- ❌ Standalone: Not supported (embedded chat only).
Agent icon persistence
The customized agent icon is currently supported only on the welcome screen. It is not displayed in the chat view or across the session.Error handling
TheupdateWelcomeScreen() method validates input and throws errors for invalid configurations:
- Missing required properties in starter prompt objects (
id,title,prompt). - Invalid data types, for example, passing a number instead of a string.
- Malformed URLs for
agentIcon.
Best practices
Review the following practices for creating better starter prompts.Provide meaningful starter prompts
Keep text concise
Respect character limits and line caps for optimal display. Test with long text to verify how your content appears when truncated.Consider carousel threshold
SVG icon formats
SVG icons can be provided in multiple formats:Call early in lifecycle
Personalize when possible
Use user context to create relevant experiences.Support internationalization
Test with multilingual text and emojis to ensure proper display.Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.

