惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
量子位
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
GbyAI
GbyAI
爱范儿
爱范儿
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
罗磊的独立博客
Recent Announcements
Recent Announcements
博客园 - 司徒正美
M
MIT News - Artificial intelligence
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog RSS Feed
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网

Discourse Meta - Latest posts

Horizon: High Context Topic Cards I'd like to ask what this file /var/www/discourse/vendor/data/RT_sRGB.icm is used for? Discourse to Markdown Plugin How to verify a subdomain (mysite.discourse.group) in Google Search Console? Reader Mode Publishing WordPress gallery posts on Discourse Discourse User Feedback New user filter by custom field and contact Interact with discourse from Python? Why we can't type the assignee in the search of a post to assign - home screen app Redis Flushall Category-toggled one-touch move post Some sort of variable to eliminate duplicate text? Why did this plugin replacement fail? Add user to list modal often appears above the mobile viewport sceen Creating/Editing a post on mobile: let's discuss the 2026 Discourse experience Wp-discourse feature request - do not show comments with specific tag? Are there any good Chinese plugins? Discourse ID and 2FA Discourse MCP is here! Sample Forum to See Admin Features? I am unable to register for a free Discourse site Wikipedia Lookup Add text for /login (like js.create_account.disclaimer for /signup) How can i set disable Markdown & Default to Rich Text What's the background image size for the Welcome Banner? How do I enable Associated Accounts with 2FA? Hamburger toggle Support <span data-attribute> in the rich editor Cannot disable read-only mode on Free Plan
Tag topics using AI
@Discourse · 2026-04-22 · via Discourse Meta - Latest posts

1

:bookmark: This guide explains how to automatically tag topics using the AI triage feature in the Discourse AI plugin combined with Discourse Automation.

:person_raising_hand: Required user level: Administrator

Tag topics using AI

This automation uses an LLM to read topic content and decide whether to apply specific tags. It can also consider all site tags if configured in the automation settings.

Prerequisites

Reference Agent configurations

  • System prompt:
 You are an expert content classifier and tagging assistant for this forum.

  Your task is to analyze posts and suggest appropriate tags based on content, images, and the
  available tags list provided.

  Guidelines:
  - Only suggest tags from the provided available tags list
  - Be conservative - only tag what you're confident about
  - Consider both content topic and post intent

  You must always respond with valid JSON in this exact format:
  {"tags": ["tag1", "tag2"], "confidence": 85}

  - tags: array of tag names from the available list
  - confidence: integer from 0 to 100 representing your confidence level

  If no tags are appropriate, use: {"tags": [], "confidence": 0}
  • Persona JSON response format:
{
  "tags": "[string]",
  "confidence": "integer"
}
  • Default language model: Select the LLM configured in the Prerequisites section.

    :spiral_notepad: Discourse hosted customers can select the CDCK Hosted Small LLM when configuring AI Agents.

  • Enabled tools: Tags
  • Forced tools: Tags
  • Forced tools strategy: Apply to first reply only
  • Execution Mode: Default (Fixed Limits)

Automation configurations

  1. Navigate to AdminPluginsAutomations.
  2. Click + Add Automation.
  3. Select the Tag topics using AI script.
  4. Configure the settings from the When/What section as you see fit.
  5. Select the Agent defined for this automation in the AI Agent setting from the Script options section.
  6. Specify how the AI will select the tags in the Tag Selection Mode setting.
    • Use specific tag list (configured in the Available Tags setting)
    • Let AI discover and use any site tags.
  7. Click on the Update automation button.
  8. Enable the automation.
Script options

Best practices

  • Start with a narrow scope: Apply the automation only to a specific category or to first posts by new users (trust level 0 or 1) before expanding it. This limits LLM costs and reduces the risk of widespread mis-tagging.
  • Write clear tag descriptions in your prompt: The more precise your descriptions of each tag’s meaning, the more reliably the LLM will classify correctly.
  • Monitor for false positives and negatives: The LLM won’t be 100% accurate. Build a workflow for reviewing and correcting mis-tagged topics, and adjust your prompt over time.
  • Keep token limits sensible: The “Max Post Tokens” setting limits how much of a post is sent to the LLM. For most tagging tasks, the first few hundred tokens (the opening of the post) is sufficient.

Common issues and solutions

  • Tags aren’t being applied by the automation
    Review the tag’s permissions. If there are any restricted tags that should be applied, make sure the Allow Restricted Tags automation setting is enabled.
  • The automation runs but doesn’t tag topics
    Review the site’s logs to identify any errors associated with the Discourse AI or Discourse Automation plugins.

Additional resources

4 Likes