47. AI Schema Generation | Field Forge - Custom Fields, Built for Speed
Download Log in

47. AI Schema Generation

Developer Guide

Field Forge can generate field group structures from natural language descriptions. Local template matching works without an API key; API generation requires PRO.

12 Built-in Templates

TemplateTrigger KeywordsFields Generated
Hero Sectionhero, bannerheading, subheading, image, CTA
FAQ Sectionfaq, questionstitle, repeater of Q/A
Testimonialstestimonial, reviewtitle, repeater with quote/author/photo
Features Gridfeature, benefittitle, repeater with icon/title/description
Pricing Tablepricing, plantitle, repeater of plans
Team Sectionteam, membertitle, repeater with photo/name/position
Call to Actioncta, call to actionheading, description, button
Gallery Sectiongallery, portfoliotitle, gallery field
Contact Infocontactemail, phone, address
Productproduct, catalogsubtitle, price, gallery, specs
SEO Settingsseo, metameta title, meta description, OG image
Landing Pagelanding, websiteCombines hero + features + testimonials + CTA

API Generation

php
$ai = FIELDFORGE_AI_Schema::instance();

// Local template matching
$result = $ai->generate( 'landing page with hero and FAQ', 'local' );

// API-based generation (PRO)
$result = $ai->generate( 'real estate listing with floor plans', 'api' );

// Auto: tries local first, falls back to API
$result = $ai->generate( 'product catalog with specifications', 'auto' );

Forge AI Assistant Online

Hi! I'm the Field Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs