Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:27
    EricDahlvang edited #6325
  • 04:20
    EricDahlvang edited #6325
  • 04:20
    EricDahlvang synchronize #6325
  • 04:20

    EricDahlvang on 2_2SkillManifestValidation

    Add other skill schemas and man… (compare)

  • 00:46

    scheyal on sdk

    (compare)

  • 00:46

    scheyal on main

    Orchestrator package readme (#6… (compare)

  • 00:46
    scheyal closed #6318
  • Jun 17 23:04
    EricDahlvang opened #6325
  • Jun 17 23:03

    EricDahlvang on 2_2SkillManifestValidation

    Add validation for 2.2 skill ma… (compare)

  • Jun 16 16:01
    cleemullins review_requested #6321
  • Jun 16 15:48
    gabog edited #6321
  • Jun 16 15:45
    gabog review_requested #6321
  • Jun 16 15:45
    gabog review_requested #6321
  • Jun 16 15:45
    gabog review_requested #6321
  • Jun 16 15:45
    gabog review_requested #6321
  • Jun 16 15:45
    gabog review_requested #6321
  • Jun 16 15:44
    gabog review_requested #6321
  • Jun 16 15:44
    gabog review_requested #6321
  • Jun 16 15:44
    gabog opened #6321
  • Jun 16 15:36

    gabog on SkillManifest2_2

    Created v2.2 folder Updated som… Added missing files (compare)

Testuser-demouser
@Testuser-demouser
Hi All,
I have a bot which runs on teams and I am using it to upload a file to the user's OneDrive. The general flow is, user clicks on a file name on a card and then the bot sends him a FileConsentCard where the user clicks an allow button. Now after the user clicks the allow button OnTeamsFileConsentAcceptAsync gets called with an invoke activity. So far so good. However, just recently I have observed a little strange behavior when the user clicks the allow button (just once), the OnTeamsFileConsentAcceptAsync gets called twice. I checked and found out that the invoke activity for the file consent card is getting invoked twice and this is causing the bot to behave abnormal.
Can anybody suggest what could be the issue here ? Can a slow internet connection be one of the factors here ?
I am using C# and bot builder v4.
Thank you in anticipation.
Dilip Thomas Ittyera
@dilipti_twitter
Hi, Can the Bot Framework Composer model and deploy to non-azure environments?
3 replies
thank you in advance
Dean Goddette
@dinobrago
I have a bot developed in Composer that accesses a pre-existing QnAMaker knowledge base (KB). This KB has follow ups for some answers. When the main bot doesn't recognize an intent, it sends the message to the KB to see if it recognizes it. But if the KB answer has a follow up, any subsequent input is only analyzed by the KB, not by the main bot. The problem seems to be that the follow ups are essentially a dialog. So - if the KB answer has a follow up, any subsequent question is only evaluated by the KB. If the user asks for something that the KB doesn't recognize, it doesn't return to the main bot. Is there a way to ensure that if the KB doesn't recognize a question that it returns the activity to the main bot? Essentially this would mirror what the main bot does but in reverse. If the KB gets a question it doesn't understand, I want to make sure it sends the activity back to the main bot.
Umang Dhanuka
@umangsre:matrix.org
[m]
Hi, Can I deploy my Azure Bot to a external wordpress website?
Kyle Delaney
@v-kydela
Yes
Martín La Rosa
@martinlarosa
Hi! I'm trying to create a PR but when I try to push my branch vs code github extension tells me I don't have permission to do that. What should I do?
Seungwook Chung
@swookie
Hi, Im bulding a bot on top of nodejs/express - I was wondering how to get access to the request (req) or response (res) object from inside the bot activity handler; eg. bot.run()
Kyle Delaney
@v-kydela
@swookie - Sounds like a more involved question. I recommend asking it on Stack Overflow and providing code, links, etc.
Felix Gonzalez
@felix-gonzalez
Hi! It's possible create a chatbot with Composer and deploy it in a Docker infrastructure?
Kyle Delaney
@v-kydela
@felix-gonzalez - Composer allows you to export the runtime, which effectively turns a Composer project into a self-contained bot. By exporting the runtime, you can do anything with a Composer bot that you could with a normal bot.
Felix Gonzalez
@felix-gonzalez
@v-kydela that runtime changes if I do changes in the chat flow using composer? Or it's only a clean runtime without any chat logic?
Kyle Delaney
@v-kydela
@felix-gonzalez - The changes you make in Composer apply to the declarative dialogs in JSON form and don't change the code. You can have a look at the adaptive dialogs docs for more information: https://docs.microsoft.com/azure/bot-service/bot-builder-adaptive-dialog-introduction
Márton Garai
@mrtank

Hi, I would like to setup a resourceExplorer capable of loading .dialog/.lu/.lg dialog. From the tests I tried to mimic loading resources, but it doesn't go well.

        new AdaptiveBotComponent().configureServices(services, noOpConfiguration);
        const declarativeTypes: any[] = services.mustMakeInstance('declarativeTypes');

I suspect that noOpConfiguration wouldn't make the cut. How can I setup this kind of configuration (botbuilder-dialogs-adaptive-runtime.Configuration)? It only contains a get and a set method.

3 replies
Márton Garai
@mrtank

BotBuilder-Samples have a kind of sample, that integrates Composer's dialogs (numbered 09). In my case I work in typescript, so I initially try to copy the functionality from "\experimental\adaptive-dialog\javascript_nodejs\". That experimental code is subject to change, and had a hint for me, that it can't use luis yet (resourceExplorer.getResource('main-without-luis.dialog');.

In a later version (actual rc), there is an option to give a declarative dialog a recognizer + language generator. Which I did. Recognizer is setup dynamically, language generator left done with declarative way. Am I on the right track? Or is it mature enough only in the dotnet api (https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-adaptive-dialog-introduction?view=azure-bot-service-4.0 sais "Adaptive dialogs is currently only available in the .NET version of the Bot Framework SDK", but it's a statement from 06/24/2020)?

Márton Garai
@mrtank

when I import a .dialog with

        const dialogResource: Resource = resourceExplorer.getResource('Intellifactory-bot.dialog');
        const dialog: AdaptiveDialog = resourceExplorer.loadType(dialogResource);

the dialog defines a language generation resource within the .dialog file

...          
           "value": "={age:dialog.userage, shoeSize:dialog.shoeSize, fullname:dialog.fullname}"
        }
      ]
    }
  ],
  "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema",
  "generator": "main-without-luis.lg"
}

. The resourceExplorer can import it declaratively.

        const mainLgResource: Resource = resourceExplorer.getResource('Intellifactory-bot.en-us.lg');
        const commonResource: Resource = resourceExplorer.getResource('common.en-us.lg');
        dialog.generator = new TemplateEngineLanguageGenerator(mainLgResource, new Map<string, Resource[]>([['en-us', [mainLgResource, commonResource]]]));

is it possible for resourceExplorer.loadType to do it automatically? So I don't have to override the dialog.generator?

kent7301
@kent7301
Hi
Felix Gonzalez
@felix-gonzalez
It's possible connect using WebChat running in local to a bot running with Composer? I need test the bot using my custom web chat (style and custom events) and with the composer or emulator I can't do it.
Kyle Delaney
@v-kydela
Felix Gonzalez
@felix-gonzalez
Hi @v-kydela , yes , but I don't have access to channles to config it each time ngrok changes the URL. We need a quick way to work in local without Azure. I can connect to the bot started in composer using a local impl of direcline as a bridge, but I want use the same directline impl started by composer.
NereaCabiedasMoreno
@NereaCabiedasMoreno
I have made a bot with Node.js locally, then in the Azure platform I have created a bot channel registration and in the messaging endpoint I have put the address of the server where I have uploaded and the bot is executed (https: // ___ : 3978 / api / messages), with this address the bot in the bot framework emulator works for me, on the other hand, in the channel registration bot I have created a channel to test the web chat but I get the following error "There was an error sending this message to your bot: HTTP status code NotFound ", I need help
please ,it is very important for me
Kyle Delaney
@v-kydela
@NereaCabiedasMoreno - You've left part of your URL blank, so we can only guess at what's going on here. But that sure looks like a localhost URL. Remote URL's don't generally use a port like 3978
Márton Garai
@mrtank
Hi, can I branch in Composer by the cardinality of an array variable (it comes from entities, so 0 length is also possible)?
wellá
@lostdesign
Hi there, can anyone point me into the right direction of "How do i add the bot to my company teams"?
wellá
@lostdesign
nvm, found my around everything :D
gustavo-lara-molina
@gustavo-lara-molina
Hello All, Is there a way to use an adaptive card to send code snippets? like a JSON code snippet
Colby
@colbytimmsl
@gustavo-lara-molina Markdown is supported in Adaptive cards. Maybe this will help: https://support.microsoft.com/en-ie/office/use-markdown-formatting-in-teams-4d10bd65-55e2-4b2d-a1f3-2bebdcd2c772#bkmk_sharecode
2 replies
gustavo-lara-molina
@gustavo-lara-molina
image.png
Lpt-wq
@Lpt-wq
is this room active?
Kyle Delaney
@v-kydela
Yes
Jina Suh
@jinasuh
Hi, I have Composer returning an invoke response to launch a task module in Teams. The same project runs fine in the WebApp hosted version but fails in Azure Function based version with the following error:

Microsoft.AspNetCore.Server.Kestrel.Core: StatusCode cannot be set because the response has already started.

The invoke call is this

SendInvokeResponse(body)

[Activity
type = invokeResponse
value = ${{status: 200, body: body}}
]

Any idea why this is happening?

Pedro de Brito Muniz
@muniz034
Hi, anyone can help me with Component Dialog and QnA Maker ?
I want to trigger a dialog to the user enter some text, when the QnA Maker returns a specific answer
And end the dialog after the user send some generic text like "END"
And continue the QnA Maker follow-up prompt
@bterlson help ?
Kyle Delaney
@v-kydela
Kitt Phi
@kittphi:matrix.org
[m]
Hello, Trying to find instructions and support to create a new Channel to the MS Bot Framework. Thanks.
Kyle Delaney
@v-kydela
@kittphi:matrix.org - You may be interested in Direct Line: https://docs.microsoft.com/azure/bot-service/bot-service-channel-connect-directline
3 replies
Aline Ribeiro de Almeida
@alinealfa
Is there any update on the Orchestrator for python SDK? Is it about to be released or I'd better create Dispatch model and then migrate? Thanks.
Ruchita Harsora
@ruchitaharsora
Is there a way to configure a chatbot built on Microsoft Bot Framework in Python to integrate/deploy on Twilio channel? I see C# documentation, but there are no Python references available on internet. Thanks in advance
Chris Mullins
@cleemullins

@alinealfa There's no Orchestrator solution at this time in Python. The team has been focused on JS and C#.

What are you doing that needs the routing functionality? If that's a core scenario, such as you're routing between skills, you may want to consider building a Skill in python but keeping your core bot in JS and C#.

@ruchitaharsora While I've never done it, the Azure Bot Service should abstract this away from you. You're really just sending/receiving Activities and ABS is doing the Activity <-> Twilio conversations. As far as I understand it, it should "just work".
Ruchita Harsora
@ruchitaharsora
@cleemullins - Could you point me to an example as I am not able to receive/send message. I can see the C# .Net documentation at https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-twilio?view=azure-bot-service-4.0. Is there a way to do the same in Python?
Ruchita Harsora
@ruchitaharsora
Also, While replicating the code at https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/python/60.slack-adapter, I am getting an error - File "app.py", line 26, in <module>
CONFIG.SLACK_CLIENT_SIGNING_SECRET. TypeError: init() takes 1 positional argument but 4 were given. I have not changed the code apart from adding the Slack credentials. Thanks!
Aline Ribeiro de Almeida
@alinealfa
@cleemullins Thanks for the reply. The solution requires 1 QnA Maker database and n>1 Luis apps. So the fundamental need is for a layer to handle the correct dispatch to each service. Since Dispatch model is on the road to be deprecated, I wanted to check the best options for now, considering our codebase at the moment is python. The bot channels in use are Teams and Slack.
Aline Ribeiro de Almeida
@alinealfa

Depending on the UX requirements, sometimes we end up having to deal with specific code for each channel (and making a lot use of the channelid). I was trying to keep the codebase as generic as possible, so that including more channels would be almost painless. But the adaptive cards (and equivalent on each channel) and also the possibility to update an activity is really interesting for the project. And the main channels required by the project do support updating activity and adaptive card (or equivalent); each channel on its way.

Suggestion: include on repo BotBuilder-Samples (https://github.com/microsoft/BotBuilder-Samples) an example of such scenario for helping the comunity to achieve a nice initial architecture, since I believe this tends to be a very common use case. I would be willing to contribute.

Aline Ribeiro de Almeida
@alinealfa
@ruchitaharsora it seems the value for SLACK_CLIENT_SIGNING_SECRET is not on the expected format. Could you share the (masked) value you are setting for this variable?