Event triggers to call a skill
🚨 The issue tracker is not for questions 🚨
If you have a question, please ask it on Stack Overflow https://stackoverflow.com/questions/tagged/botframework
Is there an example for call a skill using event trigger? Have I to add skillEvent,json to the virtual assistant and if yes where? It's possible to specify event and utterance trigger for the same skill activity?
So in terms of calling a skill with an event, you need to have a contract with the skill on the set of events that they can understand. however the goal is that the skills are public skills that are owned by different developers which means there's no way you can ask a skill to support various events. The right way to support what you're trying to achieve is to use SemanticAction. It is a property under the Activity schema and you could specify and Action name to tell the skill that you just want to call that particular action. However we do not have support for the moment in our Microsoft.Bot.Builder.Skills library. We're currently working on it. We're targeting it to be released in September release.
Hi Ted, I know you aqre working to semantic actions and seems very interesting. But as far I know in the manifest youcan specifiy events to trigger actions and. In my ming, this should be the way you can call a specigic action. Is this approach obsolete? Thanks
From: Ted [email protected] Sent: giovedì 15 agosto 2019 20:50 To: microsoft/botframework-solutions [email protected] Cc: Ugo Castellani [email protected]; Author [email protected] Subject: Re: [microsoft/botframework-solutions] Event triggers to call a skill (#2101)
So in terms of calling a skill with an event, you need to have a contract with the skill on the set of events that they can understand. however the goal is that the skills are public skills that are owned by different developers which means there's no way you can ask a skill to support various events. The right way to support what you're trying to achieve is to use SemanticAction. It is a property under the Activity schema and you could specify and Action name to tell the skill that you just want to call that particular action. However we do not have support for the moment in our Microsoft.Bot.Builder.Skills library. We're currently working on it. We're targeting it to be released in September release.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fbotframework-solutions%2Fissues%2F2101%3Femail_source%3Dnotifications%26email_token%3DAA77TTWIC7FMLYHO7WQKOCLQEWQMFA5CNFSM4ILEBSKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4MVHSA%23issuecomment-521753544&data=02%7C01%7C%7C8f69205e1fb741271a8c08d721b153b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637014917796534996&sdata=ZnVn1ku9lQ619OoVKIzH3uEP6XKW%2F4%2BXdQqYcE0GGV4%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA77TTQDU56PM5QRTKUNSY3QEWQMFANCNFSM4ILEBSKA&data=02%7C01%7C%7C8f69205e1fb741271a8c08d721b153b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637014917796545005&sdata=QKZiG41Djdn%2FfItlHc4bAup2z1M99H0t62SjcZOgvZk%3D&reserved=0.
I don't believe you can trigger action by event in manifest. can you point me to where it says that's possible?
Hi Ted, This is officially described in the documentation: Specifically: https://microsoft.github.io/botframework-solutions/reference/skills/skillmanifest/ Also you can find an example of event usage in the manifest for calendar skill where it is used for the calendarskill_summary that is triggered by summaryEvent. So my problem is that I didn’t find an example where I can used it: client, virtual assistant and skill. And, more specific, what I have to do at VA level.I try to do it by myself but seems that it doesn’t work.
From: Ted [email protected] Sent: venerdì 16 agosto 2019 21:07 To: microsoft/botframework-solutions [email protected] Cc: Ugo Castellani [email protected]; Author [email protected] Subject: Re: [microsoft/botframework-solutions] Event triggers to call a skill (#2101)
I don't believe you can trigger action by event in manifest. can you point me to where it says that's possible?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fbotframework-solutions%2Fissues%2F2101%3Femail_source%3Dnotifications%26email_token%3DAA77TTSYZQYD2EHC4554PELQE33GVA5CNFSM4ILEBSKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4POOVY%23issuecomment-522118999&data=02%7C01%7C%7C6a4b5c2ee5754bf0eebf08d7227cf7d4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637015792432341807&sdata=6qGB%2BWKHib%2BaBL7%2BViH3TKMopqRRPIgUUaS8ld0rvrI%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA77TTSHJDUFYGRMCBPQNT3QE33GVANCNFSM4ILEBSKA&data=02%7C01%7C%7C6a4b5c2ee5754bf0eebf08d7227cf7d4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637015792432351812&sdata=EN9HvDlCrYdoy9t0JzH1g%2BwqtjMZc80b%2FPjFidB5MfA%3D&reserved=0.
I see. That documentation is obsolete and should be corrected. Essentially we don't allow event triggers any more for actions. instead you should be filling the SemanticAction property of the Activity with the action name and then the skill will be able to invoke the corresponding action on the skill side. I'll fix the documentation. In the meantime, the Microsoft.Bot.Builder.Skills library that will support easy invocation of an action on a skill will be released in the next version.
Documentation removed. Closing the issue
I see. That documentation is obsolete and should be corrected. Essentially we don't allow event triggers any more for actions. instead you should be filling the SemanticAction property of the Activity with the action name and then the skill will be able to invoke the corresponding action on the skill side. I'll fix the documentation. In the meantime, the Microsoft.Bot.Builder.Skills library that will support easy invocation of an action on a skill will be released in the next version.
would you please redirect us to the correct documentation of passing semantic action of the activity to skill and skill invoing the action. can we do the other way as well passing semantic action from skill to VA? appreciate your help. @lzc850612 - any help