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

Start free trial

Update Contact Form Messages

contact-form-7/update-messages takes a map of message slug to new text and changes only those. Everything you do not name keeps its current value.

A slug Contact Form 7 does not recognise is rejected, not quietly dropped — which matters, because a typo’d slug written silently would look like a successful change that never appears on the front end.

At a glance

Abilitycontact-form-7/update-messages
ToolsetContact Form 7 — toolset/contact-form-7
GroupContact Form 7 › Validation Messages
RequiresContact Form 7, active on the site
Capabilitymanage_options, plus edit_contact_forms
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Get the valid slugs from contact-form-7/get-messages. They are Contact Form 7’s own set and cannot be extended.

The write is idempotent: sending the same text twice leaves the same messages, so a retry is safe.

Setting a message back to Contact Form 7’s default means sending the default text. There is no “reset” flag.

Input

NameTypeRequiredWhat it is
form_idintegerYesForm post ID, as returned by contact-form-7/list-forms.
messagesobjectYesMessage slug => new text. At least one entry.

What comes back

NameTypeWhat it is
form_idintegerThe form that was written.
updatedarrayWhich message slugs actually changed.
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:

Change form 42’s success message to “Thanks — we’ll reply within one working day.”

It resolves to one call:

{
  "ability": "contact-form-7/update-messages",
  "parameters": {
    "form_id": 42,
    "messages": {
      "mail_sent_ok": "Thanks — we’ll reply within one working day."
    }
  }
}

Worth knowing

  • An unrecognised slug is refused. That is deliberate — it makes a typo visible.
  • Idempotent, so retrying after a dropped connection is safe.
  • Messages are plain text as far as visitors are concerned. Do not rely on markup in them.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading