classifai icon indicating copy to clipboard operation
classifai copied to clipboard

Include Author Name in Excerpt Generation requests

Open jeffpaul opened this issue 6 months ago • 0 comments

Is your enhancement related to a problem? Please describe.

Update the Excerpt Generation functionality to include the post author’s name as an additional input parameter when sending content to the AI service. This can provide more context to the AI model and potentially improve the tone or personalization of generated excerpts.

The author name should be included alongside the post title and post content in the payload sent to the configured AI provider.

Designs

Author context can influence the tone or perspective of content. By including the author’s name, the AI service may be able to generate excerpts that better match the style, authority, or personality of the author which could be especially useful for editorial sites where bylines matter.

Describe alternatives you've considered

  • Include the display name (get_the_author_meta('display_name')) or a filterable value for flexibility.
  • AI prompt templates can optionally include the author's name in a natural way, e.g. “Generate a short excerpt for a post written by {Author Name}...”
  • Maintain backward compatibility for sites that do not wish to include this metadata.

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

jeffpaul avatar May 30 '25 02:05 jeffpaul