Comments on: BUILD BOT with Bot Framework Rest Api (Azure Bot Service)/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/Professional Development, Data ScienceWed, 27 Apr 2022 02:13:28 +0000hourly1http://wordpress.com/By: Cuc Chafetz/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-28935Thu, 26 Dec 2019 04:45:14 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-28935Ridiculous story there. What happened after? Take care!|

Like

]]>
By: Tsuyoshi Matsuzaki/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-3217Thu, 21 Jun 2018 06:45:44 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-3217In reply to Navi.

You can send outgoing messages as usual, when your bot is added by users.
Please run the following skype bot sample (this sample shows the help text when you add this bot), and you can download C# code (MessagesController.cs) in github.
/2016/09/06/microsoft-bot-framework-bot-with-authentication-and-signin-login/

Like

]]>
By: Navi/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-3210Wed, 20 Jun 2018 07:46:29 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-3210hello Tsuyoshi! How to reply for add action? i need to send rich cards for add messages? thanks for this blog. really helped me a lot

Like

]]>
By: Andrey Yagodarov (yagodar)/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-3117Mon, 11 Jun 2018 12:04:44 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-3117Hello Tsuyoshi!

Your artical veru valuable!

Thank you for your wrok – it very help me.

Wish you prosperity and good health 🙂

Like

]]>
By: Saboor/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-367Tue, 26 Sep 2017 02:54:51 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-367Hi Tsuyoshi ,

I am using the bot framework with Cortana , and the communication goes very well . However when I have to send a message to Cortana after completing a log running task , it is sometimes accepted by it and mostly rejected with a timeout exception.
what I am trying to do is send an ad-hoc or a proactive message from the bot to cortana using the previous dialog’s conversationId and the serviceURL . usually if my response is within 15 sec it gets through . But I do not want to limit my usecase here as there could be more long running jobs. do you have an example to sending proactive messages to the client / cortana in REST?

Like

]]>
By: Jacob Schmitz/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-366Tue, 02 May 2017 22:13:42 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-366Has anything related to the JWT verification process changed in the last couple months? I had Java code that successfully performed this validation that was running without issue from December until the beginning of April, when I started to have issues. For several weeks the bearer tokens received with slack messages would not validate, and now as of this past week no tokens received along with messages from any chat channel can be validated. I’ve tried changing the OAuth login, scopes and jwt issuer urls outlined here: https://docs.botframework.com/en-us/restapi/authentication/#changes to no avail.

Like

]]>
By: Tsuyoshi Matsuzaki/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-365Sat, 11 Mar 2017 02:50:59 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-365In reply to Bashir Salangy.

Hi, Bashir-san
Sorry I don’t know about the details of Postman, but first the serviceUrl (https://skype.botframework.com or https://smba.trafficmanager.net/apis/) will be determined by the bot framework, and this service url will be notified by bot framework first. When the user adds your bot, this first notification (webhook) will be arrived into your bot, and you can retrieve this service url. (For details, please see the section “Messaging Flow – Make contact with your bot” in this post.)
Please see which one is used in this notified webhook body message, and it is the right service url for your bot. (I think that the correct service url will be https://smba.trafficmanager.net/apis/ for your case, because of HTTP status 400. But, you remember that https://skype.botframework.com is still now being used in several cases…)
If https://skype.botframework.com is used, please register the new bot in your bot framework developer portal and use this new one.

The second, I think that the HTTP status 403 is indicating your access token is invalid. There’re many cases for the invalid access token like the expired token (the token is expired by 1 hour), etc, etc, and sometimes the reason is described in HTTP response body.
If this 403 error remains (not fixed), could you please send your access token string (which is very long string) by e-mail because it’s the secure information. I’ll try to check this access token when I’m in available.

Like

]]>
By: Bashir Salangy/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-364Thu, 09 Mar 2017 12:20:52 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-364Hello Tsuyoshi,

I get the token posting to https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Then I send oneway message to my skpye using Postman.

POST https://skype.botframework.com/v3/conversations/29%3A1iFtpwQ…/activities
Authorization: Bearer eyJ0eXAiOi…
Content-Type: application/json; charset=utf-8

{
“type”: “message”,
“timestamp”: “2016-08-18T09:31:36.2281894Z”,
“from”: {
“id”: “28:1f7dd6e9-cbd7-4c38-adf2-6e9bcab5310a”,
“name”: “My bot”
},
“conversation”: {
“id”: “29:1iFtpwQ…”
},
“recipient”: {
“id”: “29:1iFtpwQ…”,
“name”: “My Name”
},
“text”: “Good morning !”
}

I use my bot ID and my user ID which I extract them from sesseion.message. but always I get 400 bad request.
If I use https://smba.trafficmanager.net/apis/v3/conversations/…. I get 403 Forbidden.
I tested my bot by adding it to my Skype. When I type a message it echo back.
What is wrong.

Thank you

Like

]]>
By: Nishant Singh/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-363Sun, 26 Feb 2017 08:27:04 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-363I’m trying to build skype bot. I am using your rest api documentation to create a bot. at the time of replying, I am getting 403 error:
ava.io.IOException: Server returned HTTP response code: 403 for URL: https://skype.botframework.com/v3/conversations/c3677e1dbdd0493d8d97567dc6f05c51/activities.

I am getting the message from microsoft bot. but reply to the bot is not happening please help.

Like

]]>
By: Tsuyoshi Matsuzaki/2016/08/19/build-skype-bot-with-microsoft-bot-framework-oauth-and-rest-api/comment-page-1/#comment-362Thu, 16 Feb 2017 09:31:52 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5385#comment-362In reply to Hillel Coren.

I’m so sorry for the late response, and I modified this post for the latest updates.
As you write, now the protocol of my old post works well, but soon it’ll be changed and please use the new authentication protocol. (If you’re using SDKs, please upgrade to the new version and re-build your app.)
Please see the details for the authentication changes. (v3.0 -> v3.1)
https://docs.botframework.com/en-us/restapi/authentication/#changes
Thanks !

Like

]]>