---
title: "test_notification_rule — AI Ability"
description: "Send a test notification — Render a rule against the webhook's captured example (or a real delivery) and send it to every channel of the rule right now."
url: "https://wpwebhooks.org/docs/ability-test-notification-rule/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / test\_notification\_rule

AI Ability since v3.3.0

# test\_notification\_rule

Send a test notification — Render a rule against the webhook's captured example (or a real delivery) and send it to every channel of the rule right now.

Renders a rule's message from the webhook's captured example payload — or from a real delivery log when `log_id` is passed — prefixes it with “\[Test\]” and sends it to every channel on the rule. Returns the per-channel outcome and the rendered subject, title, body and one-liner. Registered as the WordPress Ability `flowsystems-webhook-actions/test-notification-rule`, so external AI tools (Claude Code, Cursor) can call it over MCP, or over the Abilities REST route with a scoped API token.

/ Plan step shape

```
{ "ability": "test_notification_rule", "input": { "id": …, "log_id": …, "confirmed": true } }
```

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: `full`. **Always pauses for confirmation** — a real message goes out to email, Slack, SMS or a pager — and runs only with `confirmed: true`.

/ Input fields

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| id | param | integer | yes |  |
| log\_id | param | integer | — | Render from this delivery log instead of the captured example. |
| confirmed | param | boolean | — | Must be true to send. |

/ Examples

Plan step as Build with AI proposes it

```
{
  "id": "step_5",
  "ability": "test_notification_rule",
  "summary": "Send a test alert to #ops-alerts",
  "input": {
    "id": "{{step_4.id}}"
  }
}
```

/ Related

[create\_notification\_rule](https://wpwebhooks.org/docs/ability-create-notification-rule/)[Notifications](https://wpwebhooks.org/docs/notifications/)[REST API reference](https://wpwebhooks.org/webhook-wordpress-plugin-api/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://downloads.wordpress.org/plugin/flowsystems-webhook-actions.zip) [Try the Live Preview](https://playground.wordpress.net/?blueprint-url=https://wpwebhooks.org/blueprint.json) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

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

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"test_notification_rule — AI Ability — Webhook Actions Docs","description":"Send a test notification — Render a rule against the webhook's captured example (or a real delivery) and send it to every channel of the rule right now.","url":"https://wpwebhooks.org/docs/ability-test-notification-rule/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
