wa_rule_add
Add an auto-reply rule that matches incoming DM keywords and sends fixed text before AI or static replies, with optional owner alerts.
Instructions
Add an auto-reply rule: when an incoming DM matches keywords, reply with fixed text (checked before the AI/static reply) and optionally alert the owner. match_all=false = ANY keyword hits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keywords": "<keywords>"
},
"name": "wa_rule_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short rule name (shown in owner alerts) | |
| reply | No | Text to reply with | |
| keywords | Yes | Keywords to match (lowercase, substring match) | |
| match_all | No | true = ALL keywords must hit; false (default) = any | |
| notify_owner | No | Also send this message to WA_OWNER_NUMBER |