BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Request improvement to intercept and modify/cancel messages

Open jschristophe opened this issue 9 years ago • 2 comments

It would be great if we could intercept message sended from client to bot to modify or cancel them before there are sended to the bot.

Currently, I can only intercept message with directLine (directLine.activity$.subscribe(function (activity) { ... ) but I can't modify theses activities.

Can you tell me if this feature is already implemented. If no, have you planed to implement it ?

Thanks,

jschristophe avatar Sep 28 '17 14:09 jschristophe

You can do this with client middleware. Have a look here.

billba avatar Sep 28 '17 15:09 billba

I am using directline, botchat and botchat-es5.js library.

How can this middleware be created?

serpino avatar Feb 01 '19 09:02 serpino