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

Start free trial

MailerPress Preview Campaign For Contact

mailerpress/preview-campaign-for-contact renders campaign HTML with a specific contact’s personalisation tokens substituted: name, custom fields and the rest.

It is the QA step before a send, and it sends nothing.

At a glance

Abilitymailerpress/preview-campaign-for-contact
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 lint cleanly and still produce bad output. A tag for a custom field most contacts have not filled in renders as nothing, so “Hi Sam from Acme” becomes “Hi Sam from ” for half the list.

Previewing against a real contact — ideally one with sparse data — is the only way to see that before it ships.

The other case is worse and equally invisible: a token that resolves to somebody else’s data because the wrong field was referenced.

MailerPress may return a bare error string on failure rather than a structured response, and that is detected and wrapped rather than passed through as if it were content.

Pick the contact deliberately. Previewing against a fully populated test record proves nothing about the rest of the list.

Input

NameTypeRequiredWhat it is
contact_idintegerYesThe contact to render against.
htmlstringYesThe campaign HTML.

What comes back

NameTypeWhat it is
htmlstringThe fully rendered result for that contact.
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:

Show me how this email looks for that contact.

It resolves to one call:

{
  "ability": "mailerpress/preview-campaign-for-contact",
  "parameters": {
    "contact_id": 118,
    "html": "<p>Hi [first_name]</p>"
  }
}

Worth knowing

  • Preview against a contact with sparse data, not a fully populated test record.
  • Tokens for unfilled custom fields render as nothing.
  • A bare error string is detected rather than returned as content.
  • Sends nothing.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading