From 9c89a576b9eae4eef079567844692efb8475ac6e Mon Sep 17 00:00:00 2001 From: giuseppe liace Date: Thu, 17 Apr 2025 11:03:36 +0200 Subject: [PATCH] Add firstMessage script property Allow the users to send a first message automatically on every startup --- README.md | 2 ++ src/components/ChatWindow/ChatContainer/index.jsx | 2 +- src/hooks/chat/useChatHistory.js | 13 +++++++++++++ src/hooks/useScriptAttributes.js | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b4bccc..b5ed06c 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ REQUIRED data attributes: - `data-show-thoughts` — Allow users to see the AI's thought process, if applicable, in responses. If set to "false", users will only see a static "Thinking" indication without the explict thought content. If "true" the user will see the full thought content as well as the real response. Defaults to "false". +- `data-first-message` — Allow the users to send a first message automatically on every startup. + - `data-support-email` — Shows a support email that the user can used to draft an email via the "three dot" menu in the top right. Option will not appear if it is not set. ### `