The plugin should do multiple things:
- The plugin should allow a user to create a specific page, meaning an item in the pages collection, based on available sections in the project using existing UI components and generating content based on text that the user provided.
- The theme of the page. In the future, the plugin should be able to eat the context of the pages itself and know more about the brand, style, product, etc., but right now we want to focus on generating the first pages based on available sections and generating different types of pages, for example blog posts, maybe.
We should use the AI SDK from vercel and base everything on schemas, because schemas in this particular case will provide both type safety for payload collections, etc., as well as a schema for AI providers to generate data for.
The plugin should do multiple things:
We should use the AI SDK from vercel and base everything on schemas, because schemas in this particular case will provide both type safety for payload collections, etc., as well as a schema for AI providers to generate data for.