Transforming Workshop Interactions: Integrating Power Platform for Real-Time Surveys

Transforming Workshop Interactions: Integrating Power Platform for Real-Time Surveys

Recently, while presenting the capabilities of Power Platform to an internal Microsoft team, I constructed a simple, effective solution to underscore its potential. This solution addressed a pressing need of the team: a method for dispersing post-meeting workshop surveys. Rather than resorting to Microsoft forms, I built a demo using Adaptive Cards, employing Chat GPT in my approach. Intriguingly, it took only five minutes to create this solution. (If this process intrigues you, I'm open to writing a detailed post about it—let me know in the comments).

The team noted that the solution "partly" met their requirements. A real game-changer, they suggested, would be the integration of a verbal or message trigger in a meeting to dispatch the survey at a critical juncture, enabling participants to respond directly during the meeting.

While I initially didn't have a solution at hand, the vibrant Power Automate community, established by Ilya Fainberg on WhatsApp, came to my rescue. A member named Chris suggested exploring the "When a new chat message is added" trigger in Microsoft Teams. This idea led me on an exciting journey of experimentation, which I'd like to share with you, as I believe it can truly revolutionize the way you automate your meetings.

Setting up the Trigger

No alt text provided for this image
Setting up the chat message trigger

This trigger is fairly straightforward; it detects when a new chat message is added by the person who has initiated this trigger. In this scenario, it will look for all new chat messages sent to me.

Getting the message detail

Utilizing the trigger, I can implement an action— in this instance, "Get message details." This process will be invoked each time a new chat message is added. Here, I can designate the area where the flow will be active and select a message type and place where this message should be set. As per the requested example, this could be applied to the Group Chat of an upcoming meeting or workshop.

No alt text provided for this image
Fetching message details and setting conditions

Tidying up the message and creating a condition

Having honed in on the source of the message, I can now extract its content to create a condition. This condition can initiate a particular action based on the content of a group message. For instance, if the speaker inputs "#1" during the meeting, the condition is validated, and the associated action will be triggered.

No alt text provided for this image
Message condition setup

This works! :-)

Posting the survey / measure in the meeting

Now that the condition has been set, I can devise an action that fulfills the team's request. For the sake of this experiment, I asked ChatGPT to generate the Adaptive Card manifest for a quick survey.

? "type": "AdaptiveCard",
? "version": "1.2",
? "body": [
? ? {
? ? ? "type": "TextBlock",
? ? ? "text": "Survey",
? ? ? "weight": "bolder",
? ? ? "size": "medium"
? ? },
? ? {
? ? ? "type": "TextBlock",
? ? ? "text": "Please take a moment to answer the following questions:",
? ? ? "wrap": true
? ? },
? ? {
? ? ? "type": "Input.Text",
? ? ? "id": "name",
? ? ? "label": "Name"
? ? },
? ? {
? ? ? "type": "Input.ChoiceSet",
? ? ? "id": "gender",
? ? ? "label": "Gender",
? ? ? "choices": [
? ? ? ? {
? ? ? ? ? "title": "Male",
? ? ? ? ? "value": "male"
? ? ? ? },
? ? ? ? {
? ? ? ? ? "title": "Female",
? ? ? ? ? "value": "female"
? ? ? ? },
? ? ? ? {
? ? ? ? ? "title": "Other",
? ? ? ? ? "value": "other"
? ? ? ? }
? ? ? ]
? ? },
? ? {
? ? ? "type": "Input.Number",
? ? ? "id": "age",
? ? ? "label": "Age",
? ? ? "min": 0,
? ? ? "max": 120
? ? },
? ? {
? ? ? "type": "Input.Toggle",
? ? ? "id": "subscribe",
? ? ? "title": "Subscribe to newsletter",
? ? ? "valueOn": "true",
? ? ? "valueOff": "false"
? ? }
? ],
? "actions": [
? ? {
? ? ? "type": "Action.Submit",
? ? ? "title": "Submit"
? ? }
? ]
}

{        
No alt text provided for this image

Subsequently, I was able to collect the responses from the quick survey and save them in a database for future reference.

No alt text provided for this image

Here's a glimpse of what this process looks like in action, demonstrated via a GIF. (hit #1, Adaptive Card presented, Enter survey, Hit submit)

No alt text provided for this image

If you have any comments / feedback / suggestions I'd love to hear your thoughts!


Mike Gowland

Senior Power Platform Consultant | Co-Host of Sprint Zero Podcast

1 年

Keeping this in my back pocket, what a great idea! Thanks for sharing :D

Stefanie Meister

Industry Advisor - Worldwide Public Sector - Defense & Intelligence, Microsoft

1 年

Wow, Peter Maynard It’s incredible!

要查看或添加评论,请登录

Peter Maynard的更多文章

社区洞察

其他会员也浏览了