Design a Bot Using Email Automation Activities

This tutorial shows you how to design a simple bot using Email Automation activities for sending an email message through Microsoft Outlook application.

Background

You will use the activities available in Email Automation to create the bot.

Prerequisites

  • Access to ASG Studio Manager.
  • Check the availability of the Microsoft Outlook application on your computer. You need to be logged into Outlook for the bot to perform the task but do not need to keep Outlook open.
  • Add an image file (image.jpg) in the following location: C:\Users\%userprofile%\Pictures\image.PNG.

    You can also use .JPG and .GIF file extension.

Design the Bot

In this section, you design the RPA Model for performing the Web Automation task.

  1. Launch ASG-Studio.
  2. Create an RPA Model. See Create and Design RPA Model.
    Alternatively, you can open an existing RPA Model. If you are using an existing RPA Model click Clear in the Element Toolbar to remove any activities that have been previously added to the visual designer.
  3. In the visual designer, drag Start Event from the element toolbar and drop it on the visual designer. Keep the default activity name.
  4. In the Activities Panel, expand Email Automation, then drag the following activities and drop them onto the visual designer.

    To connect the activity shapes, select the first activity shape, click and hold the Sequence Flow or Association arrow icon, drag the arrow to the other shape, and then click the second activity shape.

    1. Open Outlook: Keep the default activity name.

      Connect Start to Open Outlook.

    2. Compose Email: Keep the default activity name and then define the following properties:
      • To: Main recipient email address, such as recipient@companyname.com
      • CC: Secondary recipient email address.
      • Subject: Test.
      • Attach: C:\Users\%userprofile%\Pictures\image.PNG.
      • Body: Hi Testing.
    3. Connect Open Outlook to Compose Email.

  5. Drag End Event from the Element Toolbar and drop it on the visual designer. Keep the default activity name.

    Connect Compose Email to End Event.

  6. In the Element Toolbar of the visual designer, click Run to execute the RPA Model.
    • When the bot is running, notice that the Outlook application is launched and a new email message is being composed based on the specified properties, and then sent. Navigate to the Sent Items folder to check the sent email message. You can also contact the recipients if they have received the email message with the attachment.
    • A message is displayed in the visual designer after successful completion of the RPA Model execution.