# Add {username} as a template param in AI persona system prompts

**URL:** https://meta.discourse.org/t/add-username-as-a-template-param-in-ai-persona-system-prompts/406846
**Category:** Feature
**Tags:** completed, ai
**Created:** [5 ביולי,‏ 2026,‏ 12:30am UTC](https://meta.discourse.org/t/add-username-as-a-template-param-in-ai-persona-system-prompts/406846 "2026-07-05T00:30:59Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4 באוגוסט,‏ 2026,‏ 5:48am UTC](https://meta.discourse.org/t/add-username-as-a-template-param-in-ai-persona-system-prompts/406846/8 "2026-08-04T05:48:50Z")

</div>

I discussed this with @falco as well, but would like to warn that this is a very sharp implement.

Particularly we already include the user name in the “User” message:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/0/1/a01c5df0d3542c4087280ff7d72480e8be95c674.png)

This is visible from in the ai api logs.

The danger around inserting name at the system prompt is that in cases where there is a multi user interaction in a chain then you can cause system prompt thrashing which causes expiry of cache and which is not ideal and can lead to bad perf.

Now … one thing I noticed in our vllm templates is that we are throwing away name, that explains why CDCK hosted models are missing this feature. I am working on a patch now to fix this.

---

_[View the full topic](https://meta.discourse.org/t/add-username-as-a-template-param-in-ai-persona-system-prompts/406846)._
