Using actions in workflow

Create a workflow that sends an email notification through Gmail whenever a new card is created in your Trello account.

Before you begin

Configure the Trello - New Card trigger. For more information, see Adding triggers.

Procedure

  1. Search for the Gmail connector in the action panel, drag it onto the canvas. You see that it gets automatically connected to the Trello - New Card trigger.
  2. Connect the Gmail connector to the Stop icon to complete your workflow.
  3. Configure Gmail - Send an Email action by double-clicking the Gmail icon. In the action configuration window, enter the required details:
    1. Select Action- Select Send an Email action from the list.
    2. Label- Provide a suitable name for the action (for example, Send an Email).
    3. Authorize Gmail- Select the account that you want to use to run the action from the list. If you have not created an account yet, click the + icon.
  4. Enter the keys that are required to create the Gmail authorization.
  5. Click Save. The Gmail account is added.
  6. Click Next. In the action configuration window, enter the required details:
    1. To- Enter the email ID of the user to whom you want to send the email.
    2. Subject- Any subject of your choice.
    3. Body- You can use the output of the trigger as an input for this field. The output of the trigger is visible under the {trigger_name} - Trigger Data field. Clicking the list next to the trigger name displays the list of trigger output keys, along with the sample output values that are retrieved from the previous trigger test execution.
  7. From the trigger output list, select the text parameter for the Body field. It includes the content (text) of the tweet in the body of the email when the workflow is run.
    Note: Provide values to all the mandatory fields when you configure an action. You can also provide values for non-mandatory fields based on your requirements.
  8. Click Next. You are redirected to the Test action window where you can check whether the action is working as expected before running the workflow.
    Note: Testing a logger action or any other action is supported up to 10 MB. If you test with data greater than 10 MB, you get a message size too large error.
  9. Click Done. You are redirected to the canvas.
    Note: Click Webhook payload and log data for more information about the action input/output log data support.

Results

The action is successfully set up. Now, click Save to save the workflow.

What to do next

Verify whether the workflow is running as expected, by creating a new card in your Trello account. It triggers your workflow and sends the notification to the specified email address through Gmail.