FredrikOseberg / react-chatbot-kit

MIT License
325 stars 156 forks source link

Dynamic Bot Message #40

Open dtcyad1 opened 3 years ago

dtcyad1 commented 3 years ago

Hi Fredrik,

currently, you have provided a way to customize the bot and user chat "bubbles". But i was looking to see if that can be dynamic. For example, i want my "bubbles" to be of different shapes. While i have a different custom bot message for all the different types, i don't know how I can do this. I still want to be able to get the avatar also something like this:

Avatar <-Round Circle Bubble with Message Inside it

Avatar <- Rectangle Bubble with Message Inside it ....

Is there any way to do this?

Thanks

FredrikOseberg commented 3 years ago

Currently, that would be difficult. I'll look into it.

dtcyad1 commented 3 years ago

Hi Fredrik,

just to give some more perspective, currently, i have a widget which renders a message bubble with a message and a thumbs up and Thumbs down button at the bottom right corner. This whole widget is the bot response. However, currently, the only way to do this is to have a response and a widget. So its like having the same message twice. Also, the message in the widget should also be treated as the regular bot response message and be saved as part of the message history. Something like that :) I dont believe we can have a bot response that is just a widget ?

Thanks

FredrikOseberg commented 3 years ago

No, not currently, but that could be supported if needed.