Building a Nutrition Advisor for Formulation Design

This example demonstrates how to build a simple advisor from a template for Formulation Design that provides a summarized report of nutrient reference value amounts on a food formula.

This task shows you how to:

Create and Configure a Pipeline from a Template

Before you begin:
  1. From the Pipeline Creator home page, click New.
  2. Start a new pipeline using the Nutrition Advisor template:
    1. Enter the Title in the Create new pipeline from template dialog box.
    2. Click the Template field to expand the available templates.

      Note: Your role determines which templates are available. For more information, see About Pipeline Templates and Available Templates.

    3. Click + next to Design Advisor and select Nutrition Advisor Template.

Configure Nutrient Reference Values

The Nutrition Advisor template comes configured to generate food labels for the United States and European Union regions. You can add additional regions, nutrient lists, and nutrient limits to the template and create new advisors that run in defined regions.

Context: The input parameters in this example include region, nutrient, and nutrient limit input parameters for a food label generated for the United States region.

  1. Click the work area to open the top-level parameters in the Parameters panel.
  2. From the Parameters panel, click next to the NutrientReferenceValues parameter to open the script editor.
  3. Enter region, nutrient, and nutrient limit parameters in the following format:

    OptionDescription

    Enter a new region section, beginning with an open bracket ({). This example shows the "US" region.

    Specify the preferred labels to display on the food label.
    Add a list of all nutrients to display on the food label.
    For each nutrient on the list, enter the following parameters:
    • "nutrientName": Enter a nutrient name that displays on the food label.
    • "_comment": Specify the units of the nutrient.
    • "value: Specify the daily nutrient limit. The advisor calculates the %DRV against this limit.
  4. Click Save.

Publish the Pipeline

To make your pipeline available to other Design Advisor users, it must be validated by a reviewer.

  1. Open your pipeline and click Save As to associate it with a Secure Collection that is available to other Design Advisor members.
  2. From the Pipeline Creator home page, click Manage Pipelines.
  3. Click the Pipeline Repository tab and select Publish from the Actions column for the pipeline.
  4. Notify the person with Reviewer responsibility for the secure collection that the pipeline is ready for review.

    For information about validating a pipeline, see Validating a Pipeline for Publication.

Result: Once reviewed, the pipeline becomes available to all members of the secure collection with read permissions.