Appearance
AI-Powered Features
AI CMS Pro includes advanced artificial intelligence capabilities powered by OpenAI to enhance content creation, automate tasks, and improve user experience.
Overview
The AI features in AI CMS Pro leverage OpenAI's GPT models to provide intelligent assistance throughout the content management workflow. These features are designed to save time, improve content quality, and streamline your workflow.
Prerequisites
OpenAI API Key
To use AI features, you need an OpenAI API key:
Get an API Key:
- Visit OpenAI Platform
- Sign up or log in to your account
- Create a new API key
- Copy the key (starts with
sk-)
Configure in Admin Panel:
- Navigate to Admin Panel > Settings > General > Configurations
- Scroll to OpenAI Settings section
- Enter your OpenAI API key
- Click Save
Or Configure in
.envfile:envOPENAI_API_KEY=sk-your-api-key-here
Important
Your API key is stored securely and will be used for all AI features. Keep your API key confidential and never share it publicly.
Available AI Features
1. Grammar & Spelling Check
Location: Rich Text Editor (TinyMCE)
Description: Automatically check and correct grammar and spelling errors in your content.
How to Use:
- Open any rich text editor (Blog Posts, Pages, etc.)
- Select the text you want to check
- Click the AI Tools button in the toolbar
- Select Check Grammar & Spelling
- Review and apply suggested corrections
Use Cases:
- Blog post editing
- Page content review
- Email template checking
- Knowledge base articles
2. Text Rewriting
Location: Rich Text Editor (TinyMCE)
Description: Rewrite text to improve clarity, tone, or style while maintaining the original meaning.
How to Use:
- Select the text you want to rewrite
- Click AI Tools in the editor toolbar
- Select Rewrite Text
- Choose your preferred style:
- Professional
- Casual
- Formal
- Concise
- Detailed
- Review and apply the rewritten text
Use Cases:
- Improving content clarity
- Adjusting tone for different audiences
- Making content more engaging
- Simplifying complex text
3. Content Generation
Location: Rich Text Editor (TinyMCE)
Description: Generate new content based on prompts or topics.
How to Use:
- Click AI Tools in the editor
- Select Generate Content
- Enter your topic or prompt
- Specify:
- Content length
- Writing style
- Target audience
- Review and insert the generated content
Use Cases:
- Blog post drafts
- Product descriptions
- FAQ answers
- Knowledge base articles
- Email content
4. Language Translation
Location: Command Line (Artisan)
Description: Automatically translate language files for internationalization.
How to Use:
bash
# Translate all languages using OpenAI
php artisan translations:translate
# Translate specific language
php artisan translations:translate --lang=fr
# Use different provider
php artisan translations:translate --provider=openai
php artisan translations:translate --provider=deepl
# Adjust batch size
php artisan translations:translate --batch=100
# Dry run (test without saving)
php artisan translations:translate --lang=fr --dry-runSupported Languages:
- English (en) - Source
- Turkish (tr)
- German (de)
- Chinese (cn)
- Bengali (bd)
- Arabic (sa)
- Hindi (hi)
- Dutch (nl)
- Italian (it)
- Spanish (es)
- Swedish (se)
- Portuguese (pt)
- Romanian (ro)
- French (fr)
AI Model Configuration
Default Model
AI CMS Pro uses GPT-4o-mini by default, which provides:
- Cost-effective pricing ($0.15 per 1M input tokens, $0.60 per 1M output tokens)
- Fast response times
- High-quality results
- Reliable performance
Model Location
The model is configured in app/Services/AIService.php:
php
protected function getModel(): string
{
return 'gpt-4o-mini';
}Model Selection
You can modify the model in AIService.php if you need different capabilities. However, GPT-4o-mini is recommended for most use cases due to its balance of cost and quality.
API Integration
API Endpoints
AI features are accessible via API endpoints:
Base URL: /api/ai
Available Endpoints:
POST /api/ai/check-grammar- Check grammar and spellingPOST /api/ai/rewrite- Rewrite textPOST /api/ai/generate- Generate content
Authentication: Requires valid API token
Example Request:
bash
curl -X POST https://yourdomain.com/api/ai/check-grammar \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text": "Your text here"}'Cost Management
Understanding Costs
OpenAI charges based on token usage:
- Input tokens: Text you send to the API
- Output tokens: Text generated by the API
Cost Optimization Tips
- Be Specific: Clear, specific prompts reduce back-and-forth
- Batch Operations: Use translation commands for bulk operations
- Review Before Applying: Always review AI suggestions before applying
- Monitor Usage: Check your OpenAI dashboard regularly
Estimated Costs
Grammar Check (100 words):
- ~150 input tokens
- ~50 output tokens
- Cost: ~$0.00003
Text Rewrite (200 words):
- ~300 input tokens
- ~250 output tokens
- Cost: ~$0.00018
Translation (1000 strings):
- Varies by language
- Typically $0.50 - $2.00 per language
Best Practices
1. Content Quality
- Always review AI-generated content
- Edit and refine AI suggestions
- Maintain your brand voice
- Fact-check important information
2. Security
- Never share your API key
- Use environment variables for configuration
- Monitor API usage regularly
- Set usage limits if needed
3. Performance
- Use AI features for drafts, not final content
- Combine AI assistance with manual editing
- Test different prompts for better results
- Save frequently when using AI tools
4. Workflow Integration
- Use grammar check before publishing
- Generate drafts with AI, then refine manually
- Use translation for initial localization
- Leverage rewriting for A/B testing
Troubleshooting
API Key Not Working
Problem: AI features show "API key not configured" error
Solutions:
- Verify API key in Settings > General > Configurations
- Check
.envfile hasOPENAI_API_KEYset - Ensure API key starts with
sk- - Verify API key is active in OpenAI dashboard
- Clear application cache:
php artisan cache:clear
Slow Response Times
Problem: AI features take too long to respond
Solutions:
- Check your server's internet connection
- Verify OpenAI API status
- Reduce text length for processing
- Check server PHP timeout settings
High Costs
Problem: Unexpected high API costs
Solutions:
- Monitor usage in OpenAI dashboard
- Review and optimize prompts
- Use batch operations efficiently
- Consider setting usage limits
Translation Errors
Problem: Translation command fails
Solutions:
- Verify API key is configured
- Check language code is valid
- Ensure source language file exists
- Review error messages in console
- Try smaller batch sizes
Advanced Configuration
Custom Model Selection
To use a different OpenAI model, edit app/Services/AIService.php:
php
protected function getModel(): string
{
// Options:
// 'gpt-4o-mini' - Recommended (cheapest, fast)
// 'gpt-3.5-turbo' - Alternative
// 'gpt-4' - More capable but expensive
return 'gpt-4o-mini';
}Custom Prompts
You can customize AI prompts by modifying the service methods in AIService.php to better match your needs.
Support & Resources
Documentation
Getting Help
- Check the Troubleshooting Guide
- Review FAQ
- Contact support through your CodeCanyon account
Summary
AI CMS Pro's AI features provide powerful assistance for content creation and management. By following best practices and understanding the costs, you can leverage these features to significantly improve your workflow and content quality.
Key Takeaways:
- ✅ Configure OpenAI API key in Settings
- ✅ Review all AI-generated content
- ✅ Monitor API usage and costs
- ✅ Use AI as a tool, not a replacement for human editing
- ✅ Follow security best practices
Last Updated: 1/22/2026