OvidijusParsiunas / deep-chat

Fully customizable AI chatbot component for your website
https://deepchat.dev
MIT License
1.27k stars 175 forks source link

Are there any events to capture when we drop files in deep-chat view #223

Open rajeshwarpatlolla opened 1 week ago

rajeshwarpatlolla commented 1 week ago

We use deep chat and would like to customize the functionality according to our needs. We want to allow the users to drag and drop the files into the deep-chat view/section/window. We want to perform some custom functionality before sending it to deep chat. Is it possible to capture events other than onNewMessage, onClearMessages, onComponentRender, or onError?

OvidijusParsiunas commented 3 days ago

Currently there is no way to listen to the drag and drop file events. However, you can insert your listener functionality logic into the requestInterceptor property.

If this does not meet your requirements I would then recommend forking/cloning this repo and following the set up instructions to set up your own Deep Chat version which is very simple. From there you should be able to change the logic to your liking.

Thankyou!