Generate a headline plus alternatives with a style knob (neutral / engaging / seo) and a hard word limit — every claim grounded in the text, no invented specifics.
Turn a text into a headline plus 2–3 alternatives, with a style knob (neutral / engaging / seo) and a hard word limit. The constraint that matters: the headline may only claim what the text claims — engagement comes from phrasing, never from exaggeration. "May cut costs" never becomes "Slashes costs".
| Entrypoint | Renders | Inputs |
|---|---|---|
system | Style definitions + grounding rules + embedded output schema | style, max_words |
user | The delimited text + knobs | text, style, max_words |
Render system as the system message and user as the user message. Pass the shared variables to both renders.
text (string, required) — the article/post/release to headline; may be empty.style (string, required) —
neutral: plain, factual, newswire register.engaging: vivid verbs and curiosity — claims still grounded.seo: front-loaded searchable keywords, no clickbait patterns.max_words (integer, required) — hard cap per headline; the prompt trims rather than exceeds.{
"reasoning": "Core claim: the config lint prevented a repeat incident; strongest seo angle leads with 'cache outage'.",
"headline": "Cache outage postmortem: config lint prevents repeat incidents",
"alternatives": [
"How a misconfigured cache TTL caused a 43-minute outage",
"Config linting added to CI after May cache incident"
]
}
<text> delimiter.summary-grader. The word-count limit is enforced by the prompt but not CEL-assertable (no string split) — count words in your integration if you need a hard gate.Part of the Summarization Essentials collection.