Adaptive Cards for Beginners- Monitor a Hashtag on Twitter
I wanted to work’n’play with Adaptive Cards, which are the future of notifications and I wanted to experiment with the Flow Bot in Microsoft Teams so I tried to figure out how I could monitor a hashtag and post an actionable card into a Channel or a chat into Teams.
For my purposes, I want to monitor the hashtag #LuiseINeedYourHelp on twitter, because I set up an Out-Of-Office Notification in my Outlook:
I’m traveling between conferences to learn and grow and deliver you, my precious customers, most up-to-date value. Can’t catch up on email till xx.xx. Fastest way to reach me is is on Twitter- by the way: I monitor #LuiseINeedYourHelp
The Twitter Trigger
So I started on https://flow.microsoft.com with a new Flow from blank. My trigger is: When a new tweet is posted:
The Adaptive Card Action
My only action is:
Post your own adaptive Card as the Flow Bot to a user:
I wrote my own email-address in the recipients field. After that, I opened https://adaptivecards.io/designer/ and chose Microsoft Teams dark as host app:
Now I removed a elements from the card I don’t wanted to have:
and replaced some text:
The JSON Code
After that, I copied the JSON code and pasted it into my flow-action. Now I began to replace some text of the JSON with dynamic content of my twitter-trigger. Please note that JSON 1.2 is supported.
and
and
Result
Whenever somebody posts #LuiseINeedYourHelp on twitter, I get a private message on MicrosoftTeams in which I can view and open that tweet directly. Works on desktop, web and mobile (Because: If it doesn’t work on mobile, i doesn’t work)
Happy Vacay to me!
Feedback? Questions?
Do you like adaptive Cards? Want to learn more? Please clap if you like more of these posts. If you are more advanced, I’d love to point you to Tomasz Poszytek.
You May Also Like
Office 365 as an IT-only project – what could possibly go wrong?!
Note: I did a session with Michael Roth on based on this blog post at #Office365UGHH — please connect with and follow him as well. If you want to run your Office 365 project like an usual IT project …
Manage your contacts during events with Microsoft Flow
As I travel really often to speak at or just attend conferences, I wanted a smooth workflow to capture contact data of the persons I meet during an event and make sure that I catch up with them later. …
On my way to become a Power User
Maybe you have been following my learning journey on the way to becoming a PowerUser for a while. If not, these articles can help: how it feels to create my very first #MicrosoftFlow working hours …