-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new Content Generation Feature #859
base: develop
Are you sure you want to change the base?
Conversation
…odal, allowing you to try again easily
…he summary textarea after submission as it makes no sense to modify that after we've received results
…k on being able to keep track of a conversation history
…sation to happen back and forth
I imagine the primary experience for authors looking to utilize this sort of feature would be opening a new post and then triggering the As I tend to do on these sorts of things, sending up the 🦇🔦 (:batsignal:) for @fabiankaegy to see what he might recommend as well ;) |
For what it's worth, I did think through multiple options before landing on the UI as shown in this PR (not saying that means it's perfect but I didn't just randomly pick it). Summarized some of my quick thoughts on other approaches: I initially thought of adding a new menu link (the same as the My next thought was to just use the normal editor with a button to trigger the process. Meaning someone would add a new post, add a title and then add their summary/bullet points/whatever in the normal block editor. Once ready, you'd click the button to start the process. My concern here was around discoverability. While it's fairly intuitive once you figure it out, it's not clear for new users how you'd go about initializing the process (also a little weird for existing posts that have content already). I then thought of adding a new Content Generation block but had similar concerns here. Once you know the block exists and get used to that workflow it makes sense but for new users, not clear that you have to add that block to get started. The UX also gets a little weird if you happen to already have content in the editor and then you add that block, you end up having this conversation back and forth with AI in the block while still having other content outside of that. This is probably solvable with the right design but in quickly testing, was a little weird (also a little weird once you want to accept the AI content since you're technically already in the block editor and the content you add overwrites what's in the editor, so a little jarring for that block to disappear and you end up at the bottom of the content). That's when I landed on the current approach, especially because it matches how the Generate Titles and Expand/Reduce Content Features already work (which gives us UX consistency). It's fairly clear how to initiate the process and everything is done within the modal, so doesn't matter if there's other content in the editor as that's all hidden while you iterate on things with the AI. I'm happy to change approaches here if we think there's a better user experience to be had though, noting that the decision in #803 will probably impact some of the approach here (though we can always make updates after this is merged / prior to release instead of waiting on that PR to be fully complete) |
Description of the Change
This PR adds in a new Feature to Generate Content, meant to be used to create initial article drafts. Added OpenAI, Azure OpenAI and Ollama as Providers for this Feature, but can add our other generative AI Providers in the future (Gemini, Grok).
This Feature allows you to enter in a summary of what you want written and the LLM will provide a full length article. It also provides the ability to iterate on the article the LLM sends back, if for instance you want to request changes like increasing the length or changing the tone. Once you're happy, you can insert the content into the block editor, overwriting any existing content.
Here's a more detailed step-by-step of how it works:
Generate titles
button, there's a newGenerate content
button. Click this button to start the content generation processSubmit
and this will send that summary off to the LLM (along with our base prompt)Start over
button which will keep the modal open but clear everything out, allowing you to enter in a new summaryRequest changes
button. This will show a new textarea where you can add additional instructions, likeMake the content longer/shorter
orChange the tone of the content to be more professional
Partially closes #841. This Feature does solve the
Generate draft post content from simple input
but does not do anything in regards toEnsuring the generated drafts align closely with the publication’s tone and style
. A follow up PR will be created to help with that pieceVideo
classifai-content-generation-demo-short.mp4
Screenshots
How to test the Change
Follow the details steps above
Changelog Entry
Credits
Props @dkotter, @jeffpaul
Checklist: