Stop Mapping Fields by Hand: Automating Drupal Migrations with AI + Migrate API

Session Room
Room 1 (Amphitheater Pantheon)
Time Slot
Duration
40 min
Speaker(s)
Session track
Coding & Site Building
Experience level
Intermediate

Stop mapping fields by hand: this session shows how the module AI Content Migrate can detect repeatable patterns in legacy pages, propose content models and mappings, generate selectors, recover media, and produce ready-to-run migration files that generates faster iterations, fewer surprises, and safer rollbacks.

Prerequisite
  • Basic Drupal content knowledge (content types, fields, media, taxonomy).
  • A working understanding of Drupal Migrate API concepts (source/process/destination, YAML-based migrations).
  • Basic HTML/DOM familiarity and how CSS selectors or XPath extract data.

It will be presented the following Drupal module at his last version: https://www.drupal.org/project/ai_content_migrate

Outline

Migrating content into Drupal is rarely “just a Migrate API job”. Before you even write your first YAML, you spend days (or weeks) doing the unglamorous work: content inventory, model discovery, field mapping, CSS/XPath selector extraction, edge cases, media retrieval, and constant back-and-forth with stakeholders.

AI Content Migrate focuses on the pain before the pipeline. It uses AI to:

  • Analyze legacy pages (HTML or rendered snapshots) and identify repeatable patterns.
  • Propose a Drupal content model (content types + fields) based on the discovered structure.
  • Suggest field mappings and generate selectors for each field (title, body, taxonomy-like chunks, dates, etc.).
  • Recover media (images/documents) and attach it to the right entity/field.
  • Automatically generate Drupal Migrate API files (YAML + supporting configuration) from the approved mappings, so you can run the migration with minimal manual boilerplate, and support both dry-runs and rollbacks for safer iterations.

This session is a practical blueprint for combining Drupal Migrate API, repeatable extraction rules, and a human-in-the-loop workflow that makes migrations faster, more cost-effective, and more reliable.

Learning Objectives

Attendees will learn how to:

  • Use AI to accelerate content discovery and model definition for legacy sites.
  • Build a repeatable mapping workflow: AI suggestions → human review → generated Migrate API files/configs.
  • Reduce migration risk
  • Integrate AI-assisted mapping into standard Drupal Migrate API pipelines.
  • Control migration LLM costs and data exposure

Educational Track - Drupal in a Day Sponsors

Social Night Sponsors

In-Kind Sponsors

Media Partner Sponsors