web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / PVA Send activity or e...
Copilot Studio
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?

I have the same question (0)
  • Jameslew_MSFT Profile Picture
    on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 197 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard