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

Start free trial

MailerPress Create Template

mailerpress/create-template creates a new MailerPress email template.

It requires a name, at least one entry in categories, and a content block-editor JSON body.

At a glance

Abilitymailerpress/create-template
ToolsetMailerPress — toolset/mailerpress
GroupMailerPress › Templates
RequiresAcrossAI Pro, plus MailerPress active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Pro 0.9.16 and later

How it works

Unknown category names are auto-created as new template categories. That is convenient and it means a typo produces a category rather than an error — and nothing merges them afterwards.

On a site where several people create templates, the category list drifts into near-duplicates: “Newsletters”, “newsletter”, “News letters”.

Reading mailerpress/list-templates first and reusing an existing category string exactly is the only prevention.

usage_type defaults to newsletter and describes what kind of email the template is for, which affects where MailerPress offers it.

The content is the block-editor JSON. A template created with JSON and no compiled HTML will produce campaigns in the same state, so mailerpress/save-template-content is usually the immediate follow-up.

Not idempotent.

Input

NameTypeRequiredWhat it is
namestringYesThe template name.
categoriesarrayYesAt least one. Unknown names are auto-created.
contentobjectYesThe block-editor JSON body.
usage_typestringNo — defaults to newsletterWhat kind of email the template is for.

What comes back

NameTypeWhat it is
templateobjectThe created template.
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:

Create a newsletter template.

It resolves to one call:

{
  "ability": "mailerpress/create-template",
  "parameters": {
    "name": "Monthly newsletter",
    "categories": ["Newsletters"],
    "content": {}
  }
}

Worth knowing

  • A typo in a category name creates a category, and nothing merges them later.
  • Reuse the exact existing string.
  • JSON without compiled HTML propagates to every campaign built from it.
  • Not idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading