Extract pipeline parameters

SnapGPT can generate expressions for a Mapper Snap that extract and map pipeline parameters to output.

SnapGPT can generate expressions for a Mapper Snap that extract pipeline parameters.

To interact with SnapGPT in a Mapper Snap:
  • Generate expressions by entering your prompt in an Expression field, and clicking the SnapGPT icon, .
  • Generate both an expression and a target path by entering your prompt in the SnapGPT pane.

This example uses the SnapGPT pane to generate both the expression and the target path.

The pipeline must first contain parameters for SnapGPT to extract. For this example, the pipeline settings include bucket and path parameters:

Parameters in pipeline settings

  1. In Designer, open a pipeline that has parameters.
  2. Add or open an existing Mapper Snap and place your cursor in the Expression field.
  3. In the SnapGPT pane, enter a prompt.
    For this example, we'll use Generate a SnapLogic expression to extract bucket and path pipeline parameters.
    The SnapGPT Preview panel opens:
    Preview of auto-generated mappings

  4. Select the generated mappings and click Keep Selected.
SnapGPT populates the Mapper Expression and Target path fields with the generated mapping:

Updated Mapping table in the Mapper Snap