Skip to main content

Notifications

Building Copilot Studio Chatbots in Microsoft T...
Unanswered

Adding PVA CoPilot in MS teams inside Specific channel

Posted on by 8

Hi,
I have created a PVA CoPilot bot to save the user input in a sharepoint site. I have published the bot to MS teams as an app. But how can I add this bot to specific teams channel?

  • AnnaJMoy Profile Picture
    AnnaJMoy 8 on at
    Re: Adding PVA CoPilot in MS teams inside Specific channel

    @nesrivastava @v-yueyun-msft 
    Following up on the above query.

  • AnnaJMoy Profile Picture
    AnnaJMoy 8 on at
    Re: Adding PVA CoPilot in MS teams inside Specific channel

    Thanks @nesrivastava for the response. Added the power app as a tab in the teams channel.
    Before clicking the button : (Added the title and description)

    AnnaJMoy_0-1715170973861.png

    After Clicking the "Skip and Submit" Button: The data that was entered has disappeared.

    AnnaJMoy_1-1715171066108.png


    Adaptive Card Json which integarted in the PVA:

    {
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
     
             {
                "type": "TextBlock",
                "text": "Please add the title and description to start submitting the idea. If you wish to add more details, click the '+' option.",
                "wrap": true
            },
            {
                "type": "Input.Text",
                "label": "Idea Title",
                "id": "IdeaTitle",
                "isRequired": true,
                "errorMessage": "Idea Title is required",
                "placeholder": "Enter your idea title"
            },
            {
                "type": "Input.Text",
                "label": "Idea description/Problem Statement",
                "style": "text",
                "isMultiline": true,
                "id": "Ideades",
                "isRequired": true,
                 "errorMessage": "Idea description/Problem Statement is required",
                "placeholder": "Enter Idea description/Problem Statement"
            } ,
        {
          "type": "Container",
          "items": [
            {
              "type": "TextBlock",
              "text": "Click \"+\" to show more and if you like to submit without adding more detail, please click the Skip And Submit option.",
              "wrap": true
            },
            {
              "type": "ActionSet",
              "actions": [
                {
                  "type": "Action.ToggleVisibility",
                  "title": "+",
                  "targetElements": ["valueButton", "benefitsButton", "relevanceButton", "minusButton"]
                },
               
                  {
                    "type": "Action.Submit",
                    "title": "Skip And Submit",
                    "data": {
                      "id": "skipandsubmit"
                    }
                  }
              ]
            },
            {
                "type": "ActionSet",
                "id": "valueButton",
                "isVisible": false,
                "actions": [
                  {
                    "type": "Action.Submit",
                    "title": "Value",
                    "data": {
                      "id": "value"
                    }
                  }
                ]
            },
            {
                "type": "ActionSet",
                "id": "benefitsButton",
                "isVisible": false,
                "actions": [
                  {
                    "type": "Action.Submit",
                    "title": "Benefits",
                    "data": {
                      "id": "benefits"
                    }
                  }
                ]
            },
            {
                "type": "ActionSet",
                "id": "relevanceButton",
                "isVisible": false,
                "actions": [
                  {
                    "type": "Action.Submit",
                    "title": "Relevance",
                    "data": {
                      "id": "relevance"
                    }
                  }
                ]
            }
           
           
          ]
        }
       
    ]
    }




  • nesrivastava Profile Picture
    nesrivastava on at
    Re: Adding PVA CoPilot in MS teams inside Specific channel

    can you share the screenshot of your scenario and the adaptive card JSON. 

  • AnnaJMoy Profile Picture
    AnnaJMoy 8 on at
    Re: Adding PVA CoPilot in MS teams inside Specific channel

    @nesrivastava @v-yueyun-msft 
    Following up on the above query. Please let me know if you have any information on the same

  • AnnaJMoy Profile Picture
    AnnaJMoy 8 on at
    Re: Adding PVA CoPilot in MS teams inside Specific channel

    @nesrivastava @v-yueyun-msft 

    I'm utilizing the chatbot preview feature in Power Apps canvas to display a chat application, which I've integrated as a tab within Microsoft Teams.
    I've encountered a challenge where the adaptive card forms within the chatbot do not retain the inputted information after a button is clicked. Although the entered data is successfully stored as global variables in Power Virtual Agents, the form fields reset and no longer display the previously entered values. Is there a method to preserve the data within the form fields post-button click, ensuring that the information remains visible to users?

  • nesrivastava Profile Picture
    nesrivastava on at
    Re: Adding PVA CoPilot in MS teams inside Specific channel

     Yes, unfortunately, can't add in the channel. The chat bot will be appear inside the apps on Teams and not inside the channel, so you can share using the documentation to other users inside your organization, you just adding as a member of a team.

    https://docs.microsoft.com/en-us/power-virtual-agents/teams/admin-share-bots-teams#share-bots

    @AnnaJMoy

  • Re: Adding PVA CoPilot in MS teams inside Specific channel

    Hi , @AnnaJMoy 

    The PVA bot seems can not embed to the special team channel.

    As searched , you may need to refer to this:
    Create Teams conversation bot - Teams | Microsoft Learn

    DEMO - Bots in Microsoft Teams channels and group chats (youtube.com)

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics