Skip to main content


Topic Creation & Management

How to Add Count function For pending messages In PWA for Chatbot?

Posted on by

Hello All,

I created a chatbot and integrate into the canvas app through Power Bi, so  I have one Label And I want to add pending messages from the chatbox on that label.


  • renatoromao Profile Picture
    renatoromao 6,762 on at
    Re: How to Add Count function For pending messages In PWA for Chatbot?

    Hi @Sohil_kazi ,


    Great use-case! 🙂

    If you are using PVA inside Power Apps means that you are using the iFrame with PCF.

    In that case, you can use external variables to pass values from Power Apps to your PVA bot.

    Use chatbot variables to carry content across topics - Power Virtual Agents | Microsoft Docs


    But if you want to apply a custom query or something like that using this variable inside the PVA bot, you will need to pass this variable to your Power Automate workflow using actions and return it as an output.

    Automate chatbot actions with flows - Power Virtual Agents | Microsoft Docs

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…


WarrenBelz Profile Picture

WarrenBelz 137,998

RandyHayes Profile Picture

RandyHayes 76,308

Pstork1 Profile Picture

Pstork1 63,059


Featured topics