Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 23 23:18
    christopheranderson synchronize #2665
  • Jan 23 23:18
    christopheranderson synchronize #2669
  • Jan 23 23:18
    christopheranderson synchronize #2698
  • Jan 23 23:18
    christopheranderson synchronize #2679
  • Jan 23 23:18

    christopheranderson on cleemullins-patch-1

    (compare)

  • Jan 23 23:18
    christopheranderson synchronize #4985
  • Jan 23 23:18
    christopheranderson synchronize #5718
  • Jan 23 23:18

    christopheranderson on master

    Added quicklinks to other platf… (compare)

  • Jan 23 23:18
    christopheranderson closed #5719
  • Jan 23 23:17
    cleemullins review_requested #5719
  • Jan 23 23:15
    cleemullins opened #5719
  • Jan 23 23:15

    cleemullins on cleemullins-patch-1

    Added quicklinks to other platf… (compare)

  • Jan 23 03:39
    Magzit opened #5718
  • Jan 22 02:14

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

  • Jan 22 02:14

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

  • Jan 22 02:13

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

  • Jan 22 02:12

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

  • Jan 22 02:12

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

  • Jan 22 02:09

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

  • Jan 22 02:08

    BruceHaley on pipelinedoc

    Update BotrameworkPipelinesOver… (compare)

wmendoza107
@wmendoza107
@dinobrago QnAMaker now allows for multi-turn questions & answers, so you can actually use it for troubleshooting steps with a user. (E.g. Instructional steps in product manual.) I've used QnA Maker to create a bot that points me (and my teammates) to multiple internal resources (e.g. Booking travel, links to corporate perks, links to marketing dashboards and other tools).
Christopher Anderson
@christopheranderson
@Aliandi - 502 usually means your process is crashing/not starting. Have you checked your application logs for some exception messages or clues as to what is happening?
Ali
@Aliandi
@christopheranderson I've checked the logs and the issue was when the app runs it does not have the requirements installed (e.g. botbuilder-core) even though I have a requirements.txt file. I've been stuck with this deploy for a week. Is there any guide for python bot deployment I could have missed out?
Kyle Delaney
@v-kydela
@Aliandi - I recommend asking a question on Stack Overflow so you can provide more details
Christopher Anderson
@christopheranderson
quick workaround is to run python -m pip install --upgrade -r /home/site/wwwroot/requirements.txt from kudu console to install your packages
As Kyle said, a SO post with some details on how you tried to deploy/etc. would help to understand why the packages weren't installed when you deployed.
Ali
@Aliandi
@v-kydela @christopheranderson I'll be looking into that workaround and if I still can't make it work I'll be posting on SO. Thanks for the help :heart: !
Eric Dahlvang
@EricDahlvang
@Aliandi i deployed some python bots to Azure Thursday. What steps are you following?
Eric Dahlvang
@EricDahlvang
@PaoloWork Azure Bot Service authentication is described here: https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-authentication?view=azure-bot-service-4.0#authentication-technologies the protocol ssl/tls, oath 2.0, jwt tokens
The sdks are written to validate these tokens
Eric Dahlvang
@EricDahlvang
Locking down the aad app associated with the bot would prevent the connector services messages from making it to the endpoint.
It is possible to use a separate aad app registration, and require signing into that from the bot: https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=csharp
Eric Dahlvang
@EricDahlvang
Ali
@Aliandi
Eric Dahlvang
@EricDahlvang
Just tried it again, and successfully deployed the echo bot using az cli and template-with-new-rg.json from https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/python/02.echo-bot/deploymentTemplates with the following steps:
az login
az account set --subscription "My Subscription Name"
az configure --defaults group=MyDefaultResourceGroup location=westus
az ad app create --display-name "EricPython02Echo" --password "MyPython02EchoPassword" --available-to-other-tenants
[ad app create will generate an appid for next step '2b7d57cf-6185-4fc6-accb-eb24dd1e6931']
az deployment create --name "EricPython02Echo" --template-file "template-with-new-rg.json" --location "westus" --parameters appId="2b7d57cf-6185-4fc6-accb-eb24dd1e6931" appSecret="MyPython02EchoPassword" botId="EricPython02Echo" botSku=S1 newAppServicePlanName="EricPython02EchoAppServicePlan" newWebAppName="EricPython02Echo" groupName="EricPython02EchoGroup" groupLocation="westus" newAppServicePlanLocation="westus"
[zip up the code and deploy with the following]
az webapp deployment source config-zip --resource-group "EricPython02EchoGroup" --name "EricPython02Echo" --src "code.zip"

Deploying to an existing resource group also works, but there is a restriction where it can only have linux resources. If there are windows resources in the resource group, the deployment will fail.
Ali
@Aliandi
@EricDahlvang that worked like a charm! I have an echo bot deployed and answering right now! Thanks!
Eric Dahlvang
@EricDahlvang
:)
Lars Schumachenko
@larsschumachenko

Hello!
I recently did my first steps around building a bot.
While doing that, I ran into an authentication issue which I'm unable to solve on my own.
I'm using python and started some tests with the echo bot: https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/python/02.echo-bot
I registered an application and configured the bot with APP_ID and APP_PASSWORD.
After starting the bot, it works fine for a while. After an hour or so it stops working (means: doesn't send messages anymore to MS Teams) and I see this in the logs:

DEBUG urllib3.connectionpool https://smba.trafficmanager.net:443 "POST /emea/v3/conversations/19%3Ae9aa9e96861[...] HTTP/1.1" 401 61 DEBUG msrest.exceptions Operation returned an invalid status code 'Unauthorized'

I assume the token which has been received when during the initial interaction is expired and the bot is not allowed to send messages anymore.
I guess I need to configure some kind of authentication refresh, eg telling the underlying framework
to fetch a new token in case the current one is expired is about to expire.
However, I can't find a way of achieving that.
Do you have any hints where I need to look at?

Eric Dahlvang
@EricDahlvang
Hi @larsschumachenko ... I ran into the same issue: microsoft/botbuilder-python#596
The fix was merged yesterday: microsoft/botbuilder-python#600
Lars Schumachenko
@larsschumachenko
Ah, nice! Thanks for the info.
Eric Dahlvang
@EricDahlvang
We will be pushing a 4.7.1 patch soon
Eric Dahlvang
@EricDahlvang
Lars Schumachenko
@larsschumachenko
@EricDahlvang I updated the library, it works properly now. Thank you for the fast fix.
Eric Dahlvang
@EricDahlvang
:)
JRN
@rjgmail88
Can anyone help with this question ? This is about Bot Timeout solution in V4 bot. https://stackoverflow.com/questions/59776589/botbuilder-timeout-for-typescript-virtual-assistant
Christopher Anderson
@christopheranderson
@rjgmail88 - I'm gonna forward your SO post to the VA team and see if they have any advice. If not, I'll try to help out.
if you could share anything you've tried/etc. it might help give more specific advice.
FlorenciaNodar
@FlorenciaNodar
I need to bring all the extreme expressions of LUIS, what does it bring?
image.png
Kyle Delaney
@v-kydela
@FlorenciaNodar - In English that means "review endpoint utterances"
Alexp2019
@Alexp2019
Hi, does anyone know how a teams bot can access the replies in a conversation?
Kyle Delaney
@v-kydela
@Alexp2019 - A Teams bot will receive all replies in a personal conversation. In a team channel conversation, you will need to @ mention the bot in order for it to receive messages.
Alexp2019
@Alexp2019
Thanks @v-kydela - do you know if when you mention the bot, and the conversation has replies, is the bot able to retrieve the replies?
Alexp2019
@Alexp2019
sorry, forgot to mention - in a team channel conversation
cAstraea
@cAstraea
Hello everyone ! I was wondering if it's possible to start a group chat with another user and including the bot into the conversation from a dialog button ?
How would this work for the bot though ? To include it in the chat ?
image.png
I'm using the graph api to create a message inside a channel from within the bot. Another person would click on that button and start a conversation with the user.