diff --git a/website/docs/docs/messages/messages.mdx b/website/docs/docs/messages/messages.mdx index e2c3adb8b..f85b7a785 100644 --- a/website/docs/docs/messages/messages.mdx +++ b/website/docs/docs/messages/messages.mdx @@ -76,13 +76,14 @@ import Tabs from '@theme/Tabs'; ### `introMessage` {#introMessage} -- Type: \{`text?: string`, `html?: string`\} +- Type: \{`text?: string`, `html?: string`\} | `Array` Initial `ai` message that is displayed when the chat is loaded. It is different to [`history`](#history) as it will not trigger the [`onMessage`](/docs/events#onMessage) listener, will not be part of the returned messages when [`getMessages`](/docs/methods#getMessages) is called and is not taken into consideration when calculating [`requestBodyLimits`](/docs/connect#requestBodyLimits).
`html` is used to render [custom code](/docs/messages/HTML) and can be coupled with a [`deep-chat-temporary-message`](/docs/messages/HTML#deepChatClasses) -class to make this message disappear after a new one is added. +class to make this message disappear after a new one is added.
+This can either be defined as an object for one message, or as an array for multiple ones. #### Example