Exercise - Send an email when a tweet is posted

You can create a flow that automatically performs one or more actions after it's triggered by an event. For example, the flow can notify you by email when someone posts a tweet that includes a keyword that you specify. In this example, posting a tweet is the event (also known as a trigger), and sending an email notification is the action. In this unit, you'll learn how to create this example flow.

Prerequisites

Specify an event to start the flow

First, you must select the trigger (event) that starts the flow.

  1. Sign in to Power Automate by using your organizational account.

  2. Select My flows.

  3. Select New, and then select Automated--from blank.

  4. Under Choose your flow's trigger, enter twitter, select the Twitter - When a new tweet is posted trigger and select Create.

    Twitter - When a new tweet is posted trigger

  5. If you haven't already connected your Twitter account to Power Automate, select Sign in to Twitter, and then enter your credentials.

  6. In the Search text box, enter the keyword to find.

Specify an action

  1. Select New step, and in the search field, enter send email, and then select the Office 365 Outlook - Send an email action.

    Office 365 Outlook - Send an email action

  2. If you're prompted to sign in, select the sign-in button, and then enter your credentials.

  3. In the To field, enter or paste your email address, and then select your name in the list of contacts that appears.

  4. In the Subject field, enter New tweet from: followed by a space.

  5. In the list of dynamic content, select the Tweeted by token to add a placeholder for it.

    Tweeted by token

  6. Select the Body field, and then, in the list of dynamic content, select the Tweet text token to add a placeholder for it.

  7. Optional: Add more tokens, other content, or both to the body of the email.

  8. Select Save to save the flow.

  9. Post a tweet that includes the keyword that you specified, or wait for someone else to post such a tweet.

    Within a minute after the tweet is posted, an email message will notify you of the new tweet.