Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Building Copilot Studio Chatbo...
Unanswered

PVA Send activity or event to get user device type

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I trying to figure out how to use these advanced options in PVA, there is lack of documentation (or maybe I just missed it?) on how these options actually work. Take, for instance, the 'Send an activity' feature.

 

Introduced by @Jameslew_MSFT:

 

 

Ability to send raw Bot Framework Activities and Events directly within Power Virtual Agents

 

 

Have anyone done anything with Bot Framework activities in PVA and can give me an example of how it works?

 

danielch_0-1692094037403.png

 

For example what I would like to get and I can't find solution:


When a user sends a message to our PVA bot in Teams, I would like to know what type of device they are using. Specifically, I want to know if they are on a mobile phone or a desktop computer. This information will help me to decide how to display tables in the chat. Tables can be difficult to read on mobile phones, so I want to add some additional logic to my bot if the user is chatting from a mobile device.
I didn't found anything from 'System' variables that could be sent back to Power Automate for example (also, I tried to see in Power Automate what comes from PVA in 'Headers' like user-agent but the user-agent is always PowerVA/2 from all devices) and maybe this can be accomplished from Bot Framework with activities or any other solution?

  • Jameslew_MSFT Profile Picture
    on at
    Re: PVA Send activity or event to get user device type

    This would depend on what client you're using.  If you're using directline/webchat, you could do your own device inspection on the cilent side, and then pass that data to your bot through an event or maybe through the channelData field on your activity.

    If you're using a client such as Teams or Facebook Messenger, we don't have access to that information about the client, and since you can't modify the client I'm not sure that's a feasible option.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics