Skip to content

Integrate Content Generation into Quick Draft widget on admin dashboard #989

@jeffpaul

Description

@jeffpaul

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:
  1. The text from the Content textarea is sent to our Content Generation API.
  2. 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.
  3. 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

No one assigned

    Labels

    help wantedExtra attention is neededneeds:engineeringThis requires engineering to resolve.

    Projects

    Status

    To Do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions