DEV Community

El Bruno for Microsoft Azure

Posted on • Originally published at elbruno.com on

#PowerAutomate – Flow to use Open Trivia Database questions in a Microsoft Teams bot 🤖 5/N

PowerAutomate – Flow to use Open Trivia Database questions in a Microsoft Teams bot 🤖 Series

Hi !

Now that we have the core steps to request a Trivia question from the API, send the question to a user and process the user’s answers, let’s work on the trigger.

My final idea is to use a trigger from Teams, then validate that the message body contains the words ‘start trivia’ and, if the condition is not matched, stop the flow.

My final idea is to use a trigger from Teams, then validate that the message body contains the words 'start trivia' and, if the condition is not matched, stop the flow

There are plenty of triggers for Microsot Teams, I may try other scenarios later. Now, the [When a new channel message is added] is the one for me.

triggers for Microsot Teams

I created a new channel named [Trivia] in my lab environment, so using I’ll work on this one.

selecting team and channel in the trigger

On the condition step, I needed to convert to string the message body and the string “start trivia”. Otherwise the stop condition won’t work.

And, when the condition is not meet, I use a [Terminate] step to stop the flow.

We are almost there ! However, we can improve still this flow a lot 😀

And important: Join me in this 2-week FREE program @msftreactor

and we will learn together about Microsoft Power Pages.

We will also cover fundamentals of Power Pages architecture, components, features, and tooling.

https://aka.ms/DecPowerPagesBootcamp

Starting on Dec 05

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.


Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay