botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[.Net SDK, Skype] Proactive Bot - Proactive message to any user in the network, without having a known conversation

Open KiranBastawadi opened this issue 8 years ago • 12 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: .net 4.6
  • Active Channels: Skype
  • Deployment Environment: anything

Issue Description

need a bot to ping list of skype users from the DB

Code Example

Have a list of users in SQL DB with Skype Id's need to ping them a reminder every hour

KiranBastawadi avatar Jan 30 '18 14:01 KiranBastawadi

This is not possible. The reason is to prevent spam bots

JasonSowers avatar Jan 30 '18 16:01 JasonSowers

If the users are from contact list of bot or if had previous communication in days then is it possible to remember n ping back ?

KiranBastawadi avatar Jan 30 '18 17:01 KiranBastawadi

Yes, that is possible.

JasonSowers avatar Jan 30 '18 17:01 JasonSowers

Can you please explain a bit and an example code will help

thank you

KiranBastawadi avatar Jan 30 '18 17:01 KiranBastawadi

Check out this example in our samples repo. Read through the readme on there. There is also a blog article that does a good job explaining this concept, good luck!

JasonSowers avatar Jan 30 '18 17:01 JasonSowers

this I tried, it compiled and ran on localhost, I published it to proactive bot on Azure but when I wanted to test it on web chat I get the "There was an error sending this message to your bot: HTTP status code Unauthorized" error, Windows app ID password were checked, SSL certificate option checked (not using it on VM anyway) any suggestions would help

KiranBastawadi avatar Jan 30 '18 17:01 KiranBastawadi

In the future please provide details like this in your original post.

How is your bot deployed web app, bot service? Are you only testing on skype channel, does it work in the emulator? Please share your code so we can take a look

JasonSowers avatar Jan 30 '18 19:01 JasonSowers

I am using proactive bot built on Azure channelled to skype n web chat, I generated password (bot reg) and used in web config of simple send message proactive core code as in the above link

KiranBastawadi avatar Jan 31 '18 04:01 KiranBastawadi

I have the bot hosted here but it responds nothing ..(the error occurs on webchat test)

https://simplesend.azurewebsites.net/

KiranBastawadi avatar Jan 31 '18 06:01 KiranBastawadi

hi @KiranBastawadi There is a similiar business case in our end. There are some of the message need to reminder the specific skype user. Our bot have been intergrated into our Skype. Our bot have some of the API to let outside system comsumer. After that this bot api will send out the proactive message.

However, there are still some of problems. 1).Proactive on skype on could send when the user open the chat window. Could not delivered if SFB window is closed. That it's still annoying us. Also with @JasonSowers suggestion we raise the issue to the Skype for business side. https://www.skypefeedback.com/forums/299913-generally-available/suggestions/33146980-bot-send-messages-could-not-delivered-if-sfb-wind 2).The formatting its still a issue. If we use the web channel, everythings is fine. However if we use the skype for business channel all style is gone. (We know some feature is not support on the skype for business) Even, we could not Wrapping Lines with
or \n\n or anyother method. https://github.com/Microsoft/BotBuilder/issues/4116

Just for sharing.

band888888 avatar Feb 11 '18 00:02 band888888

Thanks a lot there !!! I am curious to this work 😊

On Sun, 11 Feb 2018 at 6:14 AM, band888888 [email protected] wrote:

hi @KiranBastawadi https://github.com/kiranbastawadi There is a similiar business case in our end. There are some of the message need to reminder the specific skype user. Our bot have been intergrated into our Skype. Our bot have some of the API to let outside system comsumer. After that this bot api will send out the proactive message.

However, there are still some of problems. 1).Proactive on skype on could send when the user open the chat window. Could not delivered if SFB window is closed. That it's still annoying us. Also with @JasonSowers https://github.com/jasonsowers suggestion we raise the issue to the Skype for business side. https://www.skypefeedback.com/forums/299913-generally-available/suggestions/33146980-bot-send-messages-could-not-delivered-if-sfb-wind 2).The formatting its still a issue. If we use the web channel, everythings is fine. However if we use the skype for business channel all style is gone. (We know some feature is not support on the skype for business) Even, we could not Wrapping Lines with or \n\n or anyother method. #4116 https://github.com/Microsoft/BotBuilder/issues/4116

Just for sharing.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/4117#issuecomment-364708827, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah2FAV4TtQmmI5r96QnC8u9HztcUIFfpks5tTjf5gaJpZM4RyaCY .

KiranBastawadi avatar Feb 11 '18 17:02 KiranBastawadi

Can you please let us know if the issue still persists?

fanidamj-zz avatar Jun 21 '18 23:06 fanidamj-zz