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

Start free trial

MailerPress Pro Segment Product Values

mailerpress-pro/list-segment-products lists the WooCommerce products available as filter values inside a segment condition.

It is the companion to the condition metadata, for the conditions that take a product.

At a glance

Abilitymailerpress-pro/list-segment-products
ToolsetMailerPress Pro — toolset/mailerpress-pro
GroupMailerPress Pro › Segments
RequiresAcrossAI Pro, plus MailerPress with its Pro add-on 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

A purchase-based condition — bought this, did not buy this — needs a product identifier, and the identifier MailerPress expects is not necessarily the product ID you would use elsewhere.

So this returns the values in the form the segment evaluator accepts, which removes a class of segment that is syntactically valid and matches nobody because the product reference is wrong.

It is also the practical inventory for building purchase segments: what can be segmented on, rather than what exists in the shop. Products that have never been bought are of limited use as a segment condition.

Only meaningful on a site with WooCommerce. Without it the condition types that use these do not exist either.

Input

NameTypeRequiredWhat it is
searchstringNoSearch on the product name.

What comes back

NameTypeWhat it is
productsarrayProducts usable as segment condition values.
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:

Which products can I segment customers by?

It resolves to one call:

{
  "ability": "mailerpress-pro/list-segment-products",
  "parameters": {}
}

Worth knowing

  • The identifier here is what the segment evaluator accepts.
  • A wrong product reference produces a valid segment matching nobody.
  • Only meaningful with WooCommerce active.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading