This project is not covered by Drupal’s security advisory policy.
Connects your Drupal site to your Promptwatch project. Promptwatch tracks how your brand appears in AI search: ChatGPT, Claude, Gemini, Perplexity and Google AI Overviews. The module does three things:
- Publishes content you write in Promptwatch to your Drupal site, into any content type you choose. New pages can be staged as unpublished drafts first. On content types with a moderation workflow, edits to a live page also stay in a draft until you publish. Re-publishing updates the same page instead of creating a duplicate. Revisions, translations and Paragraphs are supported.
- Optionally adds the Promptwatch analytics script to your public pages, so visits referred by AI assistants show up in your project's visitor analytics. Off by default, and it can skip site administrators.
- Optionally sends a log of visits that reach your site (for example visits from AI crawlers) to Promptwatch. Off by default.
You need a Promptwatch account to use this module.
How connecting works
There is no password or API key to paste in for publishing. On the module's settings page you generate a one-time sync token, then paste your site URL and that token into Promptwatch. Promptwatch tests the connection before saving it. Your site keeps only a keyed hash of the token, never a readable copy, and the token is kept out of configuration exports.
Post-Installation
- Go to Configuration → Web services → Promptwatch (
/admin/config/services/promptwatch). - Choose the author account for Promptwatch content. It needs permission to create and edit the content types you publish to, use the workflow transitions and use the text format.
- Click Generate sync token.
- In Promptwatch, open Project Settings → CMS Integrations, click Connect on the Drupal card, and paste your site URL and the token.
Additional Requirements
Drupal 10.3 or later, or Drupal 11. Only the core Node module is required.
External services
This module connects to the Promptwatch service. What is sent, and when, depends on which features you enable:
- Content publishing. Promptwatch's servers write content into your site through the
/promptwatch/v1/*routes, authorized by the sync token. This is an inbound connection: the module receives content and does not send your content out. - Images, during publishing. When a page published from Promptwatch includes an image, the module downloads it from the URL Promptwatch sends and saves it to your files (
public://promptwatch). Only images on public hosts are fetched, and only during a publish. - Visitor analytics,
ingest.promptwatch.com(only when enabled). The module adds a script that loadshttps://ingest.promptwatch.com/js/client.min.jsin the visitor's browser and sends analytics events, such as page views, tagged with your Promptwatch project ID. - AI crawler logs,
logs.promptwatch.com(only when enabled). For public requests that reach Drupal, the module collects request metadata (timestamp, path and query string, method, response status, content type, user agent, referrer, client IP and hostname) and sends it in batches on cron. Admin, login and API paths are skipped. Pages served from a CDN or reverse proxy cache aren't seen.
By using these features you send the data described above to Promptwatch. Please review the Promptwatch Terms and Conditions and Privacy Policy.
Frequently asked questions
The connection stopped working. What do I do?
Generate a new token on the settings page and paste it into the reconnect dialog in Promptwatch. Regenerating the token disconnects the old one.
What happens when I uninstall?
The module removes its settings, token, keys and queued logs. Content published from Promptwatch stays on your site as normal content.
Where can I get help?
Contact Promptwatch support at promptwatch.com/contact-us.
Project information
- Project categories: Integrations
- Created by volodymyr@promptwatch.com on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.