Skip to main content
Actions are what Mary does once she’s classified a reply and pulled out any extracted data. They run automatically the moment a match is confirmed, so by the time an email shows up in the Messages feed, the downstream work in Salesforce is already done. Actions are configured per category. A reply that lands in Unsubscribe runs one set of actions; one that lands in Left Company runs another.

Available action types

Forward Email

Forward Email Forward the classified reply to another email address. This is the go-to action when a reply needs a human — for example, routing a Human Request reply to your shared sales inbox, or looping a specific rep in on Out-Of-Office replies for accounts they own. Forward Email is a generic action and works the same way regardless of which marketing automation platform you’re connected to.
FieldWhat it does
ToDestination email address. Accepts tokens (e.g., {{ owner.email }}).
SubjectSubject line for the forwarded message. Defaults to Fwd: {{ subject }}.
MessageOptional custom message body. Supports Markdown formatting and token insertion via Insert Data. Leave empty to use the default forwarding template.
Original EmailControls how the original email is included in the forward — see below.
The Original Email dropdown controls what happens with the source message:
OptionBehavior
Include InlineOriginal message body is appended directly beneath your message
Include QuotedOriginal message is included as a quoted reply — the familiar default
Don't IncludeForward only contains the message you wrote; the original body is dropped
Under Advanced:
FieldWhat it does
Message StyleRendering style for the forwarded email. AllGood Branded uses the allGood template; other styles may be available.
CCAdditional addresses to CC on the forward. Accepts tokens.
Reply-ToOverride the reply-to address so recipient replies land somewhere other than the original sender.
From NameDisplay name shown in the recipient’s inbox (e.g., “Support Team” instead of the raw address).

Add to Worksheet

Add To Worksheet Push the sender into an allGood worksheet, optionally running it through the worksheet’s flow steps. This is how you take a classified reply and hand it off to another allGood workflow — for example, adding a Human Request sender to a follow-up worksheet that triages and routes them, or pushing extracted replacement contacts from Left Company replies into a new-lead worksheet. Add to Worksheet is a generic action and works the same way regardless of which marketing automation platform you’re connected to.
FieldWhat it does
WorksheetThe worksheet to add the contact to. Search by name to pick from your existing worksheets.
Include all email dataWhen checked, attaches the full email content (subject, body, from, headers) to the worksheet row. Useful when downstream flow steps need access to the raw reply.
FieldsMap worksheet fields to values or tokens. Left column is the worksheet field name; right column is the value or token to write. Click + Add Field to add more mappings.
Under Advanced:
FieldWhat it does
BehaviorChoose whether Mary just adds the contact to the worksheet, or adds and immediately runs them through the worksheet’s flow steps (Add to Worksheet + Run Flow).
Include source metadataAttaches metadata about where the entry originated (which ERM configuration, category, classification rationale, etc.) so downstream steps can reference it.
Only IfStandard conditional expression that must evaluate to true for the action to run. Use to fan out behavior within a single category.

Sync Contact/Lead to Salesforce

Salesforce ERM Docs 1 Create or update a record in Salesforce, identified by the sender’s email address. Mary looks the record up by email — preferring a Contact, then falling back to a Lead — then creates or updates it depending on the sync mode you choose. You can set:
  • Static values — e.g., leadStatus = Unqualified
  • Dynamic values — tokens that resolve at runtime from Mary’s classification or extracted data, e.g., allgood_reason = [allGood] {{ classification }}
Each row in the field map pairs a Salesforce field’s API name with a value or token. The email address is always included automatically — it’s the lookup key. You also choose a sync mode under the advanced tab:
ModeBehavior
Create or UpdateUpdate the record if it exists, otherwise create it (the safe default)
Create OnlyCreate a new record; fail if one already exists for that email
Update OnlyUpdate an existing record; fail (or skip) if no record is found
Common tokens you can reference:
TokenWhat it resolves to
{{ classification }}The category Mary assigned (e.g., Unsubscribe)
{{ rationale }}Mary’s plain-English reasoning for the classification
{{ from.address }}The sender’s email address
{{ from.name }}The sender’s display name
{{ extractedFields["<field>"] }}Any field defined in Data Extraction for that category

Add to Salesforce Campaign

Salesforce ERM Docs 2 Add the sender to a specific Salesforce campaign as a campaign member. Mary looks the record up by email and adds them to the campaign you specify. The campaign is identified by its Campaign ID — the 15- or 18-character Salesforce Campaign record ID.
When adding someone to a Salesforce campaign, the Contact or Lead must already exist in Salesforce. If it might not, add a Sync Contact/Lead to Salesforce action before the Add to Salesforce Campaign action — the sync (in Create or Update mode) will create the record if it doesn’t exist.

Unsubscribe in Salesforce

Salesforce ERM Docs 3 Opt the sender out of email in Salesforce. Mary looks the record up by email — preferring a Contact, then falling back to a Lead — and sets their email opt-out status. This is the cleanest way to honor an opt-out, because it uses Salesforce’s native email opt-out field rather than just flipping a custom field.
If the record isn’t found in Salesforce, this action skips quietly by default. You can flip this behavior with the skip if not found toggle if you’d rather treat a missing record as a hard error.

Example: Unsubscribe actions

Salesforce ERM Docs Example
Here’s the action chain a typical Unsubscribe category would run:
1

Unsubscribe in Salesforce

Honor the opt-out using the Unsubscribe in Salesforce action so the suppression is respected everywhere.
2

Sync Contact/Lead to Salesforce

Record the reason on the record for the audit trail. Using Create or Update mode also guarantees the record exists before the later steps run.
FieldValue
leadStatusUnqualified
allgood_reason[allGood] {{ classification }}: {{ rationale }}
3

Add to Salesforce Campaign

Drop the record into the Mary-managed unsubscribe campaign for downstream reporting and suppression.
FieldValue
Email address{{ from.address }}
Campaign ID701dL00002GXH2OQAX
The {{ rationale }} token is particularly useful here — it gives your ops team a human-readable audit trail directly on the record explaining why Mary marked someone as unsubscribed.

Stacking and reordering actions

You can configure multiple actions per category, and they run in the order they’re listed. Use the up/down arrows on each action row to reorder them. Click + Add Action to add more. Order matters in two cases:
  • Dependent actions. If an Add to Salesforce Campaign depends on the record existing, put Sync Contact/Lead to Salesforce (in Create or Update mode) first.
  • Field dependencies. If a later action references a field set by an earlier action, make sure the order reflects that dependency.

Conditional actions

Every action supports an only-if condition — a token expression that must evaluate to true for the action to run. This lets you fan out behavior within a single category. For example, only add to a “Hot Leads” campaign when an extracted intent field is high, while still running the rest of the chain for everyone. Actions that look a record up by email also expose a skip if not found toggle, which controls whether a missing record is treated as a quiet skip or a hard error.

Best practices

  • Use the [allGood] prefix in audit fields. Following the example above (allgood_reason = [allGood] ...) makes it easy to see at a glance which records were touched by Mary versus a human or another system.
  • Use field API names, not labels. The field map keys must be Salesforce’s API field names, not the friendly labels shown elsewhere in the UI. A field name that doesn’t exist will fail at execution time.
  • Prefer the native unsubscribe. For opt-outs, use Unsubscribe in Salesforce rather than just setting a custom field — it updates Salesforce’s native email opt-out so suppression is honored everywhere.
  • Test the full chain, not just the classification. The Test Suite validates categorization and extraction; once those pass, sanity-check the actions in a sandbox Salesforce instance before going live.
  • Watch the order when adding to campaigns. Most campaign-add failures we see are records that didn’t exist yet. Lead with a Sync Contact/Lead to Salesforce in Create or Update mode to be safe.