Example 2: Extract existing parameters when generating expressions

You can use SnapGPT to extract existing parameters when generating expressions for the Mapping table.

In this example, we defined the bucket and path parameters in the pipeline settings.

Parameters in pipeline settings

  1. Open a Mapper Snap and place your cursor in the Expression field.
    Generate SnapLogic expressions appears above the prompt (lower right side).
  2. Click Generate SnapLogic expressions to generate an example prompt.
    Note that the example prompt is highlighted.
  3. Replace the highlighted text in the prompt with what you want SnapGPT to generate.
    In this example we replaced the highlighted text with Generate SnapLogic expressions to extract bucket and path.

    Suggested mappings are displayed in the Preview panel.

  4. In the SnapGPT Preview, select the mappings you want to keep and click Keep Selected.
    Preview of auto-generated mappings
The Expression and Target path fields are now populated with the generated mapping. The updated fields are highlighted in green.

Updated Mapping table in the Mapper Snap