-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backchannel: Proactive welcome activity #1445
Comments
@robbiew can you check this PR #1286? We are still drafting this. Since it touch pretty much every saga (a.k.a. business logic) on the production code, it's pending a thorough test. The reason we need a production code change is to make the sample simpler and more intuitive. You can look at the proposed sample here. const store = window.WebChat.createStore({}, ({ dispatch }) => next => action => {
if (action.type === 'DIRECT_LINE/CONNECT_FULFILLED') {
dispatch({
type: 'WEB_CHAT/SEND_EVENT',
payload: {
name: 'webchat/join',
value: { language: window.navigator.language }
}
});
}
return next(action);
}); Expect it to drop as dev build around end of December. Production build around mid February (or earlier if we decided to release a point release.) |
Hi @compulim, I am testing the above code, and though the event seems to be fired, I see nothing on the bot. Using dev And this client code ...
Browser console shows "Sending activity ...", but nothing arrives at the bot as far as I can tell, where my bot is defined ...
And ....
Is there something I'm doing wrong please? |
We are seeing the same problem - any updates on a fix? |
@compulim Looks like we missed the dec projection is there a revised estimate? |
passing parameters with v3 was so easy..... |
Looks like the latest PR on this subject, completed with a sample, will help you:
Enjoy! |
Thanks @nrobert. Yea, running back-and-forth multiple times on the code and finally it is in! Now in development branch, The reason it took so long is because we revamped most sagas. We didn't notice that It is in, tell me what you think about it. 😄 |
Having trouble finding any code examples in the repo for Backchannel usage, specifically around using postactivity -- triggering events (I'm using ReactWebChat).
The goal is to trigger a pro-active message via Backchannel to the user as a welcome (using Directline).
This may be sames as #1441
Do any such examples exist? Thanks!
The text was updated successfully, but these errors were encountered: