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
| Template | Trigger Keywords | Fields Generated |
|---|---|---|
| Hero Section | hero, banner | heading, subheading, image, CTA |
| FAQ Section | faq, questions | title, repeater of Q/A |
| Testimonials | testimonial, review | title, repeater with quote/author/photo |
| Features Grid | feature, benefit | title, repeater with icon/title/description |
| Pricing Table | pricing, plan | title, repeater of plans |
| Team Section | team, member | title, repeater with photo/name/position |
| Call to Action | cta, call to action | heading, description, button |
| Gallery Section | gallery, portfolio | title, gallery field |
| Contact Info | contact | email, phone, address |
| Product | product, catalog | subtitle, price, gallery, specs |
| SEO Settings | seo, meta | meta title, meta description, OG image |
| Landing Page | landing, website | Combines 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' );—