# Improved AI content labelling in the composer for post content

**URL:** <https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601>\
**Category:** Announcements\
**Tags:** ai\
**Created:** [17 בנובמבר,‏ 2026,‏ 1:26am UTC](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601 "2026-11-17T01:26:26Z")\
**Posts on this page:** 3\
**Page:** 1

## סיכום מבוסס בינה מלאכותית

[martin](/t/-/417601/1) announced an update to the Discourse composer that allows forum members to label AI-generated content within posts. This feature aims to increase trust by clearly distinguishing between human and AI-created material, extending beyond the previous AI indicator used only for quotes in the AI plugin. The update supports labelling for code, quotes, and details blocks.

Users can label content in three ways: using a new composer submenu that inserts a placeholder with the indicator applied; adding the `ai` attribute to details blocks (e.g., `[details="Summary" ai]`); or prefixing quote blocks with `[!AI]`. Code blocks can also be labelled by adding the `ai` attribute after the language specifier (e.g., ````javascript ai````).

In response, [per1234](/t/-/417601/2) asked whether this feature is part of Discourse core or a separate component, requesting a link to the GitHub PR or commit to help track when their own forum would receive the update. [southpaw](/t/-/417601/3) provided the relevant pull request link, confirming the implementation details for those wishing to track the feature's rollout.

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [17 בנובמבר,‏ 2026,‏ 1:26am UTC](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601/1 "2026-11-17T01:26:26Z")

</div>

We are living in a world now where forum members may have the need to share content in their posts that is partially or wholly AI generated content.

We already had an AI indicator that the AI plugin used for quotes, but it’s time we expanded this capability and put this labelling in the hands of regular members, it’s an important distinction to make to increase trust between people in online communities.

Code, quotes, and details blocks can be labelled as AI content. There are a few different ways you can now label AI content in posts. The easiest way is to use this new composer submenu that will insert a placeholder with the AI indicator already applied:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/0/c/10c40c09e9908b8d1fc1e6777fd302732609596a.png)

### Details

Simply add an `ai` attribute, which works with and without the details summary:

```plaintext
[details="Summary here" ai]
This is AI content in a details block
[/details]

```

> **Summary hereAI**
>
> This is AI content in a details block

### Quotes

This one is a little odd, but still simple. Add `[!AI]` to the start of the quote block:

```plaintext
> [!AI]
> This is a quote made by AI

```

> This is a quote made by AI

### Code

Similar to details, you can add an `ai` attribute, with or without the language specified:

````plaintext
```javascript ai
console.log("This code is made by AI");
```

````

```javascript
console.log("This code is made by AI");

```

* * *

Feedback is welcome in this topic!

---

<div class="post-metadata">

**Author:** ![per1234](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per1234/32/569645_2.png) [@per1234](https://meta.discourse.org/u/per1234)\
**Post date:** [17 בנובמבר,‏ 2026,‏ 2:59am UTC](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601/2 "2026-11-17T02:59:57Z")

</div>

Nice feature!

I would like to add this to the Discourse-based forum I manage. Can you provide information about that possibility? Is this part of the Discourse core, or implemented as a separate component?

If it is in the core, it would be great if you would provide a link to the GitHub PR or commit where it was implemented. That would allow me to more easily identify when my forum is updated to the Discourse version that has the feature.

---

<div class="post-metadata">

**Author:** ![southpaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/southpaw/32/79352_2.png) [@southpaw](https://meta.discourse.org/u/southpaw)\
**Post date:** [17 בנובמבר,‏ 2026,‏ 3:27am UTC](https://meta.discourse.org/t/improved-ai-content-labelling-in-the-composer-for-post-content/417601/3 "2026-11-17T03:27:49Z")

</div>

Hi @per1234,

Here’s the PR:

> <https://github.com/discourse/discourse/pull/46264>
>
> This commit adds an attribute for details, code, and quote
> blocks in markdown to… indicate that the content within
> is partially or wholly AI generated, which is important now
> that everyone has access to AI tooling. We need to maintain
> human-to-human trust.
> 
> This indicator will show in the RTE and in the rendered post.
> Hovering over it will show the title "This content has been partially or fully generated by AI"
> 
> For details, you do:
> 
> \`\`\`
> \[details="Title" ai=true\]
> \> This is some AI writing
> \[/details\]
> \`\`\`
> 
> For code you do:
> 
> \`\`\`\`
> \`\`\`lang ai=true
> puts "some AI code"
> \`\`\`
> \`\`\`\`
> 
> For quotes you do:
> 
> \`\`\`
> \> \[!AI\]
> \> This is some AI writing
> \`\`\`
> 
> \<img width="788" height="414" alt="image" src="https://github.com/user-attachments/assets/d967b08f-b674-4941-a397-af1bd273daba" /\>
> 
> \<img width="794" height="255" alt="image" src="https://github.com/user-attachments/assets/fdc4a20b-0123-4cd4-8725-0f9c59981347" /\>
> 
> Also added something in the (+) menu of the composer,
> the "Add AI content..." item which has a submenu for Code,
> Quote, or Details which prefills the metadata for each of these
> for you & inserts into the composer:
> 
> \<img width="509" height="357" alt="image" src="https://github.com/user-attachments/assets/0b7fa6b8-e5c5-48bc-970f-265fc8b5ce48" /\>
