-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Is your enhancement related to a problem? Please describe.
Enhance the existing Quick Draft widget on the WordPress admin dashboard by adding a “Create Draft from Prompt Content” secondary button next to the existing, primary "Save Draft" button. This feature would blend the native Quick Draft workflow with our Content Generation capabilities, allowing users to generate fully fleshed-out draft posts from a simple prompt entered into the Quick Draft Content textarea.
Currently, the Quick Draft widget only saves whatever content the user types as a partial draft. We can extend this to let them generate entire posts directly from their prompt without leaving the dashboard. This would provide a faster workflow for content creators who want to ideate and produce initial drafts without switching between multiple pages or interfaces.
Designs
New UI Behavior:
- Add a secondary button next to "Save Draft" called “Create Draft from Prompt Content” (or something better copyedited from this suggestion ;)
- Users type into the existing Quick Draft Title and Content fields as they normally would.
- Add a spinner/loading state to provide clear feedback while content is being generated.
- On clicking the new button:
- The text from the Content textarea is sent to our Content Generation API.
- The generated result is used to create a new WordPress draft post, pre-filled with the generated body content and the original title, if entered.
- The user sees the new draft post in the "Your Recent Drafts" section that auto-adds at the bottom of the "Quick Draft" widget.
Settings:
- Add an option within Content Generation to toggle this enhancement on/off.
- Default behavior: enabled when Content Generation is configured.
Could later expand to allow selecting:
- Which model/provider to use on-the-fly.
- Approximate word count or “tone” options before submitting.
Describe alternatives you've considered
Acceptance criteria:
- New “Create Draft from Prompt Content” button appears in the Quick Draft widget.
- Uses the existing Content Generation provider selected in ClassifAI settings.
- Generated content populates a new draft post rather than replacing the existing Quick Draft.
- Proper error handling if ClassifAI isn’t configured or the API call fails.
- Nonces and permissions checked to ensure only authorized users can trigger content generation.
- For back-compatibility, Save Draft behavior remains unchanged.
- Fully responsive and accessible in WordPress dashboard.
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Projects
Status