# Helper - Automatic chat threads titles

**URL:** https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004
**Category:** Site Management
**Tags:** chat, how-to, ai, ai-helper
**Created:** [November 10, 2023, 4:38pm UTC](https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004 "2023-11-10T16:38:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [November 10, 2023, 4:38pm UTC](https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004/1 "2023-11-10T16:38:18Z")

</div>

> 🔖 This guide explains how to enable and configure AI powered chat thread titles, which is part of the [Helper](https://meta.discourse.org/t/discourse-ai-helper/283943) feature of [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) plugin.
> 
> 🙋 Required user level: Administrator

[Chat threads](https://meta.discourse.org/t/introducing-chat-threads/270613) in Discourse requires manual title input. This feature uses AI to automatically generate titles for chat threads based on the context of the posts within the thread. This makes threads more discoverable and reduces the burden on thread authors.

 ![Automatic chat thread title example](https://global.discourse-cdn.com/meta/original/4X/7/9/b/79b97269103c74f12d772b0b69f6001bb0e2bd36.png)

## Features

- Automatic title generation from LLM
- Configurable time delay for title generation
- Configurable AI agent for title generation

## Enabling auto chat thread titles

### Prerequisites

You must configure at least _one_ Large Language Model (LLM) from a provider.

To get started you can configure them through the [Discourse AI - Large Language Model (LLM) settings page](https://meta.discourse.org/t/discourse-ai-large-language-model-llm-settings-page/319903).

### Configuration

1. Go to Admin → Plugins → Discourse AI → Features
2. Enable the setting `ai_helper_enabled` to activate [AI helper](https://meta.discourse.org/t/enable-ai-helper/283943?silent=true)
3. Enable the setting `ai_helper_automatic_chat_thread_title` to activate automatic titles for chat threads
4. (Optional) Set time delay for title generation at `ai_helper_automatic_chat_thread_title_delay` (default is 5 minutes)
5. (Optional) Choose which AI agent to use for generating titles via `ai_helper_chat_thread_title_agent`

## Technical FAQs

**Why is there a delay before the titles appear on the threads?**

- For threads with fewer than 5 replies, there is a configurable delay (default 5 minutes) to allow enough context to accumulate before generating a title. Once a thread reaches 5 or more replies, the title is generated immediately without delay.

> Last edited by @Saif 2024-11-05T15:42:59Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![MachineScholar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/machinescholar/32/424719_2.png) [@MachineScholar](https://meta.discourse.org/u/MachineScholar)
#### Post date: [August 27, 2024, 7:51pm UTC](https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004/6 "2024-08-27T19:51:19Z")

</div>

Out of curiosity, is there any plan to implement this same feature into AI Bot (PMs)? It is a bit cringey that the title usually sets itself to something random and unrelated to the initial message (perhaps because it is too short and not enough context/time is given to let it generate a sensible title).

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 29, 2024, 5:15am UTC](https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004/7 "2024-08-29T05:15:50Z")

</div>

This should not happen (even though I have seen it at times); if it does, we need to look at the AI log to figure out what was wrong with the prompt. The titles are based on content in the PM.

---

<div class="post-metadata">

### Author: ![Ryan\_Scott](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryan_scott/32/369000_2.png) [@Ryan\_Scott](https://meta.discourse.org/u/Ryan_Scott)
#### Post date: [November 29, 2024, 9:40pm UTC](https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004/8 "2024-11-29T21:40:15Z")

</div>

Honestly, this feature has only confused users (confusing enough already with new topics, posts, then DMs/chats and the difference of messages)

I tried to disable/remove ‘My Threads’ by disabling/unchecking the “discourse ai enabled” - but the “my threads” persists

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [November 29, 2024, 10:08pm UTC](https://meta.discourse.org/t/helper-automatic-chat-threads-titles/285004/9 "2024-11-29T22:08:35Z")

</div>

> [@Ryan\_Scott](#):
>
> Honestly, this feature has only confused users.

What do you mean by “this feature”? Threads in personal chats, which were recently enabled by default, or AI-generated titles for threads, which is what this topic is about? The discussion about disabling threads in personal chats by default can be found at [Disable chat threads in DM's](https://meta.discourse.org/t/disable-chat-threads-in-dms/334040)
