# (הוחלף) Discourse AI - Composer AI Helper

**URL:** https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741
**Category:** Site Management
**Tags:** ai, ai-helper
**Created:** [24 באפריל,‏ 2023,‏ 7:40pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741 "2023-04-24T19:40:25Z")
**Posts on this page:** 20
**Page:** 1

<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: [24 באפריל,‏ 2023,‏ 7:40pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/1 "2023-04-24T19:40:25Z")

</div>

This topic covers the configuration of the Composer module of the [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) plugin.

## Feature set

The Composer AI Helper module adds a ✨ button to the composer toolbar, that when clicked let’s you choose between a list of AI-powered tasks to enhance your post.

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/c/7/ec70f0ea2a310ed08ea8a7bb058f44c01ef5e7c6.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/3/5/e358278151148d554f87d72ecbdc0dfe523a04e7.png)

At the moment it can:

- Suggest topic titles
- Proofread
- Translate to English
- Create markdown tables

## Providers

This model can use the following providers for it’s feature set:

- OpenAI ChatGPT, using either `gpt-3.5-turbo` or `gpt-4`. Defaults to `gpt-3.5-turbo`.

- Anthropic Claude, using the `claude-v1` model.

## Settings

- composer\_ai\_helper\_enabled: Enables or disables the module

- ai\_helper\_allowed\_groups: Groups that have access to the feature. Defaults to staff and TL4.

- ai\_helper\_allowed\_in\_pm: If the button will show when composing in PMs. Disabled by default.

- ai\_helper\_model: Which AI model to use. Defaults to `gpt-3.5-turbo`.

- ai\_openai\_api\_key: An API key obtained at [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys). See below for more help. Necessary if ai\_helper\_model is either `gpt-3.5-turbo` or `gpt-4`

- ai\_anthropic\_api\_key: An API key obtained at [https://console.anthropic.com/docs/access](https://console.anthropic.com/docs/access). See below for more help. Necessary if ai\_helper\_model is `claude-v1`.

## Need help setting up API keys?

The following is a guide to setting up API keys so they can be used for Discourse AI. In this example, we are using OpenAI to generate the keys but the process would be similar for other platforms such as Claude. Platforms will always change so this guide may not reflect 100% process.

_Note: You will need a paid plan and have to pay per usage. See here for up-to-date[details and pricing.](https://openai.com/product)_

#### Generate the API keys

1. Log in to Open AI. An API key can be obtained here [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys)
2. Generate the API Key
3. Once the key is generated, store it in a safe and secure place and copy it

 ![Screenshot 2023-08-29 at 10.35.27 AM](https://global.discourse-cdn.com/meta/original/4X/1/a/8/1a870fc07d50af9775518af43b1fd277d79204de.png)

#### Using API key for Discourse AI

1. Navigate to your Discourse profile
2. Go to Admin settings and then Plugins
3. Search or find `Discourse AI` and click settings
4. Search or find `ai_openai_api_key` and input your copied-over key

 ![Screenshot 2023-08-29 at 10.59.42 AM](https://global.discourse-cdn.com/meta/original/4X/8/2/e/82ea8dcc90ec21ab33d3bc033d608a9fa6676174.png)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [28 ביוני,‏ 2023,‏ 5:10pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/2 "2023-06-28T17:10:27Z")

</div>

A post was split to a new topic: [How to re-run fixtures on db?](https://meta.discourse.org/t/how-to-re-run-fixtures-on-db/269927)

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [2 ביולי,‏ 2023,‏ 11:48am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/3 "2023-07-02T11:48:58Z")

</div>

As there are very few sites that have this option in the editor, know that feedback at the early stage of active use is of value.

The [OpenAI Discourse forum](https://community.openai.com/) has this ability active in the editor and I use it often with the proofread option

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/2/4/e24afe654313404a6e9e5f6dfdea8fc295c66fea.png)

However I also use it as a moderator but as a moderator I actually need to not only proofread the text but to give it a nice tone. Thus I often have to copy the text from the Discourse editor into ChatGPT placing the text in a fenced section, `````, with the prompt

> Proofread and give nice tone.

If that option or similar were added it would be appreciated. 🙂

* * *

Side note:

Often the request to change the tone of the text results in writing that is obviously different than how I write, I write stating more facts than using prose, and when this happens I often add this at the end.

> Polished with the help of ChatGPT

so that those reading it know that I composed the text and the text was refined using ChatGPT.

So if such a line could automatically be added when using the suggested tone modifier option, it would be appreciated. 🙂

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2 באוגוסט,‏ 2023,‏ 7:33pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/4 "2023-08-02T19:33:37Z")

</div>

> [@Falco](#):
>
> At the moment it can:

Any plans on adding settings to enable/disable these?

I would be most interested in a Proofread button (without having to first click the icon and then select “Proofread text”) and a “Translate to Spanish” button.

Also, it would be great if the proofreading process could be more granular (at least by sentence) instead of choosing to either “Save (all) Changes” or “cancel”.

---

<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: [2 באוגוסט,‏ 2023,‏ 8:10pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/5 "2023-08-02T20:10:10Z")

</div>

That’s great feedback, as we are just starting a rewrite of the UI for this feature.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [3 באוגוסט,‏ 2023,‏ 7:42am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/6 "2023-08-03T07:42:06Z")

</div>

In case it helps, for my community it would also be very useful to:

1. Be able to [generate transcriptions](https://platform.openai.com/docs/api-reference/audio/create-transcription) for uploaded mp3 files.

2. Be able to [fine-tune a model](https://platform.openai.com/docs/guides/fine-tuning) and use that for proofreading instead of the default.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [3 באוגוסט,‏ 2023,‏ 8:57am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/7 "2023-08-03T08:57:52Z")

</div>

> [@Nacho\_Caballero](#):
>
> Also, it would be great if the proofreading process could be more granular (at least by sentence) instead of choosing to either “Save (all) Changes” or “cancel”.

A simple solution could be showing a textarea with the proofread version next to (or below) the combined diff.

That way it would be possible to revert changes (since they’re shown in context) and make additional in-context modifications (punctuation, better word choices, etc.) before going back to the regular composer.

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [3 באוגוסט,‏ 2023,‏ 10:00am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/8 "2023-08-03T10:00:42Z")

</div>

Suggestions noted in the [Discourse AI topic](https://meta.discourse.org/t/discourse-ai/259214) that might fit with the Composer AI Helper

* * *

Have the AI suggest markdown edits.  
([ref](https://meta.discourse.org/t/discourse-ai/259214/54))

* * *

Have the AI read the first post of a topic to make sure

- It is coherent
- The category and the tags agree. (I know this can be configured but why not let the AI do it)
- The content of the post agrees with the category and tags.
- The content of the post agrees with the title of the post.
- It is relevant to the forum. (I know spam detectors will catch some of this but sometimes it is not spam and just doesn’t belong)

([ref](https://meta.discourse.org/t/discourse-ai/259214/62))

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [3 באוגוסט,‏ 2023,‏ 10:10am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/9 "2023-08-03T10:10:46Z")

</div>

Suggestion

Note: This is for images with mostly text.

If a post contains an image, especially new users, then include an options to use OCR to extract the text from the image and show the text below the image.

* * *

Users who post just images, especially for source code, make it harder if the source code needs to be copied into a development environment.

Also images AFAIK are not converted to text before with the text being indexed by search engines. As such these post are less likely to be found via a search.

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [3 באוגוסט,‏ 2023,‏ 11:16am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/10 "2023-08-03T11:16:48Z")

</div>

Suggestion

Note: This is for images with no text.

For sites that use lots of images, add a option to create words or descriptions associated with the image and include in the post.

Example Discourse site that uses lots of images.

> **[Nature Photographers Network](https://community.naturephotographers.network/)**
>
> An authentic community for nature photographers

Note: Please add to the list or suggest other similar Discourse sites; personally interested to learn of other such sites.

* * *

AI for image classification

- [https://openai.com/research/clip](https://openai.com/research/clip)
- [Zero-shot image-to-text generation with BLIP-2](https://huggingface.co/blog/blip-2)

* * *

For an impressive use of image to text classification

[https://valentin.deschaintre.fr/text2fabric\_browser\_v1.html](https://valentin.deschaintre.fr/text2fabric_browser_v1.html)

The related paper

“The Visual Language of Fabrics” by Valentin Deschaintre, Julia Guerrero-Viu, Diego Gutierrez, Tamy Boubekeur, Belen Masia ([pdf](https://arxiv.org/pdf/2307.13681.pdf))

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [10 באוגוסט,‏ 2023,‏ 9:23pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/11 "2023-08-10T21:23:07Z")

</div>

Another suggestion: Change the language of the output. Currently, it defaults to English, but in our case we want the output to be in German.

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [21 באוגוסט,‏ 2023,‏ 3:52pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/12 "2023-08-21T15:52:58Z")

</div>

Hello. Will this plugin conflict if it is installed together with [this chatbot plugin](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652)?  
Can I, for example, connect GPT 3.5 TURBO in this plugin, and connect GPT4 in the chatbot plugin. Will this action cause a plugin conflict?

---

<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: [21 באוגוסט,‏ 2023,‏ 4:18pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/13 "2023-08-21T16:18:41Z")

</div>

> [@Aizada\_M](#):
>
> Will this plugin conflict if it is installed together with [this chatbot plugin](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652)?

I have no idea, but if you give it a try let us know.

---

<div class="post-metadata">

### Author: ![Saif](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saif/32/318253_2.png) [@Saif](https://meta.discourse.org/u/Saif)
#### Post date: [29 באוגוסט,‏ 2023,‏ 3:05pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/14 "2023-08-29T15:05:16Z")

</div>

The guide has been updated to help you set up API keys for Discourse AI.

> [@Falco](#):
>
> ## Need help setting up API keys?
> 
> The following is a guide to setting up API keys so they can be used for Discourse AI. In this example, we are using OpenAI to generate the keys but the process would be similar for other platforms such as Claude. Platforms will always change so this guide may not reflect 100% process.
> 
> _Note: You will need a paid plan and have to pay per usage. See here for up-to-date[details and pricing.](https://openai.com/product)_
> 
> #### Generate the API keys
> 
> 1. Log in to Open AI. An API key can be obtained here [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys)
> 2. Generate the API Key
> 3. Once the key is generated, store it in a safe and secure place and copy it
> 
> ![Screenshot 2023-08-29 at 10.35.27 AM](https://global.discourse-cdn.com/meta/original/4X/1/a/8/1a870fc07d50af9775518af43b1fd277d79204de.png)
> 
> #### Using API key for Discourse AI
> 
> 1. Navigate to your Discourse profile
> 2. Go to Admin settings and then Plugins
> 3. Search or find `Discourse AI` and click settings
> 4. Search or find `ai_openai_api_key` and input your copied-over key
> 
> ![Screenshot 2023-08-29 at 10.59.42 AM](https://global.discourse-cdn.com/meta/original/4X/8/2/e/82ea8dcc90ec21ab33d3bc033d608a9fa6676174.png)

---

<div class="post-metadata">

### Author: ![Aaron\_Walsh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaron_walsh/32/312661_2.png) [@Aaron\_Walsh](https://meta.discourse.org/u/Aaron_Walsh)
#### Post date: [18 בספטמבר,‏ 2023,‏ 5:27pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/15 "2023-09-18T17:27:40Z")

</div>

Good evening,

I’m using this Composer AI to help in our forum. However, it doesn’t appear as it’s shown in the Description above, where it adds the Composer AI Helper module button within the toolbar. as you can see below this is how it is

 ![Screenshot_20230918_182355_Chrome](https://global.discourse-cdn.com/meta/original/4X/2/1/3/2132370715c2e31d96bb01de1493ee839ca93354.jpeg)

The issue is that the AI icon is behind the toolbar when I highlight the word, causing a problem when using a mobile device or a tablet.

when i hold down and swipe away i can see it

 ![Screenshot_20230918_182421_Chrome](https://global.discourse-cdn.com/meta/original/4X/7/7/a/77a2d0147d6e70274cadcd16dfddd5706494afaf.jpeg)

---

<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: [19 בספטמבר,‏ 2023,‏ 6:54am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/16 "2023-09-19T06:54:10Z")

</div>

As you can see we’re changing the UI for this feature from a toolbar to a hover button on select.  
It’s still underwork, but it should work on mobile already, at least it’s working on my phone

 ![Screenshot_20230919_075322_Chrome](https://global.discourse-cdn.com/meta/original/4X/7/3/b/73b114140f3f935f567f66fdb30c5680ac793245.jpeg)

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [22 בספטמבר,‏ 2023,‏ 8:57am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/17 "2023-09-22T08:57:46Z")

</div>

> [@Falco](#):
>
> I have no idea, but if you give it a try let us know.

I’ve been testing both plugins for a week now and haven’t found a single conflict between them. For my version of the forum, each plugin does its job well 👍 It’s as if they were created to complement each other 😃

---

<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: [23 בספטמבר,‏ 2023,‏ 11:37am UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/18 "2023-09-23T11:37:23Z")

</div>

2 posts were merged into an existing topic: [Discourse AI - AI Bot (chatbot - ChatGPT- Anthropic)](https://meta.discourse.org/t/discourse-ai-ai-bot-chatbot-chatgpt-anthropic/266012/65)

---

<div class="post-metadata">

### Author: ![fidelio](https://avatars.discourse-cdn.com/v4/letter/f/f1d935/32.png) [@fidelio](https://meta.discourse.org/u/fidelio)
#### Post date: [27 בספטמבר,‏ 2023,‏ 2:29pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/19 "2023-09-27T14:29:48Z")

</div>

Composer AI doesn’t work for me in Safari on Mac OS. I don’t get menu options after highlighting text and clicking the AI tool. It works fine in Chrome.

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [27 בספטמבר,‏ 2023,‏ 5:10pm UTC](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741/20 "2023-09-27T17:10:28Z")

</div>

Thanks @fidelio for making me aware of this. I can reproduce this issue and I will take a look at resolving it very soon!

[Next page](https://meta.discourse.org/t/superseded-discourse-ai-composer-ai-helper/259741.md?page=2)
