-
Notifications
You must be signed in to change notification settings - Fork 375
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
Welcome greeting message not showing On load - composer bot hosted in Web chat channel #3826
Comments
@sriget, did you use secret or token to connect to web chat channel? This is by design that, if you are using the secret to connect to web chat channel, the OnConversationUpdate will be fired twice separately and the first one is when you open webchat, and MembersAdded is bot, the second one is then user first talk to bot, the MemberAdded is user. You could work around this by using token to connect to web chat instead of secret. |
@luhan2017 wow... do you have further documentation or How To's to use the token instead of the secret? |
@eluchsinger , did you run this step to get token by secret? https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-authentication?view=azure-bot-service-4.0#generate-token I am not sure the token you add here is secret or token? could you please double check? |
Hi @luhan2017 . I used directline secret key only. let me try with access token and see. thanks for suggestion. ! |
@luhan2017 I'm getting the token from that API endpoint dynamically. The bot does not start the conversation. Only after the user writes a message, the bot starts to text back... |
@eluchsinger Please take a look at the Web Chat Welcome Message documentation. It looks like you need to add a user id to the token request. |
Looks like im facing this issue too. May i know how was it resolved? Im using the token and userid but the webchat still does not show the greeting message. However after i type in something intially, it then shows the greeting the message. Is there any guide on how to resolve this with ReactWebChat? |
Hi
This might be related to #1780
When I host the composer bot hosted in web chat channel directline, welcome greeting is not showing on load. But it shows in bot emulator. I'm using the latest composer v1.0.2 and below is the welcome dialog flow.
If i remove that if/else branch , greeting is displayed twice, i see thats the fix in #1780 . But is there any workaround to show the welcome greeting on load in web chat channel and in emulator both?
Any guidance will be appreciated.
Thanks,
Sri
The text was updated successfully, but these errors were encountered: