AI agents for @webhouse/cms — generate, rewrite, and optimize content using Anthropic Claude or OpenAI.
npm install @webhouse/cms-aiimport { createAIAgent } from "@webhouse/cms-ai";
const agent = createAIAgent({
provider: "anthropic",
apiKey: process.env.ANTHROPIC_API_KEY,
});
const content = await agent.generate({
collection: "posts",
prompt: "Write a blog post about TypeScript best practices",
});See the main repository for full documentation.
MIT