cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArafatTehsin
Resolver I
Resolver I

Can't connect my PVA to the Skill

Hi folks

 

I created a skill using Bot Framework 4.7 SDK with the manifest 2.0. When I try to connect to my skill with Bot Framework bot, it works very well. However, upon connecting it with PVA, it gives me an error (which is super unfriendly).

 

Issue.png

Environment / Tenant Setup

 

It's a trial environment with PVA and the same tenant is also has a trial for Azure to create the Bot registration process.

 

P.S Also, please note that the Bot Framework Bot I tried with Skill was on a different tenant and even then it was working fine.

31 REPLIES 31

@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

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.

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! 

@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.

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"
       }
     }
   }

 

@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"

    }

  }

}

 

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

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!!

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

Thanks @pawan-msft 👏

 

Awesome Teams! Colaborating together!!

Helpful resources

Announcements
March Update

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Virtual Agents innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

New Super Users

Meet the Power Virtual Agents Community Super Users!

Congratulations to our Season 1 2021 Super User Crew!

Top Solution Authors
Top Kudoed Authors
Users online (42,400)