Using AI To Tag And Categorize Forum Posts

We’ve added an AI tagging automation that you may be interested in trying out: FEATURE: create AI tagging automation (#34587) · discourse/discourse@e470f3d · GitHub

Prompt I've been using to test it
 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"
}

Persona enabled tools: tags (optional, this is if you want it to use existing tags on the site)

The automation has two modes:

  • Use existing site tags
  • Use the provided tag list

The automation also has a configurable confidence level, you can enable/disable restricted tags, and adjust the number of posts it uses in a topic for context

6 Likes