I have a requirement to show an image user upload. I believe I can have an external component for upload and I can use the image to show in conversation. I found renderCustomComponent method, which can render almost anything in chat box.
Now whenever I use this component it renders component as a message from bot end, i.e. the component renders on the left side. Is there any way renderCustomComponent can render component as message from user?
Here is how renderCustomComponent is rendering the image in chat box.
Hi there,
I have a requirement to show an image user upload. I believe I can have an external component for upload and I can use the image to show in conversation. I found
renderCustomComponent
method, which can render almost anything in chat box.Now whenever I use this component it renders component as a message from bot end, i.e. the component renders on the left side. Is there any way
renderCustomComponent
can render component as message from user?Here is how
renderCustomComponent
is rendering the image in chat box.This is how I need it to render.