Skip to main content
Skip to main content

Drupal AI

Custom Complex Fields

Turn a recipe stored as one text blob into structured ingredient rows with amount, unit, ingredient and extra instructions.

About this video

In this workflow, the initial step is the introduction of a substantial text blob, which contains the recipe of Gordon Ramsay's renowned Beef Wellington. This text, while informative, might lack the structured format desired for easy comprehension and reference.

To address this, the Custom Field module is employed. Within this module, a complex field is crafted, tailored to capture specific elements of a recipe. The design of this complex field encompasses separate segments for the unit (e.g., grams, tablespoons), amount (e.g., 2, 100), ingredient (e.g., beef, mushrooms), and any additional instructions or notes that are pertinent to the ingredient or the cooking step.

Once the complex field structure is set up, the large text blob containing the recipe is presented to the AI Interpolator OpenAI module. Leveraging its ability to understand and parse unstructured text, the module meticulously sifts through the Beef Wellington recipe. It identifies and extracts the various components, placing each in its respective segment within the complex field: unit, amount, ingredient, and extra instructions.

The final output is a neatly structured representation of Gordon Ramsay's Beef Wellington recipe, making it significantly more user-friendly and accessible. Every ingredient and its corresponding details are organized systematically, simplifying the cooking process for those referencing the recipe.

This video is from before the AI Interpolator module became AI Automators, part of the AI module. Module and menu names have changed since, and some steps look different today.

Watch the video

0:00

Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

Chapters

Updated 2 min read

Other ways to consume this

Filed under Workflows Drupal AI
AI modified

Parts of this content were produced by AI.

How was AI used?

The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions.