You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I tried to add Minimizable Webchat from samples to my project, somehow it's not hitting the action '../actions/postActivity.js'.
So from below part of MinimizableWebChat.js
It does not have meta property set as default "keyword". Hence, this breaks when 'postActivity' method of postActivitySaga.js is hit. I am referring the below code:
@neetu-das thanks for taking the time drilling into the code.
I think I fixed minimizable sample in #1631. We introduced WEB_CHAT/SEND_EVENT and it will use postActivity that will fill action.meta.method automatically.
The method is mainly to determine how the message is sent, e.g. is it from keyboard? Or is it from microphone?
And the primary usage of this method field is for messages that sent thru microphone, they will turn on speech synthesis engine on next incoming message from the bot.
I didn't think thru the method field complete yet. But I believe, people would love to use postActivity to send message "from JavaScript code". Then, method should by default be javascript or code. I didn't think thru how much value this method field would provide, other than turning on speech synthesizer.
Can you check if the latest minimizable Web Chat sample is working for you? You can look at the PR #1631 for the diff.
IMO, the "minimizable sample" is a very popular one, we should make it simpler and more intuitive to use and understand.
Hi,
When I tried to add Minimizable Webchat from samples to my project, somehow it's not hitting the action '../actions/postActivity.js'.
So from below part of MinimizableWebChat.js
when the below action is dispatched:
It does not have meta property set as default "keyword". Hence, this breaks when 'postActivity' method of postActivitySaga.js is hit. I am referring the below code:
Now to fix this I am following two approaches:
Please let me know which one is correct.
The text was updated successfully, but these errors were encountered: