Content Generator: SEO Character Limits
Opened this issue · 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.
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.)