apps icon indicating copy to clipboard operation
apps copied to clipboard

Content Generator: SEO Character Limits

Open allanwhite opened this issue 1 year ago • 1 comments

Description

The SEO defaults in the AI Content Generator App do not follow length guidelines, causing prompts to return generated SEO descriptions that are too long.

To reproduce

Use the AI Content Generator App to generate an SEO meta description. This does not impact other features such as translating one field to another language.

Expected behavior

From the Contentful SEO guide:

Ideally, [descriptions must be] be between 100 and 150 characters in length to avoid truncation in search results.

Proposed solution

Modify the values in the prompt parameters here and here to be 150.

In the user's content model inside Contentful, setting a validation to enforce this (GenAI output may vary in length, in spite of prompts to the contrary) will ensure output conforming to Google's SEO guidelines.

allanwhite avatar Sep 04 '24 18:09 allanwhite

Hi @allanwhite

You might consider setting the value at the lower end of the range, since ChatGPT doesn't really respect character counts all that well.

In our testing, we achieved a higher success rate for meeting a 158-character limit using 100 vs 150 for the value in the prompt. (We tested using the Prompt option and pasted both a modified prompt and source content as input.)

aruby-atlas avatar Sep 10 '24 21:09 aruby-atlas

This issue was addressed in this PR: #8900

whitelisab avatar Nov 20 '24 20:11 whitelisab