-
Notifications
You must be signed in to change notification settings - Fork 279
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
Send Typing Indicator Helper #621
Comments
Typing indicator is a very important feature for improving ux experience. SDKv3 was way easier than SDKv4, i couldnt make it work for SDKv4. Saw some examples for the dotnet sdk but none for javascript. Love to hear improvements on this topic |
Recently checked the documentation and find out about the SendActivities method. await context.sendActivities([ |
Great! Thanks! Your solution worked for me, though I introduced a little modification: async sendTyping(context) { |
We've talked this over, and I don't see us adding this, given the view lines of code above to implement the behavior. |
Hi It worked for me also in localhost/emulator. but when i deployed in azure it is not working. |
This is for node js. It should work..
This will work on the web. Which channel your bot is deployed. |
yes, that work well, thanks!!, but how to add Typing Indicator whenever BOT have received a message and is processing? @sanjeevgaut thanks!! |
it should work. |
Send Typing Indicator Helper
In the v3 SDK and in early iterations of the v4 SDK, there was a simple utility that allowed developers to have their bot send typing indicators. Albeit a minor user experience feature, it gives the end user of the bot the sense that they're communicating with a real agent that's actively typing.
Describe the solution you'd like
In the current iteration of the SDK there appears to be a
showTypingMiddleware
which sends typing indicators for every outgoing message. While this may be valuable for some bots, I'd like to see a solution that allows the developer to send typing messages themselves.Additional context
While digging around the source code I found this comment that demonstrates how to send a typing indicator. It both seems like too much code, which could easily be abstracted into a helper function, and doesn't seem to work:
I also noted this bug, but was not able to use the resolution to send the indicator:
Note: I'm currently testing the typing in the emulator. It's entirely possible that the above code works in other channels, and that this is an emulator bug
[enhancement]
The text was updated successfully, but these errors were encountered: