Do you use AI in your post? Let your visitors know 🤖
Generated by AI adds a simple, visible disclosure to content and media created or modified using artificial intelligence. It helps publishers prepare for growing AI-transparency expectations in France and internationally.
Features
This module provides two ways to disclose AI-generated material:
- A reusable Generated by AI Block, displayed only when the current node has been marked as generated by AI.
- An automatic label for media entities marked as generated or modified by AI, including media displayed through Entity Embed.
Node disclosure block
- Displays a clear “Content generated by AI” notice on eligible node pages.
- Allows editors to define a custom message.
- Allows adding a link to an AI policy, terms of use, or editorial policy.
Media disclosure label
- Automatically adds a visible label to media marked as AI-generated.
- Works with normal media rendering and media embedded through Entity Embed.
- Uses the media bundle label in the message, for example: “Image generated or modified by artificial intelligence.”
- Includes a dedicated CSS class,
generated-by-ai-label, for theme customization.
Clear disclosure of AI-generated or AI-modified content is becoming an increasingly important transparency practice—and may become mandatory in some contexts. This module makes it easier to manage these disclosures directly in Drupal.
Post-Installation
-
Create a boolean field named
field_generated_by_aion the content types and media types where AI disclosure is needed. - For node disclosures, place the Generated by AI Block in a block region through the Drupal Block Layout page.
- Configure an optional custom message and an optional URL to your AI policy.
- Make sure the block has access to the current node context, usually by placing it on node pages.
-
For each relevant node or media item, enable the
field_generated_by_aifield.
The node disclosure block will appear automatically on eligible node pages. Media labels are added automatically wherever eligible media is rendered, including embedded media.
The module is rendered in the front office. You can customize its appearance through CSS variables and by targeting the .generated-by-ai-label class.

The media has a new automatic label .generated-by-ai-label class.

Additional Requirements
- Drupal core.
No external API, JavaScript service, or third-party library is required.
| Attachment | Size |
|---|---|
| generate_by_ai_block.png | 3.76 KB |
| generated_by_ai_example.png | 107.61 KB |
Project information
- Project categories: Content display
1 site reports using this module
- Created by pcharrat on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Add a field 'generated_by_ai' on media.

