Hustle Action

Add Hustle actions to a Zaplane workflow to add someone to a module’s email list, look a subscriber up, and switch modules on or off. This guide uses Add Subscriber to Local List as the example.

Make sure Hustle or Hustle Pro is installed and active on your site before you begin. Zaplane works with either one. Only one of them can be active at a time.

Set Up a Trigger First

Go to Zaplane > Workflows in your WordPress dashboard, then click Create Workflow to open the workflow editor.

Before adding a Hustle action, you need to set up a trigger first. Here is how to do it quickly:

1.Click Select an app in the Trigger box and choose Apps.
2.Search for and select your trigger app.
3.Choose the Trigger Type that matches the event you want, then click Continue.
4.On the Configure tab, set any required options, then click Continue.
5.On the Test tab, click Test Trigger to confirm it works, then click Save.

Once the trigger is saved, add theHustle action. To use Hustle as the trigger instead, see Hustle trigger or any other app.

Add a Hustle Action

Click the + next to the trigger to add the next step.

Add a Hustle Action

In the Add Action panel, search for Hustle and select it.

Add Action panel, search for Hustle and select it

Choose the Action Type

Open the Action Type dropdown and pick what the step should do. For this guide, select Add Subscriber to Local List.

Add Subscriber to Local List

These are the Hustle actions:

Action

What it does

Settings

Add Subscriber to Local List

Adds an email address to an opt-in module’s email list (Hustle > Email Lists). If the address is already on that list, nothing changes and the existing entry is returned.

Opt-in Module, Email Address, First Name, Last Name, Extra Fields (JSON)

Find Subscriber by Email

Checks whether an email address is on an opt-in module’s email list and returns its saved details.

Opt-in Module, Email Address

Activate Module

Publishes a module, the same as Hustle’s Publish.

Module

Deactivate Module

Unpublishes a module, the same as Hustle’s Unpublish.

Module

Click Continue.

Configure the Action

Choose the Opt-in Module the subscriber should be added to. For Email Address, click the field and pick Email from the trigger’s data in the data picker. You can also type an address.

Email from the trigger's data in the data picker

Fill First Name and Last Name the same way, or leave them empty.

Fill First Name and Last Name the same

Extra Fields (JSON) is optional. Use it to save more details with the subscriber, written as a JSON object, for example {"phone": "555-0100", "City": "Dhaka"}.

Use it to save more details with the subscriber

The fields each action asks for:

Action

Field

Required

What to enter

Add Subscriber to Local List

Opt-in Module

Yes

The opt-in module whose email list to add to

Email Address

Yes

The subscriber’s email address

First Name

No

The subscriber’s first name

Last Name

No

The subscriber’s last name

Extra Fields (JSON)

No

More details as a JSON object, for example {"phone": "555-0100"}

Find Subscriber by Email

Opt-in Module

Yes

The opt-in module whose email list to search

Email Address

Yes

The email address to look for

Activate Module

Module

Yes

Any Hustle module

Deactivate Module

Module

Yes

Any Hustle module

Click Continue.

Test the Action

On the Test tab, click Test Action. Zaplane runs the step once with the trigger’s test data and shows the result under Output. This really adds the subscriber to the chosen list.

Test Action Zaplane runs the step

Click Save. The action appears on the canvas after the trigger.

Save and Activate the Workflow

Click Update to save the workflow.

Update to save the workflow

Open the status dropdown at the top right and choose Active.

Go to Hustle > Email Lists, choose

The workflow is now active. If you change the workflow later, click Update to save your changes.

Check the Result in Hustle

Go to Hustle > Email Lists, choose the module type and module, and click Show Email List. Subscribers added by the workflow appear in the list.

Go to Hustle > Email Lists, choose

Action Data

Every Hustle action passes data to the steps after it. Pick it from the data picker (@) in any field, or type it as a tag. A tag starts with the step’s number, for example {{2.email}}.

Action

Fields

Add Subscriber to Local List

created (true for a new entry, false if the email was already on the list), entry_id, module_id, email, fields (what was saved), unmapped_fields (saved keys the form has no field for)

Find Subscriber by Email

subscribed (true or false), entry_id (0 if not found), module_id, email, fields (the saved details, empty if not found)

Activate Module, Deactivate Module

module_id, name, active

All actions also return success.

Good to Know

Add Subscriber to Local List saves to Hustle’s own email list only. Email services connected to the module, such as Mailchimp, are not sent the subscriber.
If the email address is already on the list, Add Subscriber to Local List does not change the existing entry, including its Extra Fields. It returns created: false.
Extra Fields are matched to the form’s fields by name or label, ignoring capital letters, so “City” fills a form field labelled City. Hustle’s Email Lists and CSV export only show fields the form has. A key with no matching form field is still saved, but Hustle doesn’t show it; it is listed in unmapped_fields. To see it, add a field with that name or label to the Hustle form.
If an action can’t run, the step fails and the steps after it don’t run. This happens when the module was deleted, the module is not an opt-in, the email address is not valid, Extra Fields is not valid JSON, or Hustle is not active. The error appears on the step in the workflow’s run log.
If Hustle is deactivated, Hustle actions fail with “Hustle is not active. Activate Hustle or Hustle Pro to run this action.”

Done!

Hustle is connected. Your workflow now runs the Hustle action every time the trigger fires.