Updates home 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 home screen element. You can call this method anytime to change the current home screen display.
Syntax
Parameters
Configuration object containing home screen element definitions. All properties are optional.
config properties
Primary greeting heading 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 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 home screen.
- Default behavior: When omitted, the previous Redux value is retained.
Array of interactive prompt cards. 1-3 cards display in a static grid; 4+ 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 home 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 home screen by configuring the agent settings in the watsonx Orchestrate UI. This provides another way to control home screen visibility without using the
updateHomeScreen() 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
updateHomeScreen configuration, the system will use the previous value stored in Redux. This means previously set values will persist unless explicitly overridden. To reset to defaults, you need to explicitly set the property (e.g., empty string for text, empty array for prompts).Empty string vs null vs omitted
| Value | Behavior |
|---|---|
| Omitted | Previous Redux value is retained |
Empty string ('') | Property is cleared/removed |
null | Property is cleared/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 provided in the text will be 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 will display as plain text
Starter prompts display
- 1-3 cards: Displayed in a static grid layout
- 4+ cards: Displayed in a horizontal slider/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
Home 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 home screen. It is not displayed in the chat view or across the session.Error handling
TheupdateHomeScreen() method validates input and throws errors for invalid configurations:
- Missing required properties in starter prompt objects (
id,title,prompt) - Invalid data types (e.g., passing a number instead of a string)
- Malformed URLs for
agentIcon
Best practices
Check 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.

