AI triage is designed to enhance the management and moderation of forum posts by automating the process of classifying posts.
Please note that this feature requires both the discourse-automation and discourse-ai plugins to function.
Use Cases
-
Automated Post Categorization: AI triage can automatically categorize topics based on their content. This is particularly beneficial for large forums where manual categorization can be time-consuming. You can apply the rules to a subset of topics (first topic only or topics posted to particular categories)
-
Post Tagging: AI triage can assign specified tags to posts. This feature aids in the better organization of posts and makes searching and retrieving topics more efficient.
-
Automated Responses: AI triage can generate replies to posts using predefined responses. This is useful for addressing frequently asked questions or common queries, sending spam to junk categories, and more.
-
Topic Hiding: AI triage can hide topics based on certain criteria. This can be used for managing spam or inappropriate content.
-
NSFW/Toxicity/Spam detection
How It Works
AI triage uses AI models to analyze the content of the posts. Based on this analysis if the model returns specific text, it performs the specified actions. These actions include moving the post to a specified category, adding tags, replying with a predefined response, and hiding the topic.
Configuration
The system prompt field has been deprecated in favor of Agents. If you had an AI automation prior to this change, a new Agent with the associated system prompt will be automatically created.
To configure AI triage, you need to specify certain parameters:
- Agent: Agent used to triage. Be sure for it to reply with a single word you can use to trigger the actions below.
- Search for Text: If the following text appears in the LLM reply, apply the actions below.
- Max Post Tokens: The maximum number of tokens to scan using LLM triage.
- Stop Sequences: Instruct the model to halt token generation when arriving at one of these values.
- Max Output Tokens: When specified, sets an upper bound to the maximum number of tokens the model can generate.
- Include Personal Messages: Also scan and triage personal messages.
- Category: This is the category to which the post will be moved if the specified text is found.
- Tags: These are the tags that will be added to the post if the specified text is found.
- Hide Topic: If this option is enabled, the topic will be hidden if the specified text is found.
- Flag post: If this is enabled, the topic will be flagged for the review queue for moderators, staff and admins to take action.
- Flag type: The type of flag to apply. Options include:
- Add post to review queue — sends to review queue only
- Add post to review queue and hide post — sends to review queue and hides the post
- Add post to review queue and delete post — sends to review queue and soft-deletes the post
- Add post to review queue, delete post and silence user — sends to review queue, soft-deletes the post, and silences the user
- Flag as spam and hide post — flags as spam and hides
- Flag as spam, hide post and silence user — flags as spam, hides, and silences the user
- Reply User: This is the user that will be mentioned in the canned reply.
- Reply: This is the predefined response that will be posted if the specified text is found.
- Reply Agent: AI Agent to use for replies. Must have default LLM, will be prioritized over canned reply. Will conditionally reply unlike Discourse AI - AI triage using Agent.
- Reply as Whisper: Whether the AI’s response should appear as whisper.
- Notify author via PM: Send a personal message to the post author when their post is queued and deleted.
- PM sender: User who will send the PM (defaults to system).
- PM content: Optional custom message to send to the author.
Caveats
- LLM calls can be expensive. When applying a classifier be careful to monitor costs and always consider only running this on small subsets.
- The particular use case we tested (and run in production for a customer) is the classification of first topics of a user.
- We recommend you use AI bot to help author the agent’s system prompt.









