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

SKype for business as channel #565

Closed
tahazayed opened this issue Jun 28, 2016 · 51 comments
Closed

SKype for business as channel #565

tahazayed opened this issue Jun 28, 2016 · 51 comments

Comments

@tahazayed
Copy link

I want to support Skype for business as a channel, can I use this DLL Microsoft.Bot.Connector.Emulator.Core.dll (included in Bot Framework Emulator)?

@jameslew
Copy link
Contributor

Skype for Business isn't yet added as a channel to the Bot Framework, though it's high on our priority list.

I'm not sure how you'd use the emulator core for that, but you've peaked my curiosity :).

@ronnelsantiago
Copy link

do you have any timeline on this one? is this currently being worked on? can you give us an indication here please.

@tomlm
Copy link
Contributor

tomlm commented Jun 28, 2016

I can assure you that it is being worked on, but not timeline.

@ronnelsantiago
Copy link

sounds good enough for me.. thanks.

@tahazayed
Copy link
Author

I built skype for bussiness client using lync sdk and I am using Microsoft.Bot.Connector.Emulator.Core.dll to send message to the bot connector<->conversation and it is working fine with me, I am asking about is it legal or not?

@naoyanickf
Copy link

@tahazayed it's great! Can I use it?

@tahazayed
Copy link
Author

tahazayed commented Sep 4, 2016

@b4usat
Copy link

b4usat commented Oct 27, 2016

@tahazayed i tried the sample in the repo. When i tried sending message to my deployed bot, its returning no response. Can you please help me here?
Same bot i tried connecting from bot console emulator with ngrok forwading url. So i am getting response from my bot. Is the same way i have to use here as well?

@tahazayed
Copy link
Author

@b4usat, close any conversation window then ask someone to start a conversation and it will work

@abhishan
Copy link

abhishan commented Dec 2, 2016

I found this blog post by @adoprog
http://devopssnippets.blogspot.co.uk/2016/08/integrating-lyncskype-for-business-with.html
This uses Direct Line channel and Lync API (UCMA can also be potentially used). I haven't tried this yet, but its worth a shot.
The only challenge is that this wont work for Skype for Business Online.

~Abhishek
Acuvate Software

@tahazayed
Copy link
Author

@abhishan I already built another one with lynk sdk https://github.com/tahazayed/BotConnectorSkypeForBusiness
And it works with skype for business online as it just a client not server application

@abhishan
Copy link

abhishan commented Dec 5, 2016

@tahazayed - Thanks for the link. Will check it out.
Few questions:
Do we run it on every user desktop that needs access to the bot? OR, Do we need to dedicate a PC that acts as the Bot's Skype client?
If a user is using Skype on mobile, will it support this scenario?
Thanks in advance...

~ Abhishek
Acuvate Software

@tahazayed
Copy link
Author

You will need one dedicate pc for the bot.
Any user can talk to it

@abhishan
Copy link

abhishan commented Dec 5, 2016

@tahazayed Cool. This would work in the interim, while we wait for an official MS release... Thank you!

@shankarmuppalla
Copy link

@tahazayed I tried the code from repository .There is no response from my deployed bot in SFB even after closing all conversation windows but when i tried with ngrok with forwarding url in emulator , there is a response. Can you plz help if i'm missing anything here.

@tahazayed
Copy link
Author

@shankarmuppalla
Happy new year
1-Change BotURL in App.config with yours
2-Debug MainForm.cs

@shankarmuppalla
Copy link

@tahazayed Thank you Wish you the same.

1- BotURL Changed in App.Config
2- During Debugging MainForm.cs ,There is a "System.NullReferenceException" thrown as oBotResult.attachments is NULL .
and Under oResponse--> Message -->Text displayed as " 500 Internal Server Error".
How do i come out of this ? Thanks in Advance!

@tahazayed
Copy link
Author

The issue in WCF
Disable custom error in WCF web.config

@romanNedzelsky
Copy link

romanNedzelsky commented Jan 4, 2017

untitled
I changed BotURL, changed ID and Secure, but still has "Additional information: Could not load file or assembly 'Microsoft.Office.Uc, Version=15.0.4603.1000" when try to run. I read somewhere, that it shuold be coused by bad versions of Lync SDK and Lync Client, which has to be installed to install SDK. I has those versions:
SDK: 15.0.4603.1000
Client: 15.0.4420.1017 (Lync 2013 Basic)

Would it be possible to help me somehow? I really want to run this great solution :/

@tahazayed
Copy link
Author

Copy this file from lync sdk installation folder under program files to your bin folder

@romanNedzelsky
Copy link

Great, thank you, this works, now the code is runing, but somehow, when I write "Hi", I have no response at all even I know, that bot is functional via normaln skype, slack or webchat...

@tahazayed
Copy link
Author

Debug MainForm.cs

@shankarmuppalla
Copy link

@tahazayed Disabled custom errors and now there is this "401 unauthorized error" during debug . My bot is deployed to Azure with url something like this https://mybot.azurewebsites.net/api/messages and provided AppId and AppSecret respectively in the code as well.

@luscl1
Copy link

luscl1 commented Jan 6, 2017

I've got the exact same error as @shankarmuppalla

@romanNedzelsky
Copy link

I've also got exactly the same eror as @shankarmuppalla and @miau4...do you have any ideas?

@tahazayed
Copy link
Author

I will debug as well to check the issue and give you feedback ASAP

@yevsh
Copy link

yevsh commented Jan 8, 2017

One question:
Is it possible to use local (intranet) bot with the BOT Framework?
As we can't/won't publish our bot for all to see/use, the bot is for local use only.

@romanNedzelsky
Copy link

Hello @tahazayed, any progress on debuging? thank you very much.

@virendrak
Copy link

virendrak commented Jan 11, 2017

@romanNedzelsky , Please find below solution of your comment/query #565 (comment), provided by @ankitbko in ticket -ankitbko/SkypeForBusinessBot#1

In properties of Microsoft.Office.Uc "Embed Interos Types" is set to "True" which makes "Copy Local" to false. Just changing "Embed Interos Types" to "False" will work.

@ankitbko
Copy link
Member

@romanNedzelsky Also make sure Copy Local is set to true once you change Embed Interops to False

@shankarmuppalla
Copy link

@tahazayed Any solution for the error? Thanks!

@ankitbko
Copy link
Member

@yevsh Yes you can create a bot which works locally. You can see the example here. The bot is hosted locally and is not registered with Bot Connector. The only outside communication is to LUIS which you can replace with any on-premise implementations which are available.

@luscl1
Copy link

luscl1 commented Jan 13, 2017

The problem about the "401 unauthorized error" during debug is still there.. does someone have a solution?

@romanNedzelsky
Copy link

I still cannot make this solution working :( any progress @tahazayed ? Or anyone else? something?

@tahazayed
Copy link
Author

Hello, sorry I will finish my master's exams by tomorrow and I will check the error intensely.

@tahazayed
Copy link
Author

Hello,I fixed the reference issue also I uploaded the web service that used by the bot

@tahazayed
Copy link
Author

@romanNedzelsky kindly get the latest version and use my web service under this folder"sampleservice"

@romanNedzelsky
Copy link

@tahazayed thank you for the update, will try, just quick question, is it possible using your solution use of some graphical objects in the conversation like choice buttons, herocards, or images? I am asking, because we tried to use directconnect channel, it works, but text only, so all the selection you have to do using writing numbers, you havent any herocards with thumbails or images (or we dont know how to do it, that the other possibility ;) ) thank you very much

@tahazayed
Copy link
Author

@tahazayed
Copy link
Author

@romanNedzelsky I think we can build a game, or sending tasks and get approvals

@romanNedzelsky
Copy link

@tahazayed well the reference is related to bot and skype, so the question is, if I will connect to bot with skype for business, will it work?

@tahazayed
Copy link
Author

Theoretically it will work as Skype for business is just a channel, give it a try you have the source code

@nikhilpularru
Copy link

@tahazayed I really liked your implementation and have just 1 question in mind, how can we modify your code to handle multiple conversation at once?

@tahazayed
Copy link
Author

@nikhilpularru Thanks, actually it handles, I use myRemoteParticipantUri as conversation's ID

@abhishan
Copy link

We have developed and launched a commercial version of a Skype for Business connector by leveraging UCWA and DirectLine. You can read more at this blog post here: http://acuvate.com/blog/chatbots-on-skype-for-business/

@ankitbko
Copy link
Member

@abhishan Great work. I had also written a blog on how to create SFB connector using UCWA - https://ankitbko.github.io/2017/02/Sykpe-For-Business-Bot-Using-UCWA/

@sjwaight
Copy link

Now officially supported as a Channel. Details here: https://msdn.microsoft.com/en-us/skype/skype-for-business-bot-framework/docs/overview

@tahazayed
Copy link
Author

@sjwaight: The Skype for Business Bot Framework channel is currently supported for Skype for Business Online. Skype for Business Server 2015 is not supported.
However I support Skype for Business Server 2015

@vikasr111
Copy link

@tahazayed I am also trying to setup bot on Skype for Business Server 2015.
If you have successfully setup, can you please guide me through?

@kapil-p-jain
Copy link

I built skype for bussiness client using lync sdk and I am using Microsoft.Bot.Connector.Emulator.Core.dll to send message to the bot connector<->conversation and it is working fine with me, I am asking about is it legal or not?

Hey can you help .. how you did that?

@kapil-p-jain
Copy link

I found this blog post by @adoprog
http://devopssnippets.blogspot.co.uk/2016/08/integrating-lyncskype-for-business-with.html
This uses Direct Line channel and Lync API (UCMA can also be potentially used). I haven't tried this yet, but its worth a shot.
The only challenge is that this wont work for Skype for Business Online.

~Abhishek
Acuvate Software

hey how you achieve that

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