Wasapress Trigger
AI-generatedSummary
Filter and trigger workflow executions upon receiving WhatsApp messages via Wasapress Wordpress plugin webhook, applying optional filters on sender number, message keyword, time window, and trigger frequency per number.
Inputs
- Filter Type — Select how to filter incoming messages by sender number: no filter, include only a specific number, or exclude a specific number.
- WhatsApp Number — Specify the WhatsApp number (with country code, no '@' or domain) used for inclusion or exclusion filtering. Required if 'Only From Number' or 'Exclude Number' filter is selected.
- Keyword Filter Type — Choose keyword filtering mode for incoming messages: no filter, contains keyword, or exact match.
- Keyword — Keyword string to match in messages, case-insensitive. Used when keyword filtering is enabled.
- Time-based Filter — Enable filtering messages based on the time of receipt.
- Start Time — Start time (HH:MM, 24-hour) for time-based filter. Active when time filter is enabled.
- End Time — End time (HH:MM, 24-hour) for time-based filter. Active when time filter is enabled.
- Timezone — Timezone identifier (e.g., Asia/Kuala_Lumpur) for interpreting start and end times.
- Trigger Once Per Number — If enabled, triggers only once per sender number during workflow runtime; resets on workflow restart.
- Extract Phone Number — If enabled, extracts and cleans the sender's phone number from incoming data, adding it to the output as 'phone_number'.
Output shape
a list with one item containing the incoming message data as JSON, if all filters pass; otherwise, no items are emitted.
Filters are applied sequentially: sender number filter, keyword filter, time-based filter, and trigger-once-per-number filter. When 'Trigger Once Per Number' is enabled, repeated messages from the same number will not trigger additional executions until the workflow restarts. The 'phone_number' field is added if extraction is enabled. Incoming message data is received via a POST webhook from the Wasapress plugin.
Examples
Example 1: Trigger on all WhatsApp messages between 9 AM and 5 PM Kuala Lumpur time, extracting the sender's phone number.
Filter Type: No Filter; Time-based Filter: Enabled (09:00 to 17:00); Timezone: Asia/Kuala_Lumpur; Extract Phone Number: Enabled.