Skip to content
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

How to Clear Chat Bot Conversation from UI (Emulator/WebChat)? #1915

Closed
virendrak opened this issue Dec 27, 2016 · 6 comments
Closed

How to Clear Chat Bot Conversation from UI (Emulator/WebChat)? #1915

virendrak opened this issue Dec 27, 2016 · 6 comments

Comments

@virendrak
Copy link

I am developing a ChatBot application, where I am using Microsoft Bot Framework (.NET/C#).

image

I have used Configuring Channel - Web Chat, added this chat IFrame code in my SharePoint/Web Page. I would like clear bot conversations on typing text like (reset/clear).

How to clear/reset conversations on Bot Emulator or WebChat? Is there any in-built function/method available in MS Bot-Framework (C#), to achieve this requirement?

@abhishan
Copy link

@virendrak
We have built a similar interface, but instead of embedding the webchat as an IFrame, we have taken the code of the web chat and inserted into SharePoint as a webpart using script manager. This way you have more control over the web chat code and you can implement your custom operations to clear the window. We are using it to identify and set logged in user as the FROM identity in the conversation and using it with our Intranet Bot solution (http://www.acuvate.com/solutions/bot/)

Regards
~abhishan

@virendrak
Copy link
Author

@abhishan , Thanks for the information!

I have followed the approach mentioned in microsoft/BotFramework-WebChat#228.
I believe you have used (Node.JS) to develop your BOT. I am wondering if this can be achieved using C# by passing the message (user input) 'clear' or 'reset' as I am developing BOT using C#.

If you also developed BOT using C#, kindly provide more details on this line, - we have taken the code of the web chat and inserted into SharePoint

Really appreciate your help on this!!!

@dandriscoll
Copy link
Member

Hi @virendrak, you can access that level of functionality by hosting the control yourself or by cloning/modifying the repo to add that feature.

Details are probably best discussed over at the Web Chat repo: https://github.com/Microsoft/BotFramework-WebChat

@eanders-ms
Copy link
Contributor

Hi @virendrak, closing this issue now. If you'd prefer it remain open, please @mention me here. Cheers.

@QaisarAwan
Copy link

Hi, I want to refresh my chatbot from the web page same as we do it from the Azure Test in Web Chat "Start Over"?

@EricDahlvang
Copy link
Member

@QaisarAwan 'Test in Web Chat' recreates the iframe when the 'Start Over' button is clicked.

Currently, Web Chat does not support restarting without a page refresh. Please follow along here for this feature's progress: microsoft/BotFramework-WebChat#1846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants