Imagine a support automation scenario where you want to send an email notification whenever someone fills out a form. Instead of tackling the entire complex process right away, we'll start by creating an automation that sends a basic email notification. Let's proceed step by step.
Hello World Automation Exercises
Follow these steps to build your first Hello World automation!
Step 1: Create a Basic Form to Enter a Message
Add a Form
Go toAutomations → Forms in the menu.
ClickAdd at the top right to add a new Form.
TypeHello World Form for the name.
Click Submit.
Add a Text Input field
Drag and Drop a Text Input field.
Click on the field to open the field settings.
Type "send_message" for the Field Name.
Replace the default Field Label text with "Send Message".
Type "Type in a message to send here" for the Field Description text.
Click the Required checkbox.
Save the form
Click the Save button at the top right of the form builder.
ClickSubmit on the pop-up to confirm.
Step 2: Build a Workflow to Send an Email
Create a New Workflow
Go toAutomations → Workflows in the menu.
ClickCreate at the top right to add a new Workflow.
TypeHello World Workflow for the name.
Click Submit.
Add the Starting Noop Action to the Canvas
Open the Core section in the left Actions menu.
Drag and Drop the noop action to the Workflow Canvas.
Replace the default core_noop name with send_message.
Type "This action starts the workflow" for the Description.
Add a sendmailAction to Send the Message
Open the Core section in the left Actions menu if it's not already open.
Drag and Drop the sendmail action to the Workflow Canvas.
Replace the default core_sendmail name with to_email.
Type "This action sends the email" for the Description.
Type the following for the next several fields:
Sender: noreply@rewst.io
Recipient: Your own email
Subject: Hello World
title: This is a Test
Add Basic Jinja to Reference the Form Input.
Click on the Jinja editor button next to the message field.
Type the following to reference what we type in the form:
{{ CTX.send_message }}
Close the editor.
Create a Transition
Click and Drag the transition from the noop action to the sendmail action.
To do this, you will need to hover over the gray circle under the On Success section of the noop action.
Publish to Save the Workflow
ClickPublish to save the Workflow.
ClickSubmit on the pop-up to confirm.
Step 3: Connect the Form to the Workflow with a Trigger
Add a Form Trigger
Click the Add Trigger button at the top menu.
Type "Hello World Trigger" in the Name field.
Click the Enabled slider.
ChooseCore - Form Submission for the Trigger Type.
You can type form to see the option.
Choose the Hello World Form form under Trigger Parameters → Form.
Click Submit at the bottom.
Save the Workflow
ClickPublish to save the Workflow with the new Trigger and Configuration.
ClickSubmit on the pop-up to confirm.
Step 4: Send a Message!
View the Form URL
Click the View Direct URLs button next to Dynamic Form URL.
If the Trigger isn't still open then click Edit Trigger at the top menu next to our Form Trigger
Click on the link.
Send Hello World!
Type "Hello World!" in the form field.
ClickSubmit.
Conclusion
Congratulations! You've just built your first automation—an email notification triggered by form submission. While this example is simple, it showcases the essence of automation and sets the stage for more complex workflows.
Feel free to explore other available actions and continue building your automation skills. Your journey into automation has just begun, and we're excited to see what incredible automation you'll create in the future.