From f92ae0246a1f742487994df267bcef461c5af1f0 Mon Sep 17 00:00:00 2001 From: Anish Saxena <65861855+anish-work@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:28:30 +0530 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index b6b03d0..cf247a9 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ const config = { mode: "popup" | "inline" | "fullscreen", enableAudioMessage: true, showSources: true, + enablePhotoUpload: true, + enableConversations: true, branding: { name: "Farmer.CHAT", byLine: "By Digital Green", @@ -89,6 +91,18 @@ Determines how the Gooey widget is displayed on your site: A boolean to enable or disable recording and sending audio messages to the bot. +##### `enableConversations: boolean` + +A boolean to enable or disable the user's conversation history. + +- When enabled a "New Chat" button will be shown in top-right corner and in a left drawer, which will also list all the previous conversations. + +- When disabled, a single conversation is maintained in the database for every session and all the messages will be pre-loaded in the state + +##### `enablePhotoUpload: boolean;` + +A boolean to enable or disable the photo upload button. + ##### `showSources` A boolean that dictates whether sources of information (if any) should be shown.