# Voeg aangepaste persona's toe aan de AI Bot

**URL:** https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644
**Category:** Feature
**Tags:** completed, ai, ai-bot
**Created:** [8 november 2023 om 14:38 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644 "2023-11-08T14:38:00Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [8 november 2023 om 14:38 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/1 "2023-11-08T14:38:00Z")

</div>

I’ve been following a newsletter that’s making the case for custom prompts to lead learners in conversation. [This entry](https://www.oneusefulthing.org/p/almost-an-agent-what-gpts-can-do) provides a structured prompt to have the tutor ask what education level the student is, then prompt for the assigment that they are to do (the instructions explicitly tell the AI **not** to do the assignent!), and then their work. The AI can then give feedback on their work based on the requirements that the work is supposed to fulfill. I did it with a class today and the feedback was surprisingly useful (though I had fairly low expectations).

I did this by forking the plugin, opening `researcher.rb` (looks like I should have used `general.rb`), saving it as `mentor.rb`, then searching for `researcher` and copying/paste/replacing `researcher->mentor`. I made the changes, deployed, and some testing in under an hour. (It even passed the specs!)

What I have suggested in the past was a full-blown way to add an arbitrary number of additional personalities, perhaps by having a category for personalities and using `raw` from the OP as the `PROMPT`. But having done my quick-and-dirty add-a-new-persona solution, I think what might be a much higher return on programming hours is to simply add 1-3 personas that include SiteSettings for the name of the persona and the prompt. Then an admin could quickly try out different prompts simply by changing the SiteSetting rather than re-deploying the plugin.

Is this something that might be considered for a PR? If not, shouldn’t I be able to make an add-on plugin that will add those and avoid having a fork? Any tips on how to do that in broad strokes?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [8 november 2023 om 16:30 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/2 "2023-11-08T16:30:50Z")

</div>

This is timely, as I have just landed in Brazil after attending the OpenAI DevDay conference. One of the new features revealed there is basically what we created as personas built-in into their APIs itself, which they called “Assistants”.

The verdict is still in the air if we will migrate some of the AI Bot into this new API, but if we do it will make a lot easier to create new custom personas, since you only would need to provide a name and the assistant ID.

---

<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: [8 november 2023 om 20:26 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/3 "2023-11-08T20:26:53Z")

</div>

> [@pfaffman](#):
>
> What I have suggested in the past was a full-blown way to add an arbitrary number of additional personalities

I have wanted this for many months, it is a game changer and I have know about this being a game changer for a very long time. We will get there … for sure.

> [@pfaffman](#):
>
> Is this something that might be considered for a PR? If not, shouldn’t I be able to make an add-on plugin that will add those and avoid having a fork? Any tips on how to do that in broad strokes?

Give us a few weeks here, what I can do in the mean time is at least provide a way to create custom personas from the console, and then we can follow on with UI a bit further down the line.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [8 november 2023 om 20:46 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/4 "2023-11-08T20:46:20Z")

</div>

> [@sam](#):
>
> what I can do in the mean time is at least provide a way to create custom personas from the console

That would be great! I hate web browers anyway! 🙂

---

<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: [11 november 2023 om 05:35 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/5 "2023-11-11T05:35:10Z")

</div>

Note, this is the case now 🙂 working on the UI next week

---

<div class="post-metadata">

### Author: ![Mr.X\_Mr.X](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mr.x_mr.x/32/126610_2.png) [@Mr.X\_Mr.X](https://meta.discourse.org/u/Mr.X_Mr.X)
#### Post date: [12 november 2023 om 19:36 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/6 "2023-11-12T19:36:24Z")

</div>

Surely will be waiting for this.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12 november 2023 om 20:06 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/7 "2023-11-12T20:06:14Z")

</div>

I added a agent via rails this morning and it worked just fine. You can look in the specs for an example of how to create one.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [14 december 2023 om 10:18 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/8 "2023-12-14T10:18:54Z")

</div>

I believe this is now possible 🥳

> [@New AI Persona Editor for Discourse](https://meta.discourse.org/t/new-ai-persona-editor-for-discourse/286271):
>
> We are thrilled to announce the release of a brand new feature in Discourse: the AI Persona Editor. This feature, as part of our AI offerings, allows you to customize and enhance the interaction experience on your Discourse platform by tuning the way users interact with Language Learning Models (LLMs) such as Claude or Open AI GPT models via the AI Bot feature. What is the AI Persona Editor? The Persona Editor is an administrative interface that allows you to manage and customize AI personas. …

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [14 december 2023 om 10:19 UTC](https://meta.discourse.org/t/add-custom-personas-to-the-ai-bot/288644/9 "2023-12-14T10:19:09Z")

</div>


