mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #2286] [FR] : Allow custom prompt for users to generate content through GPT #951
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#951
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Akif-Vohra on GitHub (Apr 17, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2286
Originally assigned to: @richardshiue, @appflowy on GitHub.
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"
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?
@Xazin commented on GitHub (Apr 17, 2023):
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".
@Akif-Vohra commented on GitHub (Apr 17, 2023):
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
@Xazin commented on GitHub (Apr 17, 2023):
I'm not entirely sure I understand, in your scenario you want to "highlight" mistakes in bold, but isn't the
fix spellingsufficient for your usecase?@annieappflowy commented on GitHub (Apr 17, 2023):
I suppose it's similar to https://github.com/AppFlowy-IO/AppFlowy/issues/1970
@annieappflowy commented on GitHub (Apr 17, 2023):
Could you please submit another issue to report this bug?
Please provide us with the text you wanted to copy.
@Akif-Vohra commented on GitHub (Apr 18, 2023):
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.
Compare this to a prompt i made for language helper.
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.
@Akif-Vohra commented on GitHub (Apr 18, 2023):
Hey! sure. I created a bug report with full details. https://github.com/AppFlowy-IO/AppFlowy/issues/2288
@Xazin commented on GitHub (Apr 22, 2023):
Alright it makes sense. The prompt we use to trigger the AI in my opinion can be a bit loose.
It might be an idea to modify the existing fix spelling into an overall command that fixes spelling, grammar, and punctuation.
@annieappflowy commented on GitHub (May 28, 2025):
Supported
we'll need to enable access to Custom Prompts via the toolbar