10up / classifai

Supercharge WordPress Content Workflows and Engagement with Artificial Intelligence.
https://classifaiplugin.com
GNU General Public License v2.0
559 stars 52 forks source link

Key Takeaways / TLDR block #505

Open jeffpaul opened 1 year ago

jeffpaul commented 1 year ago

Is your enhancement related to a problem? Please describe.

A bit similar to the Expand/Reduce content (#488) and Rewrite content tone (#489) features where ClassifAI would assess some/all of the post content and then generate content from that, the idea here would be to have a "Key Takeaways" / "TLDR" / "" block that would process the post title/content/meta and then generate copy that would summarize the post content into a block that (in the expected use case) be at the top-end of a post. The output could be a short paragraph summarizing the content / noting "key takeaways" from the content / having TLDR style bullet points. Think of this like an abstract at the beginning of an academic paper, but for post content.

Designs

There could be a block option for generating a paragraph or list block for the content (e.g. sentences vs. bulleted list).

Describe alternatives you've considered

No response

Code of Conduct

jeffpaul commented 3 months ago

Similar to how the "Excerpt" block will insert the excerpt into the post (alongside the "read more" link)...

excerpt-more-blocks

...perhaps we structure this feature as a "Summary" block (while I like the idea of typing /tldr to generate this block I'm not certain that block name would translate well outside of English (though perhaps in the meta for the block we could include "TLDR", "Key Takeaways", "Abstract", etc to capture other terms folks might use in trying to search out this block?).

Potential Dashicons to use for the block icon: status, excerpt-view, testimonial, or edit-large?

Default prompt: I still need to think this part through, but otherwise open to suggestions here.

Possible examples of block output style/format:

Not yet settled on whether the default should be paragraph or bullet points, but for now sticking with paragraph (certainly a good item to consider for a setting to change the default). So here's perhaps how this could render when generating a "Summary" block... a Heading with "Post Summary" and then a Paragraph with the content returned from the AI service in italics. summary-paragraph

Alternatively if the default is to use bullet points/lists, then it could render like this... a Heading with "Post Summary" and then a List with the content returned from the AI service as list items in italics. summary-list

I recognize that by using the Paragraph and List blocks that there's no easy way to then "toggle" between a paragraph and bullet point view of the Summary, so perhaps this is its own custom Summary block that would otherwise be able to "toggle" between the two variants?

jeffpaul commented 3 months ago

Something that I didn't take into account in my comment above is how to perhaps allow someone to review the content before it's added to the post as well as provide an opportunity to retry/regenerate the summary. Perhaps that's done in a modal like the Expand/Condense approach?

jeffpaul commented 2 weeks ago

Watson's NLU also has an experimental summarization feature that could be useful here.