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.


Top comments (0)