# Allow custom prompt for users to generate content through GPT

**URL:** <https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51>\
**Category:** Feature Requests\
**Tags:** ai\
**Created:** [August 11, 2023, 5:16am UTC](https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51 "2023-08-11T05:16:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![annie\_appflowy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/annie_appflowy/32/177_2.png) [@annie\_appflowy](https://forum.appflowy.com/u/annie_appflowy)\
**Post date:** [August 11, 2023, 5:16am UTC](https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51/1 "2023-08-11T05:16:22Z")

</div>

### Description

As a user I would like to have the ability to add prompt for generating content through openAI..

For example if there was a third option in this menu which opened a text box for me to type my own prompt. So after “Summarise” and “Fix spelling” there could be a 3rd option “Enter your own prompt”

[![image](https://us1.discourse-cdn.com/flex016/uploads/appflowy/original/1X/4a0eb87349f17f973d900e00c251ad5a7bdee992.png)](https://user-images.githubusercontent.com/8165978/232549376-76ec1fac-e3b0-4eca-9f14-5a0a5efd9a10.png)

For example if I am making a note to learn spanish it would be helpful for me to type in “Give me list of 10 spanish greetings” or highlight something I wrote in spanish and type “Check my sentence if there are mistakes in it.”

### Impact

I think this can greatly enhance user experience and productivity for all users of AppFlowy.

### Additional Context

I am not proficient in flutter but I have experience with JavaScript and Python. But I am currently taking a look at getting started guide for development, may be I can implement something like this?

---

<div class="post-metadata">

**Author:** ![annie\_appflowy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/annie_appflowy/32/177_2.png) [@annie\_appflowy](https://forum.appflowy.com/u/annie_appflowy)\
**Post date:** [August 11, 2023, 5:16am UTC](https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51/2 "2023-08-11T05:16:34Z")

</div>

I think it would make sense if it simply worked like all of the current AI features, where you make a selection, and then you have something like “Generate from selection”.

---

<div class="post-metadata">

**Author:** ![annie\_appflowy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/annie_appflowy/32/177_2.png) [@annie\_appflowy](https://forum.appflowy.com/u/annie_appflowy)\
**Post date:** [August 11, 2023, 5:16am UTC](https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51/3 "2023-08-11T05:16:44Z")

</div>

Thank you for your reply! I had the same thought as well.

My personal use case was something like this: I wanted to highlight a list of 10 items where each item in the list was as follows.

Sentence1 - Sentence1 in German that I did myself.  
Sentence1 - Sentence2 in German that I did myself.

Now, if I wanted to use GPT to highlight my mistakes in bold, I would need to add a line “Check the following translations and highlight my mistakes in bold” at the end or beginning before selecting the whole text, which is not a problem but may not be as intuitive, I think.

But I admit that just generating content from selection is more straightforward and will be fine for me as a user 🙂

While I’m on the topic, my personal use case assumes that we can insert markdown-formatted text in AppFlowy, but is this really the case? I recently tried to copy a list from ChatGPT to AppFlowy, and it did not copy. I assumed this was because copying from Markdown is probably not yet supported

---

<div class="post-metadata">

**Author:** ![annie\_appflowy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/annie_appflowy/32/177_2.png) [@annie\_appflowy](https://forum.appflowy.com/u/annie_appflowy)\
**Post date:** [August 11, 2023, 5:16am UTC](https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51/4 "2023-08-11T05:16:57Z")

</div>

I’m not entirely sure I understand, in your scenario you want to “highlight” mistakes in bold, but isn’t the `fix spelling` sufficient for your usecase?

---

<div class="post-metadata">

**Author:** ![annie\_appflowy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/annie_appflowy/32/177_2.png) [@annie\_appflowy](https://forum.appflowy.com/u/annie_appflowy)\
**Post date:** [August 11, 2023, 5:17am UTC](https://forum.appflowy.com/t/allow-custom-prompt-for-users-to-generate-content-through-gpt/51/5 "2023-08-11T05:17:10Z")

</div>

Unfortunately in my personal use case it was more than spelling. it was about changing grammar and semantics of the written text.

The clock is ticking on the wall : Die Uhr tickt um der Wand.

In above sentence “um” is grammatically incorrect. It should be “an”, So I would like to highlight it and say “Give me correct sentence” which ideally should insert as follows.

If I highlight the german part of the sentence in AppFlowy and use fix spelling menu, it gives me following.

[![image](https://us1.discourse-cdn.com/flex016/uploads/appflowy/original/1X/3258bcb710f90cfff2a407e25d8591bef3318906.png)](https://user-images.githubusercontent.com/8165978/232852869-cbab3a80-c2c6-4e2b-a777-05a58d1e2f0c.png)

Compare this to a prompt i made for language helper.

[![image](https://us1.discourse-cdn.com/flex016/uploads/appflowy/original/1X/307defe085483b51542c9dc7547646f1b83f3aca.png)](https://user-images.githubusercontent.com/8165978/232854278-91d6436d-dc58-43b6-b968-700a376dfe6d.png)

So if we had an option to enter a custom prompt so user can run it against any highlighted text it would be really helpful. Additionally if user can save a prompt OR we can show recently used prompt, it will be a really good addition.

Actually I was able to perform this exact thing in one other commercial editor which is similar to AppFlowy. However, i like the idea of using my opensource and having editor locally hosted so I switched to AppFlowy and then realised that this feature could possibly be implemented in AppFlowy too.
