botconnector

How to connect my python bot to microsoft bot connector

◇◆丶佛笑我妖孽 提交于 2020-12-06 08:10:10
问题 I want to write a python bot and I know if it is possible to connect my bot to microsoft bot connector ? 回答1: Yes it's possible. Please checkout Microsoft bot built on Django (python web framework) for implementation. Here below is a python code to reply back to Microsoft bot connector import requests app_client_id = `<Microsoft App ID>` app_client_secret = `<Microsoft App Secret>` def sendMessage(serviceUrl,channelId,replyToId,fromData, recipientData,message,messageType,conversation): url=

How to connect my python bot to microsoft bot connector

北城以北 提交于 2020-12-06 08:09:01
问题 I want to write a python bot and I know if it is possible to connect my bot to microsoft bot connector ? 回答1: Yes it's possible. Please checkout Microsoft bot built on Django (python web framework) for implementation. Here below is a python code to reply back to Microsoft bot connector import requests app_client_id = `<Microsoft App ID>` app_client_secret = `<Microsoft App Secret>` def sendMessage(serviceUrl,channelId,replyToId,fromData, recipientData,message,messageType,conversation): url=

Microsoft Bot Framework bot not working in Microsoft Teams when using ngrok

和自甴很熟 提交于 2019-12-24 12:22:15
问题 My Bot is working in the Emulator and through other channels but it's not working on Microsoft Teams. I able to see other channels requests and responses statuss in ngrok. But when using Microsoft Teams, request are not even hitting my server URL (ngrok). App ID : dfc6ac0d-e805-4a40-9fd3-7c4678b7ae88 (It's not duplicate of Unable to use bot from Teams) 回答1: Hello: I was able to access the Bot and get a response (character count of my message.) Perhaps you didn't enable sideloading of bots in

Bot Framework Test connection to your bot fails with status code Forbidden

戏子无情 提交于 2019-12-24 05:45:10
问题 My bot works receives and sends messages fine in Slack, Skype and emulator. However when I click the blue Test button in the bot portal (https://dev.botframework.com/) it gives me the error message "Authorization for Microsoft App ID my_id_is_replacedhere failed with status code Forbidden" Full error is below. I also get the same error when I send a scheduled message to Slack using endpoint https://slack.botframework.com/ and the Conversations.SendToConversation() method. This used to work

Botconnector not working for a self signed nodejs bot

醉酒当歌 提交于 2019-12-22 12:24:15
问题 I created a simple bot. Self signed the ssl cert. Apparently that does not work for bot connector . I get following error form the bot, after several seconds. { "error": { "code": "BadCertificate", "message": "An error occurred while sending the request. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure. ", "statusCode": 500 } } Does that mean self signed

Auto testing for Microsoft Bot Framework [closed]

时光怂恿深爱的人放手 提交于 2019-12-19 03:00:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I'm working now on my first bot with Microsoft Bot Framework, with ASP.NET. After manually testing with the bot emulator, I'm looking for the best method to create automatic testing for the bot. Considering two problems: What is the best tool to automate such tests? What is the

Auto testing for Microsoft Bot Framework [closed]

不打扰是莪最后的温柔 提交于 2019-12-19 03:00:16
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I'm working now on my first bot with Microsoft Bot Framework, with ASP.NET. After manually testing with the bot emulator, I'm looking for the best method to create automatic testing for the bot. Considering two problems: What is the best tool to automate such tests? What is the

Bot Connector: Sending custom message to Kik results in 400 error

扶醉桌前 提交于 2019-12-12 04:11:34
问题 I'm trying to figure out how to send custom messages to Kik using the Bot Framework / Bot Connector (see http://docs.botframework.com/connector/custom-channeldata/#custom-kik-messages) but, everything I've tried results in an error message (specifically in the Kik app for iPhone): Service Error: Response status code does not indicate success: 400 (Bad Request). I've created a Kik message class in C# and am adding it to the Message.ChannelData property before posting the message. I created the

Connection Error on Microsoft Bot after publishing it on AWS

二次信任 提交于 2019-12-12 02:35:47
问题 I am trying to publish a bot that I coded in C# through visual studio 2015 on to AWS. I installed the Amazon Cloud SDK and was able to successfully publish the bot to AWS. I updated the bot endpoint with the address it gave (http://benbot-dev.us-west-2.elasticbeanstalk.com/). But when I go to Microsoft Bots site and test the bot connection it says Unable to connect to the remote server. Please help. I am thinking it is the https endpoint issue. But I am not sure how to get an API Gateway

Direct Line API - Bot Framework / Hero Cards and Attachments

試著忘記壹切 提交于 2019-12-11 01:46:11
问题 I just started using the Direct Line API (1.1) and I saw that it doesn't let you know if a conversation was showed inside a Hero Card or a Button for example. { "id": "fBPDq9JSeL|000000000000000004", "conversationId": "fBPDq9JSeL", "created": "2016-11-28T20:22:20.6035604Z", "from": "portosegurobot", "text": "Health For Pets\n\nNossa missão é proporcionar a cães e gatos uma vida mais saudável e feliz.\n\nAcesse e saiba mais\n\n(Acesse) https://health4pet.com.br/", "images": [], "attachments":