cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Re: Can't connect my PVA to the Skill

@ArafatTehsin - You're welcome. Return thanks to you for blogging about Skills and guiding others who may struggle similar to you.

 

>> https://www.arafattehsin.com/empower-your-existing-power-virtual-agents-with-bot-framework-skills-%f...

 

-Pawan

Highlighted
Frequent Visitor

Re: Can't connect my PVA to the Skill

Still facing the same problem even with the manifest you provided., but this time getting a different error (Error(1): Something went wrong while validating your skill.)

 

Pls note that this time I'm trying to add the calendar skill from the repo (https://github.com/microsoft/botframework-solutions/tree/master/skills/csharp/calendarskill) to my PVA

 

I'm also providing my json manifest below for your reference

 

{
  "$schema": "https://schemas.botframework.com/schemas/skills/skill-manifest-2.0.0.json",
  "$id": "CalendarSkill",
  "name": "Calendar Skill",
  "description": "The Calendar skill provides calendaring related capabilities and supports Office and Google calendars.",
  "publisherName": "Microsoft",
  "version": "0.8",
  "copyright": "Copyright (c) Microsoft Corporation. All rights reserved.",
  "tags": [
    "calendar",
    "skill"
  ],
  "endpoints": [
    {
      "name": "production",
      "protocol": "BotFrameworkV3",
      "description": "Production endpoint for the Calendar Skill",
      "endpointUrl": "https://{Our endpoint URL}/api/messages",
      "msAppId": "{Our App Id}"
    }
  ],
  "activities": {
    "passthroughMessage": {
      "type": "message",
      "description": "Receives the users utterance and attempts to resolve it using the skill's LU models"
    }
  }
}

 

P.S.I've also added the AllowedCallers parameter in appsettings.json with the PVA ID

 

Any help will be appreciated.

Highlighted
Advocate II
Advocate II

Re: Can't connect my PVA to the Skill

Hi @csnarain - That's sad. Can I give you one more pointer as I just got my skill re-added again.


I was trying to debug it locally and forgot to update the Home Page URL in App Registration (please see attached) under Azure AD. 

 

I fixed and it worked like a charm! 

Highlighted
Frequent Visitor

Re: Can't connect my PVA to the Skill

@ArafatTehsin- I finally managed to fix it. I have no clue on what exactly fixed it but somehow I was able to add the skill now :-). Thanks a lot for all your help. The next big task I have is to integrate the calendar skill bot (https://github.com/microsoft/botframework-solutions/tree/master/skills/csharp/calendarskill) with PVA. Unfortunately the skill doesn't do anything. If I try to add in the full manifest file from this repo and add the skill to PVA, it doesn't accept it. To sum it up, the skill is now added to PVA but doesn't do anything. Any thoughts are much appreciated.

Highlighted
Advocate II
Advocate II

Re: Can't connect my PVA to the Skill

That's good news! @csnarain - I would request you to to do this first (we'll talk about Calendar Skill later on)

 

Did you get 0 input 0 output when your skill was added? If that's the case then replace your activities and add this. Try and let me know. 🙂 

 

"activities": {
   "message": {
     "type": "message",
     "description": "Receives the user's' utterance and attempts to resolve it using the skill's LU models",
     "value": {
       "$ref": "#/definitions/accountNumber"
     }
   }
 },
 "definitions": {
   "accountNumber": {
     "type": "object",
     "required": [
     ],
     "properties": {
       "locale": {
         "type": "string",
         "description": "The current user's locale ISO code"
       }
     }
   }

 

Highlighted
Frequent Visitor

Re: Can't connect my PVA to the Skill

@ArafatTehsin- Thanks for all your help. It finally worked. I enabled the Calendar skill as well in PVA. Here is the manifest file that actually worked at my end (both for calendar skill and other skills).

 

 

{

  "$schema": "https://schemas.botframework.com/schemas/skills/skill-manifest-2.0.0.json",

  "$id": "CalendarSkill",

  "name": "Calendar Skill",

  "description": "The Calendar skill provides calendaring related capabilities and supports Office and Google calendars.",

  "publisherName": "Microsoft",

  "version": "0.8",

  "copyright": "Copyright (c) Microsoft Corporation. All rights reserved.",

  "tags": [

    "calendar",

    "skill"

  ],

  "endpoints": [

    {

      "name": "production",

      "protocol": "BotFrameworkV3",

      "description": "Production endpoint for the Calendar Skill",

      "endpointUrl": "{Our URL}/api/messages",

      "msAppId": "{Our App ID}"

    }

  ],

  "activities": {

    "message": {

      "type": "message",

      "description": "Receives the users utterance and attempts to resolve it using the skill's LU models"

    }

  }

}

 

Highlighted
Advocate II
Advocate II

Re: Can't connect my PVA to the Skill

Cheers @csnarain. I'm happy that it worked! 

Highlighted
Frequent Visitor

Re: Can't connect my PVA to the Skill

Thanks @pawan-msft and Team for this. 💪 Can you share with us "Book a Flight" skill Bot code? It´s a good example of multiturn skill with input and output with adaptive card. it would be very useful to see it and try to implement it in PVA. Thanks!!

Highlighted

Re: Can't connect my PVA to the Skill

You're welcome! Unfortunately, I will need to go through legal approvals prior to sharing code. But if I understand your intent, you are looking to deploy sample Skills that show the power of Skills running within Power Virtual Agents. If so, I would recommend deploying one of the several open sourced Skills that our amazing Bot Framework Solutions team has written,

>> https://github.com/microsoft/botframework-solutions/tree/master/skills/csharp

Each of these Skills have been upgraded and contain manifest version 1.0 (in wwwroot) that work out of the box with PVA.

All the best! Let us know how you fare.

-Pawan
Highlighted
Frequent Visitor

Re: Can't connect my PVA to the Skill

Thanks @pawan-msft 👏

 

Awesome Teams! Colaborating together!!

Helpful resources

Announcements
PVA Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

PVA-BotVariablesMulti-Language

PVA Bot Variables, Multi-Language

Check out this Power Virtual Agents-Bot Variables, Multi-Language and working a Solution to learn more

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Top Solution Authors
Top Kudoed Authors
Users online (8,224)