30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

MailerPress Format Campaign HTML

mailerpress/format-campaign-html runs MailerPress’s own HtmlParser::replaceVariables() over the HTML you give it.

It is a lint step: merge-tag validation and a tracking-pixel injection preview.

At a glance

Abilitymailerpress/format-campaign-html
ToolsetMailerPress — toolset/mailerpress
GroupMailerPress › Campaigns & Sending
RequiresAcrossAI Pro, plus MailerPress active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

Merge tags are the part worth checking. A mistyped tag does not error — it renders as literal text, so an email goes out saying “Hello [firts_name]” to everybody on the list.

Running the parser before sending catches that, because the parser is what would have replaced it.

The tracking-pixel preview shows where MailerPress injects its open-tracking pixel, which matters for templates that do unusual things at the end of the body — a pixel injected inside a hidden element does not fire.

This operates on HTML you pass rather than on a stored campaign, which makes it usable during authoring, before anything is saved.

It changes nothing and sends nothing.

Input

NameTypeRequiredWhat it is
htmlstringYesThe HTML to parse.
idintegerNoCampaign context for the variables.

What comes back

NameTypeWhat it is
htmlstringThe parsed result.
warningsarrayMerge-tag problems found.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Check the merge tags in this email before I send it.

It resolves to one call:

{
  "ability": "mailerpress/format-campaign-html",
  "parameters": {
    "html": "<p>Hello [first_name]</p>"
  }
}

Worth knowing

  • A mistyped merge tag renders as literal text to the whole list.
  • The pixel preview catches templates where tracking would not fire.
  • Operates on HTML you pass, not on a stored campaign.
  • Changes nothing.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading