AI Engine

AI Smart Mapping, Quality Audits & Content Enrichment

Configure Gemini, OpenAI, Claude, or Grok keys for automatic column mapping, pre-import quality audits, and rich content generation.

Frexten Engineering Team
Updated 2026-11-20

Article Overview

  • Category: Artificial Intelligence, Smart Mapping & Content Enrichment
  • Audience: Digital Agencies, Content Marketers & Store Owners
  • Applies To: NextGen Smart Data Importer Pro
  • Purpose: Guide for configuring and utilizing the native AI Engine (Google Gemini, OpenAI GPT-4o, Anthropic Claude 3.5, and xAI Grok) for instant column auto-mapping, dataset quality audits, and on-the-fly content generation.

1. Executive Summary

Spreadsheets received from raw supplier feeds often contain non-standard, cryptic column headers:

  • CUST_COL_42 (actually the WooCommerce Regular Price)
  • TXT_DESC_DE (a German HTML product description with broken formatting)
  • IMG_THUMB_CDN_A (the product's featured photo)

Instead of forcing users to manually map dozens of ambiguous fields, NextGen Smart Data Importer Pro integrates directly with leading Large Language Model (LLM) APIs.

With one click, the AI Engine:

  1. Understands Semantic Context: Samples the first 5 rows and infers that CUST_COL_42 is a numeric price.
  2. Performs Quality Pre-Audits: Flags missing values, malformed emails, and invalid URLs before you start the import.
  3. Enriches Content On-the-Fly: Generates SEO meta descriptions, cleans up supplier HTML, or translates titles into target languages during ingestion.

2. Multi-Model AI Engine Architecture

Architecture Flowchart
flowchart TD File["Raw Supplier Feed
(Cryptic Headers: F1, F2, F3)"] --> Sampler["NextGen Sample Extractor
(Extracts rows 1 - 5 + headers)"] Sampler --> MultiModel{"Configured AI Provider"} subgraph Providers["Supported Enterprise LLM Providers"] Gemini["Google Gemini (1.5 Flash / Pro)"] OpenAI["OpenAI (GPT-4o / GPT-4o-mini)"] Claude["Anthropic Claude (3.5 Sonnet)"] Grok["xAI Grok (Grok-2)"] end MultiModel --> Providers Providers --> Response["Structured JSON Schema Response"] Response --> Action1["1. Automatic Column-to-Field Mapping"] Response --> Action2["2. Quality Score & Health Report"] Response --> Action3["3. Generated SEO Meta Descriptions"]

3. How to Configure Your AI Provider

  1. In the WordPress sidebar, open NextGen Importer ➔ Global Settings ➔ AI Engine.
  2. Select Active Provider: Choose from Google Gemini, OpenAI, Anthropic Claude, or xAI Grok.
  3. Enter API Key: Paste your secure API key. Keys are encrypted at rest using WordPress salt credentials.
  4. Select Model:
    • Google Gemini 1.5 Flash: Recommended for high-speed, cost-effective auto-mapping and audits.
    • OpenAI GPT-4o-mini: Fast and accurate for complex taxonomy classification.
    • Claude 3.5 Sonnet: Superior for nuanced copywriting and multi-lingual translation.
  5. Click Verify & Save Connection. NextGen executes a live ping test to verify credential health.

4. Key AI Capabilities

Feature A: 1-Click AI Smart Auto-Mapping

In Step 2 (Field Mapping), click [ ✨ AI Smart Map ]:

  • NextGen dispatches a prompt containing your header names and sample cell values to the AI provider.
  • The AI returns a structured JSON mapping matrix.
  • NextGen instantly populates titles, content, custom ACF fields, product attributes, and prices with high accuracy.

Feature B: Pre-Import Dataset Quality Audit

Before running a large import, click [ 🔍 AI Quality Review ]:

  • Evaluates data integrity across missing required fields, inconsistent phone formats, and empty image columns.
  • Provides a Dataset Health Score (0–100%) with specific warnings:
text
QUALITY AUDIT REPORT (Score: 94/100)
  ✓ 980 of 1,000 rows have complete titles and prices.
  ⚠️ Warning: 14 rows have invalid image URLs missing 'https://'.
  ⚠️ Warning: 6 rows contain unescaped quotes in product descriptions.

Feature C: On-the-Fly Content Enrichment & SEO

Need meta descriptions generated for 2,000 products that lack them?

  • In Field Mapping, select AI Generate Description.
  • NextGen's batch processor dynamically prompts the AI using the product title and features to generate a concise, 155-character SEO meta description during import.

5. Developer Hook: nextgen_importer_ai_prompt

Developers can customize the system instructions dispatched to the AI model:

php
add_filter('nextgen_importer_ai_prompt', function ($prompt, $context) {
    if ($context === 'mapping') {
        $prompt .= "\nAlways prioritize WooCommerce custom taxonomy fields starting with 'pa_' for attribute columns.";
    }
    return $prompt;
}, 10, 2);

6. Frequently Asked Questions (FAQ)

Q: Does NextGen share my full database with AI providers?

No. NextGen strictly adheres to privacy-by-design. Only column header strings and a small 3-row sample of public product data are transmitted for mapping inference. Sensitive personal data, user passwords, and customer orders are never sent.

Q: Can I use the Community Free Edition without an AI key?

Yes. AI Smart Mapping is an optional productivity accelerator. NextGen's rule-based fuzzy auto-mapper is fully functional in the Free Community edition without requiring any third-party API key.