What problem does it solve?
Developers who want to generate, summarize, or rewrite Webiny Headless CMS entry content programmatically often end up calling an LLM directly, which means managing API keys, picking models, and hardcoding prompts. This Skill shows how to delegate that work to the AI Power Ups extension so the provider, Projects, and Writer/Reader Personas the user already configured are applied automatically.
Core Features & Use Cases
- Configured AI generation: Inject
CmsGenerateEntryContentUseCase from webiny/api/ai-powerups and call execute(...) with a model id, prompt, and optional project or persona ids.
- Safe output handling: The result is an entry-shaped object keyed by field ids; read only the fields you want (e.g.
aiSummary) instead of writing the whole object back, then persist with UpdateEntryUseCase.
- Admin persona picker: Use
GetSettingsFeature from webiny/admin/ai-powerups to list configured Projects and Personas so users can pick one in the Admin UI.
- Use Case: A bulk action whose
processData generates a one-sentence marketing summary for each selected entry and writes it into an aiSummary field as a background task.
Quick Start
Ask the AI to add a bulk action that uses CmsGenerateEntryContentUseCase to generate an aiSummary field for selected CMS entries with the configured AI Power Ups provider.