If you’re responsible for sending routine reminders like submitting time sheets or expense reports you can make them a bit more enjoyable with Power Automate Scheduled Messages. Whether it’s a Monday morning boost or a gentle nudge at the end of the week, adding a random GIF can bring smiles and increase engagement.
In this tutorial, you’ll learn how to:
- Set up a scheduled flow in Power Automate
- Add an array of GIF URLs
- Use a random function to pick one each time
- Post the message in Microsoft Teams or send it via email
- Format HTML to embed your GIF properly
Let’s jump into it!
Step 1: Create a Scheduled Flow in Power Automate
- Go to Power Automate and create a Scheduled cloud flow.
- Name it something like “Reminder Emails.”
- Set the recurrence e.g., every Monday at 10:00 AM.
- You can change this to any day or frequency that fits your workflow.
This flow will act as your automation trigger.
Step 2: Initialize a GIF Array Variable
Now, add a new step to Initialize Variable:
- Name:
varRandomGIF - Type:
Array - Value: Add a set of GIF URLs wrapped in quotes and separated by commas.
Example:["https://media.giphy.com/media/abc.gif", "https://media.giphy.com/media/xyz.gif"]
You can grab GIF links from any trusted source like Giphy or Tenor.
Step 3: Use Compose to Pick a Random GIF
- Add a Compose step.
- Use this expression in the Expression tab:
variables('varRandomGIF')[rand(0,length(variables('varRandomGIF')))]
This expression randomly selects a GIF URL from your array.
Step 4: Send the Message in Teams or Email
Option A: Microsoft Teams Message
- Add the Post a message in a chat or channel action.
- Choose to post as Flowbot (or as yourself).
- Target a chat or a channel.
- Click “Code View” and enter this HTML:
<img src="@{outputs('Compose')}" />
This embeds the selected GIF into the message.
Option B: Email Message
- Add the Send an email (V2) action.
- Add recipient(s), subject (e.g., “Happy Monday”), and message body.
- In the email body, switch to code view and paste the same HTML:
<img src="@{outputs('Compose')}" />
That’s it! Power Automate will send a GIF-filled email or Teams message on schedule.
Testing the Flow
Once your flow is built:
- Save and manually test the flow.
- Check your Teams chat or email inbox.
- Repeat a few times to verify it’s picking random GIFs from your list.
You can update your GIF array any time to keep things fresh and seasonal.
Bonus: Add More Automation or Personalization
You can:
- Tailor messages based on department or individual
- Include dynamic content (e.g., first names)
- Use different sets of GIFs for different teams
Final Thoughts
This Power Automate trick is a fun and creative way to boost engagement with automated messages. It’s especially useful for:
- HR and admin teams sending weekly reminders
- Team leads setting a positive tone for the week
- Anyone who wants to bring a little joy to the inbox
Want to go deeper with Power Automate?
Explore Power BI & Power Automate Training
Our on-demand learning platform offers full courses on Power Automate, from beginner to advanced.
Also, check out the Power Automate Beginner to Pro series on YouTube for more hands-on tutorials.
One Last Thing…
Is it pronounced GIF (with a soft “G”) or GIF (with a hard “G”)?
Let us know in the comments and be ready to defend your answer!






