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
| Ability | mailerpress/preview-campaign-for-contact |
| Toolset | MailerPress — toolset/mailerpress |
| Group | MailerPress › Campaigns & Sending |
| Requires | AcrossAI Pro, plus MailerPress active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI 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
| Name | Type | Required | What it is |
|---|---|---|---|
contact_id | integer | Yes | The contact to render against. |
html | string | Yes | The campaign HTML. |
What comes back
| Name | Type | What it is |
|---|---|---|
html | string | The fully rendered result for that contact. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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
- MailerPress Format Campaign HTML — lint the tags first
- MailerPress Send Test Email — see it in a real inbox
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category