
PushAI – Web Push Notifications & Telegram Auto Post
v1.4.0cagriuckan · 2026年7月1日 上架
Self-hosted web push & browser notifications: unlimited subscribers, opt-in popup, click stats, scheduled sends and Telegram auto post — all free.
- 正在使用
- 100+
- 评分
- 5.0 / 5
- 累计下载
- 3,176
- 最近更新
- 2026年11月16日
贡献者
截图








PushAI sends web push notifications from your own WordPress site. Visitors subscribe with one click and get a browser notification on desktop and mobile every time you publish, even when your site is closed. There is no third-party account to create, no subscriber limit, and no monthly bill: notifications go straight from your server using the native Web Push standard and your own VAPID keys, created automatically on activation.
The same notification can also be posted to your Telegram channel or group, so one publish reaches browser subscribers and Telegram followers together.
🚀 Try the live demo — explore the PushAI admin without installing anything.
📖 Read the PushAI overview on Kan Themes (in Turkish) — how self-hosted push notifications work for WordPress and WooCommerce sites.
Set up in two minutes
- Activate PushAI and turn on the push service in PushAI Settings.
- Turn on the opt-in popup, or place the
[pushai_button]subscribe button anywhere. - Publish a post. Subscribers get a browser notification automatically.
What you get for free
- Unlimited subscribers and notifications. No caps, no per-subscriber pricing.
- Automatic notifications for new posts, updated posts, and any custom post type you choose, with a per-post opt-out in the editor.
- Opt-in popup in six positions and four designs (Compact, Classic card, Dark, Automatic) with a live preview, plus a list of pages where it never appears.
- Telegram auto post. Share new posts, updated posts, and campaigns in a Telegram channel or group through your own bot, with the image, a “Read more” button, and silent posting.
- Manual and scheduled campaigns. Write a notification, preview it, send it now or at a set time, and target everyone or specific users.
- Click tracking and dashboard stats. Signed, tamper-proof links with delivered and click counts for the last 7 days, and UTM tags so the traffic shows up in Google Analytics.
- Email fallback. Registered users who have not enabled browser notifications can receive the same notification by email.
- Built to scale. A background queue sends large lists in chunks with retries, WP-CLI commands process the queue, and a Site Health check warns you if your cron runs late.
- Your data stays on your site. Subscribers live in your own database, with GDPR export and erasure built in.
- Separate phone and desktop subscriptions, guest subscriptions, and a developer API with functions, actions, and filters.
PushAI Pro (optional)
PushAI Pro is a paid add-on for sites that want more automation. It adds:
- AI features with your own API key — AI-written notifications, smart filtering that holds routine posts, scheduled AI digests, and social media posts for X, Facebook, LinkedIn, Instagram, and Threads. Works with OpenAI, Google Gemini, Anthropic Claude, xAI Grok, DeepSeek, and OpenRouter.
- WooCommerce automation — order and stock alerts, order-status updates, abandoned-cart reminders, cross-sell follow-ups, and trending-product pushes.
- Advanced statistics — custom date ranges, per-notification performance, the best hour to send, and CSV export.
- More Telegram channels, audience segments, action buttons, A/B tests, template rules, and a built-in installable web app (PWA).
Actively developed. New features ship regularly, and every release is documented in the changelog below. Feature requests and feedback shape the roadmap.
Free vs Pro
Both plans include unlimited subscribers, unlimited notifications, the self-hosted setup, and the developer API. Pro adds automation, AI digests, WooCommerce, the built-in PWA, and analytics on top — you only pay for the automation and AI layer, not for audience size.
Free — $0 forever
- One-click subscribe button (shortcode)
- Customizable opt-in popup (permission prompt)
- Automatic new-post notifications
- Custom post type automation
- Click tracking & 7-day dashboard stats
- Manual notification composer
- Scheduled notifications (composer + developer API)
- Per-user / specific-subscriber targeting
- Separate mobile & desktop subscriptions
- Guest subscriptions
- Email fallback for users without a push subscription
- Automatic posting to a Telegram channel or group
- Automatic VAPID key generation
- Background delivery queue with retries
- WP-CLI queue processing (
wp pushai queue) - Automatic UTM link tagging
- Delivery history & status
- Privacy / GDPR export & erasure
- Developer API (functions + action hooks)
Pro — $21/year — everything in Free, plus:
- AI with your own API key (OpenAI, Gemini, Anthropic Claude, Grok, DeepSeek, OpenRouter): Write with AI, smart post notifications, and scheduled AI digests
- WooCommerce order & stock alerts
- WooCommerce order-status & customer notes
- Abandoned-cart reminders
- Cross-sell follow-ups
- “Trending Today” (post & product daily-view alerts)
- Built-in PWA (installable manifest + service worker)
- Statistics & analytics (7/30/90-day or custom ranges with period comparison, CTR, per-notification performance, best hour to send, most-clicked links, per-category performance, audience segment CTR, A/B CTR, digest conversion, CSV export, data cleanup)
- Audience segments in the composer and developer API (role, device, category, tag)
- Action buttons and A/B tests in the composer
- AI social media posts for X, Facebook, LinkedIn, Instagram and Threads from the post editor
- More Telegram channels with per-category routing
- Outbound webhooks and an inbound REST trigger for Zapier / Make
- Abandoned-browse reminders (non-WooCommerce)
- Site-management admin alerts (pending comments, posts awaiting review, published posts, new subscribers)
- Comment notifications (authors, replies & administrators)
- Notification templates with tokens, category and post type rules, and saved composer templates
PushAI is developed and maintained by PushAI.
Shortcode
Place a subscribe button anywhere with:
[pushai_button]
Optional attributes:
label— default button text.on— text shown after notifications are enabled.blocked— text shown when the visitor has blocked notifications.align—left,center, orright.class— extra CSS classes.
Example:
[pushai_button label="Enable browser notifications" align="center"]
In PHP templates:
<?php echo do_shortcode( '[pushai_button]' ); ?>
The shortcode is also shown on the PushAI Settings screen with a copy button.
Show a logged-in visitor whether they currently have an active push subscription:
[pushai_notification_badge]
Guests see nothing. Logged-in users see “Notifications Enabled” plus the number of active devices, or “No Active Subscriptions”. Use it on account pages or membership dashboards.
Developer API
Queue a notification from a theme or plugin:
pushai_trigger_notification( array(
'title' => 'Title',
'body' => 'Message',
'url' => home_url( '/' ),
'image' => '',
) );
The same notification can be triggered with a WordPress action:
do_action( 'pushai_send_notification', array(
'title' => 'Title',
'body' => 'Message',
'url' => home_url( '/' ),
) );
Scheduling a notification
Pass scheduled_at in the site timezone to store the notification and send it later. The delivery queue picks it up once that time is reached:
pushai_trigger_notification( array(
'title' => 'Evening briefing',
'body' => 'Here is what happened today.',
'scheduled_at' => '2026-09-21 18:00',
) );
Targeting specific users
By default a notification is delivered to every active subscription. To send it to specific WordPress users instead, pass target_user_id (a single user) or target_user_ids (an array of users). Only subscriptions tied to those user accounts receive the message.
Send to one user:
pushai_trigger_notification( array(
'title' => 'Your order shipped',
'body' => 'Track it from your account.',
'url' => home_url( '/my-account/' ),
'target_user_id' => 123,
) );
Send to several users:
pushai_trigger_notification( array(
'title' => 'Members-only update',
'body' => 'A new perk is available.',
'target_user_ids' => array( 12, 45, 78 ),
) );
Targeting an audience segment
With an active PushAI Pro license, pass target_segment to filter subscriptions by WordPress role, device type, category, or tag. Dimensions are combined with AND; values inside a dimension are OR. Category and tag IDs match logged-in users who published or commented on posts in those terms. Device-only filters include guests; role and term filters require a logged-in subscriber. Explicit target_user_ids are intersected with the segment.
pushai_trigger_notification( array(
'title' => 'Editors on mobile',
'body' => 'A draft is waiting.',
'target_segment' => array(
'roles' => array( 'editor' ),
'devices' => array( 'mobile' ),
'categories' => array( 4, 9 ),
),
) );
Without a Pro license, a non-empty target_segment returns a pushai_segment_requires_pro error instead of sending.
Notes on targeting:
- Only users who subscribed while logged in can be targeted; guest subscriptions have no user account and are never matched.
- A user with several browsers or devices receives the notification on each active subscription (mobile and desktop are tracked separately).
- If targeting arguments are supplied but none resolve to a valid user, the notification is rejected with a
WP_Errorinstead of being broadcast to everyone.
Supported arguments
title(required) — notification heading.body(required) — notification message.url— link opened when the notification is clicked. Defaults to the site home URL. UTM parameters are appended automatically.image— image URL shown in the notification.target_user_id— a single WordPress user ID to deliver to.target_user_ids— an array of WordPress user IDs to deliver to.source_type— a short label describing what triggered the notification (e.g.post,manual,developer). Metadata only — shown in admin history and used to build theutm_campaignvalue; it does not affect who receives the message. Defaults todeveloper.source_id— the ID of the object that triggered the notification, paired withsource_type(e.g. the post ID for apostsource). Metadata only, not a recipient — usetarget_user_id/target_user_idsto choose recipients. Defaults to0.scheduled_at— send later instead of immediately. Accepts a site-timezone datetime (Y-m-d H:iorY-m-d H:i:s), an ISO-8601 value with offset, or a Unix timestamp. Omit it, or pass a time that is already past, to queue delivery now.target_segment— Pro-licensed audience filters:roles,devices(mobileand/ordesktop),categories(term IDs), andtags(term IDs). Empty dimensions are ignored. Selecting both devices is the same as omitting the device filter.actions— Pro-licensed action buttons. An array of{title, url}objects (max two). The service worker opens the button URL when pressed.ab— Pro-licensed A/B copy:{title, body}for variant B. Variant A is the main title/body. Even subscription ids receive A; odd ids receive B.
Available hooks:
pushai_should_create_post_notification— filter whether a published post creates a notification.pushai_should_send_to_subscription— filter, per subscription, whether it should receive a given notification.pushai_notification_payload— filter the payload sent to the browser.pushai_utm_parameters— filter (or disable) the UTM parameters appended to push links.pushai_notification_queued— fires after a notification is queued for delivery.pushai_notification_scheduled— fires after a notification is stored for a future send.pushai_notification_failed— fires when a notification fails to send.pushai_notification_delivery_completed— fires after each delivery chunk finishes, with success/failed/expired counts for that chunk.pushai_loaded— fires once PushAI has initialized its services.pushai_queue_batch_size— filter how many pending jobs one processor run claims (default 5, clamped 1–50).pushai_delivery_chunk_size— filter how many subscriptions one delivery job sends (default 250, clamped 1–1000).pushai_completed_job_retention_days— filter how many days completed queue jobs are kept (default 7).pushai_should_record_post_views— filter whether daily post/product view tracking runs.pushai_admin_pages— filter the admin page list (menu, sidebar, and assets). PushAI Pro uses this to replace Free preview screens.pushai_can_target_segment— filter whether a non-emptytarget_segmentmay be stored. Defaults to false; PushAI Pro returns true when licensed.pushai_can_use_actions— filter whether action buttons may be stored. Defaults to false; PushAI Pro returns true when licensed.pushai_can_ab_test— filter whether A/B copy may be stored. Defaults to false; PushAI Pro returns true when licensed.pushai_notification_composer_fields— extra fields inside the notification composer. PushAI Pro adds audience segments, action buttons, and A/B fields here.pushai_notification_composer_payload— filter composer arguments before they are queued.pushai_notification_clicked— fires after a signed click is recorded.
Automations (Pro)
With an active PushAI Pro license, Settings Automations can POST signed JSON (X-PushAI-Signature, X-PushAI-Event) when a notification is queued, sent, or clicked. The same screen exposes POST /wp-json/pushai/v1/trigger for Zapier and Make: send X-PushAI-Token and a JSON body using the same fields as pushai_trigger_notification(). A blueprint file is linked from that settings tab.
WP-CLI
Process, inspect, and prune the delivery queue from the command line:
wp pushai queue process
wp pushai queue process --jobs=20
wp pushai queue status
wp pushai queue prune<h3>Bundled Libraries</h3>
PushAI bundles the following open-source libraries in its vendor/ directory. All are MIT-licensed and GPL-compatible.
- minishlink/web-push — Web Push delivery (MIT)
- guzzlehttp/guzzle — HTTP client used by web-push (MIT)
- web-token/jwt-library — JWT signing for VAPID (MIT)
- spomky-labs/base64url — Base64url encoding (MIT)
- spomky-labs/pki-framework — PKI utilities (MIT)
- brick/math — Arbitrary-precision math (MIT)
- Various PSR interfaces and Symfony polyfills (MIT)
Third-Party Services
PushAI communicates with the external services below. No personal data is sent without user action.
Browser push services
When a visitor subscribes and a notification is delivered, the encrypted push payload is sent directly from your server to the browser’s native push service:
- Google Chrome / Edge — Google’s Firebase Cloud Messaging (FCM): Privacy Policy
- Mozilla Firefox — Mozilla’s Autopush service: Privacy Policy
- Apple Safari — Apple Push Notification service (APNs): Privacy Policy
This follows the Web Push standard (RFC 8030). Only the encrypted notification payload (title, body, URL, optional image) is transmitted; the subscriber’s email address or identity is never sent. You control the VAPID keys used to sign each push.
Telegram Bot API (optional)
Only when a site administrator turns on Settings Telegram and enters a bot token, PushAI sends eligible notifications to api.telegram.org so the bot can post them to the chosen channel or group. Each request contains the bot token, the channel or chat ID, and the notification’s title, message, link and image URL. Only notifications sent to all subscribers are posted; no subscriber or visitor data is sent. Telegram Terms of Service, Telegram Privacy Policy
PushAI license API (Pro only)
Sites with a PushAI Pro license send license key verification requests to the PushAI license server at wpushai.com. This happens:
- When the license is first activated.
- On periodic background checks to confirm the license remains valid: a weekly scheduled check, plus a refresh when the saved license status is more than 12 hours old.
- When the admin manually refreshes the license status.
- When WordPress checks for Pro plugin updates.
- Once a day, a license heartbeat that also includes the PushAI, PushAI Pro, WordPress, and PHP version numbers and the site’s install ID, so the license server can show which versions licensed sites run.
The request includes your site URL (so the license can be validated against the registered domain) and the license key. No personal data about your visitors or subscribers is transmitted. The free plugin on its own never contacts the license server: these requests only happen after a site administrator enters a PushAI Pro license key (the daily heartbeat additionally requires PushAI …