Automating actions when users submit forms on your website can save time and improve efficiency—whether you're capturing leads, creating tasks, or managing email subscriptions.
However, not all website forms trigger automation actions. For example, a standard newsletter form won’t trigger automation rules. Instead, you should use the Form Block
, which offers greater flexibility in field customization, default values, and triggers automation rules.
In this post, we’ll continue with our email sequences automation example from How to Create Fully Automated Email Sequences article, focusing on how to trigger an email sequence immediately after a user subscribes, eliminating the need for scheduled actions.
Step 1: Setting Up the Subscription Form
To ensure automation triggers work, we’ll configure a Form Block
instead of a basic newsletter block. Here’s how:
- Go to your website editor and select the Form Block.
- Set the action to "Subscribe to Newsletter."
- Customize your form layout.
- Define the form fields (e.g., Name and Email), ensuring they are mapped to the correct model fields.
- Add the
Mailing List
selection field, if it’s not already included in the form:- Set the default value to the list you want (e.g., AI Course).
- Hide the field if you don’t want users to view or change the list.
- Add a specific tag for subscribers from this form:
- Add a new field to the form.
- Map the field to the
Tags
field in theMailing Contact
model. - Set the default tag to be applied on submission (e.g., AI Course).
- Hide the field if you don’t want users to modify it.
Now, when users submit this form, they’ll be added to the specified mailing list and tagged with the correct tag.
Step 2: Creating the Automation Rule
Next, we’ll set up an automation rule that triggers when a new subscriber is tagged.
-
Create a new Automation Rule and set the model to
Mail Contact
. -
Set the trigger to
When a tag is added
(use the same tag from the form, e.g., "AI Course"). -
Add additional filters to target the right subscribers—for example,
Mailing List Name = AI Course
. -
Add two
Execute Code
actions:
- The first action adds the subscriber to the email sequence:
- The second action triggers the flow instantly:
Final Thoughts
With this setup a new subscribers are automatically added to your email sequence and the first email is triggered immediately—no waiting for scheduled jobs.
By using Form Blocks
and automation rules, you can streamline workflows and ensure instant responses to user actions.