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

Start free trial

Get Contact Form Messages

Validation messages are the part of a form a visitor actually reads, and usually the part nobody has looked at since the form was created.

contact-form-7/get-messages returns all of them with the current text next to Contact Form 7’s default, so which ones have been customised is obvious at a glance.

At a glance

Abilitycontact-form-7/get-messages
ToolsetContact Form 7 — toolset/contact-form-7
GroupContact Form 7 › Validation Messages
RequiresContact Form 7, active on the site
Capabilitymanage_options, plus read_contact_forms
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Messages are addressed by slug — mail_sent_ok, invalid_required, validation_error and so on. Those slugs are what contact-form-7/update-messages expects, so this is also the way to discover valid ones.

The default shown alongside is the one Contact Form 7 ships in the site’s locale, which makes it easy to spot a message someone translated by hand and then forgot.

Messages are per form, not global. Two forms on the same site can say completely different things on success.

Input

NameTypeRequiredWhat it is
form_idintegerYesForm post ID, as returned by contact-form-7/list-forms.

What comes back

NameTypeWhat it is
form_idintegerThe form that was read.
messagesarrayOne entry per message: slug, current text and Contact Form 7’s default.
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:

What does form 42 say to someone after they submit it?

It resolves to one call:

{
  "ability": "contact-form-7/get-messages",
  "parameters": {
    "form_id": 42
  }
}

Worth knowing

  • This is the list of valid slugs for contact-form-7/update-messages.
  • Messages are per form. Changing one form leaves the others alone.
  • The success message is the one visitors see most and the one most often left at the default.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading