Skip to main content

Notifications

Publish & Channel Management
Answered

Can't connect my PVA to the Skill

Posted on by 189

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.

  • kishanhickman Profile Picture
    kishanhickman 2 on at
    Re: Can't connect my PVA to the Skill

    Hi There,

     

    I have an issue which is very much related to this but not quite the same.  I have a skill that works fine in the latest version of Composer as well as directly in Azure when you test with the test feature.

    I have created a skill manifest and this adds and validates perfectly fine in my PVA.  However, when I add it as an action and test it, I get aa default error message 'Sorry I didnt understand that'

    kishanhickman_2-1654096919228.png

     

     

    I have added the botid to the allowed list of my skill bots appsettings as per below

    "skills": {
    "allowedCallers": [
    "*"
    ]
    },

    I dont seem to get any error messages or anything meaningful which explains why the bot is not invoking correclty.  It takes 3 non-required parameters which aren't needed to fire up the bot as per below manifest 

    Any help would be greatly appreciated

    {
     "$schema": "https://schemas.botframework.com/schemas/skills/v2.2/skill-manifest.json",
     "$id": "ParkingMax",
     "name": "Parking Max",
     "version": "1.0",
     "publisherName": "Microsoft",
     "endpoints": [
     {
     "name": "default",
     "protocol": "BotFrameworkV3",
     "description": "Default endpoint for the skill",
     "endpointUrl": "https://parkingmax.azurewebsites.net/api/messages",
     "msAppId": "170c9cdd-9e3f-4e52-b511-8b47f592a86f"
     }
     ],
     "activities": {
     "message": {
     "type": "message",
     "description": "Parking Max",
     "value": {
     "$ref": "#/definitions/initValues"
     }
     }
     },
     "definitions": {
     "initValues": {
     "type": "object",
     "required": [
     "origin"
     ],
     "properties": {
     "clientid": {
     "type": "string",
     "description": "160"
     },
     "module": {
     "type": "string",
     "description": "ParkingMax"
     },
     "domain": {
     "type": "string",
     "description": "bpademo.co.uk"
     }
     }
    }



  • Re: Can't connect my PVA to the Skill

    @csnarain was this calendar skill hosted locally when you got this working?

  • jojinovels Profile Picture
    jojinovels 12 on at
    Re: Can't connect my PVA to the Skill

    Hi!

    I am a new Virtual Assistant. And love to learn and explore more. Thanks for posting.

    I am also looking for a Client to help and manage.

    Please free to visit my Website.

    https://jojinovels.wixsite.com/meinewebsite

     

    Thank you.

     

    Regards,

    jojinovels

  • ImanolIza Profile Picture
    ImanolIza 10 on at
    Re: Can't connect my PVA to the Skill

    Thanks @pawan-msft 👏

     

    Awesome Teams! Colaborating together!!

  • pawan-msft Profile Picture
    pawan-msft on at
    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
  • ImanolIza Profile Picture
    ImanolIza 10 on at
    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!!

  • Arafat Profile Picture
    Arafat 189 on at
    Re: Can't connect my PVA to the Skill

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

  • csnarain Profile Picture
    csnarain 37 on at
    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"
    
     }
    
     }
    
    }

     

  • Arafat Profile Picture
    Arafat 189 on at
    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"
     }
     }
     }

     

  • csnarain Profile Picture
    csnarain 37 on at
    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.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,006

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics