Helper - Automatic chat threads titles

:bookmark: This guide explains how to enable and configure AI powered chat thread titles, which is part of the Helper feature of Discourse AI plugin.

:person_raising_hand: Required user level: Administrator

Chat threads 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.

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.

Configuration

  1. Go to Admin → Plugins → Discourse AI → Features
  2. Enable the setting ai_helper_enabled to activate AI helper
  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 documentPerform check on document:
3 Likes

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).

1 Like

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.

1 Like

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

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

5 Likes