AI
Cosmic offers a suite of features in the dashboard powered by AI to help you build your Cosmic projects faster.
AI Studio
Content Model Generation
The AI Studio generates complete content structures from natural language descriptions. Instead of manually configuring fields, relationships, and validation rules, you can describe what you need and receive a fully functional content model with multiple content types, relationships, and demo content to get started fast.
Content model capabilities:
- Generate content models for any type of website or application
- Add new content types that integrate with existing structures
- Configure relationships between content types automatically
- Create complex multi-language structures with custom validation
Working examples:
- "Create a content model for an e-commerce store with products, collections, and customer reviews"
- "Add an Events content model that relates to my existing blog posts and authors"
- "Set up a portfolio website with projects, skills, and testimonials"
Content Management
Beyond structure creation, the AI handles content generation and management at scale.
Content operations:
- Generate realistic sample content for testing and development
- Bulk update existing content with new fields and metadata
- Maintain consistency across large content datasets
- Apply SEO optimization and structured data automatically
Practical applications:
- "Create 10 sample blog posts with realistic content for my existing blog model"
- "Update all product entries to include pricing and availability status"
Application Development and Deployment
AI-Powered Code Generation
The Cosmic AI Platform generates production-ready applications using your existing content structure. Applications are built with modern frameworks and include proper TypeScript definitions, responsive design, and performance optimizations.
Supported frameworks:
- Next.js applications with server-side rendering
- React dashboards and single-page applications
- Astro static sites with modern tooling
- Vue.js progressive web applications
AI assisted development
Click the "AI chat" button in the top right corner of the Cosmic dashboard to open the AI chat drawer. Use AI chat to learn how to integrate your content into your apps. Available for the admin and developer role.
Get insights from media
Click the "AI chat" button on any media asset to get summaries and insights from PDFs, spreadsheets, documents, and more. Available for all roles.
Generate alt text
To generate alt text for an image, go to any image, find the alt text area, and click the "Generate" button. You can also generate alt text for a group of images at once. Available for all roles.
Generate images
To generate images, open the Media modal, click the "Generate" button, and describe the image you want to generate. Available for all roles.
Auto translate content with AI
You can use Cosmic AI to auto translate content from one language to another. Available for all roles.
Content generation
You can use Cosmic AI to generate content for your projects. Create summaries, SEO optimized content, translations, and more. Available for all roles.
AI Agents
AI Agents are autonomous assistants that can work on tasks independently, either manually or on a schedule. Agents can help you automate content management and application development workflows.
Access Requirements: AI Agents and AI Studio are available to users with Admin or Developer bucket roles only. Editor and Contributor roles do not have access to these features.
Agent Types
Code Agents: Connect to a GitHub repository to build features, fix bugs, and deploy code changes. Code agents work on isolated branches and can create pull requests when complete.
Content Agents: Generate, update, and manage CMS content. Content agents can create new objects, update existing content, and perform bulk operations.
Key Features
- Parallel Execution: Run multiple agents simultaneously (limits based on your plan)
- Scheduled Tasks: Set agents to run on a schedule (available on paid plans)
- Branch Isolation: Code agents work on separate Git branches to prevent conflicts
- Progress Tracking: Monitor commits, files changed, and real-time status updates
- Email Notifications: Receive updates when agents complete their work
- Pull Request Management: Agents can create PRs for code review before merging
- Progressive Discovery: Content agents can crawl web content to inform their work
Plan Limits
Agent limits are enforced in two tiers:
Plan-Based Limits (varies by plan):
- Free Plan: 2 agents at a time
- Paid Plans: More agents based on your plan (check your plan details)
- Scheduled Agents: Only available on paid plans
Hard Limits (absolute maximum):
- Code Agents: Maximum 5 active agents per repository
- Content Agents: Maximum 5 active agents per bucket
- Scheduled Agents: Maximum 3 scheduled/recurring agents per repository
Note: Plan limits are checked first. Even with a paid plan, you cannot exceed the hard limits.
Usage Examples
Code agent examples:
- "Build a contact form component with form validation and email integration"
- "Add dark mode support to the entire application"
- "Optimize images and implement lazy loading"
Content agent examples:
- "Create 5 blog posts about sustainable living based on recent news"
- "Update all product descriptions to include sustainability information"
- "Generate a weekly newsletter from the top blog posts"
Creating an Agent
- Navigate to the AI Agents page in your bucket
- Click "Create Agent"
- Choose your agent type (Repository or Content)
- Describe the task you want the agent to complete
- (Optional) Set a schedule for recurring execution
- (Optional) For content agents, enable Progressive Discovery to crawl web content
Scheduling Options
Agents can be configured to run:
- Manually: Execute on-demand when you need them
- Hourly: Run every hour for frequent updates
- Daily: Run once per day at a specified time
- Weekly: Run on specific days of the week
- Monthly: Run on specific days of the month
Note: Scheduled agents are available on paid plans. Free plans are limited to manual execution only.
Agent Limits by Plan
Agent limits apply at the project level (for standalone projects) or workspace level (for workspace projects):
- Free Plan: 2 agents per project (manual execution only)
- Starter Plan: 5 agents per project (includes scheduling)
- Pro Plan: 10 agents per project (includes scheduling)
- Enterprise Plan: Custom agent limits
Progressive Discovery
Agents can use Progressive Discovery to crawl and analyze web content before generating or updating CMS content. This feature allows agents to:
- Research current trends and topics from specified websites
- Gather real-world examples and data
- Reference actual sources with accurate URLs
- Create content informed by the latest information
To use Progressive Discovery, enable it when creating a content agent and specify the URLs or topics you want the agent to explore.
Usage and limits
Cosmic AI is available on all Cosmic plans with varying limits. You can add more tokens to your account by upgrading your plan or adding the AI tokens add-on. Go to the pricing page to learn more.
Tokens
Tokens are the unit of usage for Cosmic AI. In general, 1 token equals 1 word or 4 characters. You can view your AI usage from the Usage section of your projects.
Input tokens are the number of tokens used to in your request. When generating image alt text, the input token count is 3,000.
Output tokens are the number of tokens generated by the AI. This number depends on the length of the content generated. When generating images, the output token count is 17,000.
Getting started
Log in to your Cosmic account and start using Cosmic AI today.