WP Webhooks / Docs / set_mapping
AI Ability since v2.0.0

set_mapping

Set field mapping — Set the payload field mapping for a webhook+trigger (rename / restructure / exclude / type-cast fields with dot-notation paths).

$

Set the payload field mapping for a webhook+trigger (rename / restructure / exclude / type-cast fields with dot-notation paths). Registered as the WordPress Ability flowsystems-webhook-actions/set_mapping, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

{ "ability": "set_mapping", "input": { "webhook_id":, "trigger":, "field_mapping":} }

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: full. Runs without a confirmation pause (the overall plan is still user-approved before execution starts).

/ Input fields

NameInTypeReqDescription
webhook_idparamintegeryes
triggerparamstringyes
field_mappingparamobjectyesMapping definition as used by the mapping UI.

/ Examples

Plan step as the AI Builder proposes it

{
  "id": "step_1",
  "ability": "set_mapping",
  "summary": "…",
  "input": {
    "webhook_id": 12,
    "trigger": "wpcf7_mail_sent",
    "field_mapping": {
      "enabled": true,
      "rules": [
        {
          "source": "args.0.posted_data.your-email",
          "target": "email"
        }
      ]
    }
  }
}

/ Related

Ready

Your next automation is
one sentence away.

$ wp plugin install flowsystems-webhook-actions --activate