Promptwatch

外掛說明

Promptwatch connects your WordPress site to your Promptwatch project. It is the official companion plugin for the Promptwatch content and AI-visibility platform, and it does three things:

  • Publish content — Content you create in Promptwatch is published to your site as standard WordPress posts. Re-publishing the same document updates the same post instead of creating a duplicate, and promoting a draft to live keeps your edits and the original publish date.
  • Visitor analytics (optional) — When you turn it on, the plugin adds a small analytics tag to your public pages so page views are attributed to your Promptwatch project. It is off by default and can skip logged-in administrators.
  • AI-crawler logs (optional) — When you turn it on, the plugin records metadata about public requests that reach WordPress (for example visits from AI crawlers) and forwards them to Promptwatch in the background. It is off by default and requires a Promptwatch API key.

How connecting works

There is no Promptwatch password or API key to paste in for publishing. In Settings Promptwatch you generate a one-time sync token, then paste your site URL and that token into your project’s WordPress setup screen in Promptwatch. Promptwatch verifies the site and stores the connection. Your token is stored on the site only as a salted hash — never in plain text.

Using this plugin requires a Promptwatch account. Visitor analytics and AI-crawler logs are optional features you explicitly enable.

External services

This plugin connects to the Promptwatch service. What is sent, and when, depends on which features you enable:

  1. Content publishing (required for the core feature). Promptwatch’s servers write content into your site over authenticated REST routes (promptwatch/v1/sync, promptwatch/v1/publish, promptwatch/v1/config, promptwatch/v1/options), authorized by the sync token you generate. This is an inbound connection: the plugin receives content; it does not send your content out. /options only returns this site’s categories and users who can edit posts, so Promptwatch can show them in the connection settings.

  2. Visitor analytics — ingest.promptwatch.com (only when you enable “Visitor analytics”). The plugin adds a small script to public pages. That script loads https://ingest.promptwatch.com/js/client.min.js in the visitor’s browser and sends analytics events (such as page views), tagged with your Promptwatch project ID, to Promptwatch. No analytics are sent while this feature is off.

  3. AI-crawler logs — logs.promptwatch.com (only when you enable “Crawler logs” and set an API key). For public requests that reach WordPress, the plugin collects request metadata — timestamp, request path and method, response status, content type, user agent, referrer, client IP, and hostname — and sends it in batches to https://logs.promptwatch.com/event, authorized by your Promptwatch API key. Nothing is sent while this feature is off or no key is set.

  4. Featured images (during content publishing). When a document published from Promptwatch includes a featured image, the plugin downloads that image from the URL Promptwatch sends (a token-authenticated sync request) and stores it in your media library as the post thumbnail. No image is fetched outside of a publish.

By using these features you send the data described above to Promptwatch. Please review the Promptwatch Terms and Conditions and Privacy Policy.

安裝方式

  1. Upload the promptwatch folder to /wp-content/plugins/, or install the ZIP from Plugins Add New Upload Plugin.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings Promptwatch and click Generate token.
  4. Copy your site URL and the generated token, then paste both into your project’s WordPress setup screen in Promptwatch.
  5. Return to WordPress and confirm the connection. Visitor analytics and crawler logs then become available to enable individually.

Pretty permalinks must be enabled (Settings Permalinks anything other than “Plain”), because Promptwatch publishes over REST routes.

常見問題集

Do I need a Promptwatch account?

Yes. This plugin is a connector for the Promptwatch service and does nothing on its own.

Do I have to paste an API key to publish content?

No. Publishing uses a sync token you generate in the plugin. An API key is only needed if you enable AI-crawler logs.

Is my token stored safely?

Yes. The sync token is stored only as a salted HMAC hash, never in plain text, and is never shown again after it is generated. The optional crawler-logs API key is stored encrypted.

Will this create duplicate posts?

No. Each Promptwatch document maps to a single post. Re-publishing updates the same post.

Can I set categories and author?

Yes. In Promptwatch, open the WordPress connection Details and pick categories and an author. Those apply to posts Promptwatch publishes. Leave categories empty to keep the post’s existing categories. “Site default” author uses the first administrator on new posts, and keeps the current author on updates.

What happens when I uninstall?

Uninstalling removes the plugin’s options, its crawler-log queue table, and its scheduled tasks.

Where can I get support?

For help with setup or using the plugin, contact Promptwatch support at promptwatch.com/contact-us.

使用者評論

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

參與者及開發者

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

參與者

將〈Promptwatch〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3.0

  • Apply categories and author chosen in Promptwatch when creating or updating posts.
  • Add a REST endpoint so Promptwatch can list this site’s categories and authors.
  • Reset the crawler-log circuit breaker when the API key is saved or removed.

1.2.0

  • Enqueue all scripts and styles via WordPress APIs.

1.1.0

  • Keep internal content-region markers out of all rendered output (frontend, REST API, feeds, excerpts), so themes and headless frontends never see empty paragraphs.

1.0.0

  • Initial release: content publishing, optional visitor analytics, and optional AI-crawler log forwarding.