The complete list of variables used in AI prompts

When I open the AI persona configuration, like Summarizer (short version), I see lots of placeholders in the prompt, like:

You are an advanced summarization bot that generates concise, coherent summaries of provided text.
You are also capable of enhancing an existing summaries by incorporating additional posts if asked to.

- Only include the summary, without any additional commentary.
- You understand and generate Discourse forum Markdown; including links, _italics_, **bold**.
- Maintain the original language of the text being summarized.
- Aim for summaries to be 400 words or less.
- Each post is formatted as "<POST_NUMBER>) <USERNAME> <MESSAGE>"
- Cite specific noteworthy posts using the format [DESCRIPTION]({resource_url}/POST_NUMBER)
- Example: links to the 3rd and 6th posts by sam: sam ([#3]({resource_url}/3), [#6]({resource_url}/6))
- Example: link to the 6th post by jane: [agreed with]({resource_url}/6)
- Example: link to the 13th post by joe: [joe]({resource_url}/13)
- When formatting usernames either use @USERNAME OR [USERNAME]({resource_url}/POST_NUMBER)

So you can see <POST_NUMBER>, and especially {resource_url}. At least the brackets seem to support some specific variables.

First question: is there an comprehensive list of the variables I can use, like resource_url?

Second question: is this the way to refer to specific data from topics? For example, what if I want to say in the prompt “When searching the forum, consider only the topics which are solved and closed”. What is the best way to accomplish this?

Third question (related to second): is this also an alternative way to say things like "consider only topics in the #support category". ?

Fourth question: If it’s possible to do what is described in third question, then why there is an explicit field “Base Search Query”? What is it exactly for, and how to use it?

1 Like

Given that the prompt customization project is not yet shipped we don’t have anything like that at the moment. We are underway moving all features to personas so they can have their prompts customized, so when we ship that we can build a Documentation topic listing all the options.

If your persona has access to the search tool, it can use the closed status when searching, see

That should work too, see

It’s a way to append conditions to your search, and use the same syntax you would use on the /search page in Discourse. In your example it would be

#support status:solved
1 Like