Topic Title Generator: LLM returns valid options, topic title fails to parse/display

looks like you amended the prompts for the titlebot, can you try this fix

AI generated

You could post this:


Your logs show a mismatch in the Titles generator configuration: the prompt asks for a list of titles, but the structured-output schema requires output to be a string. Discourse expects an array, so it discards those string responses—even when the string contains a JSON-encoded list.

Could you try the following?

  1. Go to Admin → AI → Agents and open the agent selected for title suggestions, normally Titles generator.
  2. In its Response format, find the entry with the key output.
  3. Change its type from String to Array, and set the array item type to String.
  4. Save, then try Suggest topic title again.

The intended configuration is:

[
  {
    "key": "output",
    "type": "array",
    "array_type": "string"
  }
]

There’s also an unrelated instruction in the system prompt about suggesting only #bbqoclock. You can remove that instruction if it isn’t intentional, while keeping the instructions to return title suggestions as an array under output.

If it still fails, please share the saved Response format configuration and a fresh LLM request/response log. In the request, we should now see:

"output": {
  "type": "array",
  "items": {
    "type": "string"
  }
}