ZH Webhooks for n8n

外掛說明

ZH Webhooks for n8n sends WordPress events to your n8n webhook. It is not another Zapier clone, cookie banner, or cache plugin.

WordPress.org already has million-install plugins for GTM, consent, backups, and caching. It does not have a serious n8n webhook plugin. This one fills that gap:

  • WordPress n8n — form submits (WPForms, Contact Form 7, Gravity Forms, Elementor, Fluent Forms, Ninja Forms), new users, published posts/pages, WooCommerce orders.
  • Chat widget n8n — visitor messages wait for a {"reply":"..."} response from a Respond to Webhook node (the commercial “WordPress AI chatbot” use case). Brand colors, radius, offsets, theme, launcher, and avatar are configurable in wp-admin.
  • n8n WordPress ping — signed inbound REST route for a connection check.
  • HMAC + Header Auth — X-ZH-N8N-Key for n8n Header Auth, plus X-ZH-N8N-Signature (sha256=HMAC(timestamp + "." + raw body)).
  • Delivery logs — last 200 sends, payload kept only until success so retries work.
  • No n8n Cloud lock-in — any self-hosted or Cloud webhook URL.

This plugin is not affiliated with n8n GmbH.

Need the workflow installed on a client site? See n8n WordPress automation.

螢幕擷圖

安裝方式

  1. Upload the zh-webhooks-for-n8n folder to /wp-content/plugins/.
  2. Activate ZH Webhooks for n8n.
  3. Open ZH Webhooks in wp-admin.
  4. Paste your n8n Production webhook URL and copy the shared secret into n8n Header Auth (X-ZH-N8N-Key).
  5. Send a test ping, then enable the events you need.
  6. Optional: open the Chat tab to style the widget and enable it site-wide or via [zh_n8n_chat].

常見問題集

Does this replace Uncanny Automator or Bit Integrations?

No. Those are generic “connect 400 apps” products. This plugin only talks to n8n with a stable JSON envelope and HMAC.

Can I put AdSense in this plugin?

No. WordPress.org plugins cannot be an ad network. Monetize by booking implementation work or a later Pro license.

What JSON does n8n receive?

{ “id”, “event”, “timestamp”, “site”: { “name”, “url”, “timezone” }, “data”: { … } } plus headers X-ZH-N8N-Event, X-ZH-N8N-Timestamp, X-ZH-N8N-Signature, X-ZH-N8N-Key.

How does chat work?

The widget POSTs to WordPress REST. WordPress forwards chat.message to n8n and waits. Your workflow must use Respond to Webhook with {"reply":"text"}. Other events are queued asynchronously so checkout stays fast.

Why does live chat say it cannot reach n8n?

The webhook URL is empty, not HTTPS, or not reachable from the server. http://127.0.0.1 on your laptop is not reachable from Hostinger. Use n8n Cloud or another public HTTPS webhook.

Is WooCommerce required?

No. Order events fire only when WooCommerce is active.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈ZH Webhooks for n8n〉的開發相關工作。

參與者

將〈ZH Webhooks for n8n〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.0.0

  • Initial release: outbound form, user, post, and WooCommerce events to n8n.
  • HMAC-signed webhooks, delivery logs, and inbound ping.
  • n8n chat widget with brand colors, radius, offsets, theme, launcher, and live admin preview.
  • Chat mounts even when JS delay plugins (e.g. LiteSpeed) are active.