Example 1: Generate expressions in the Mapper Snap

You can use SnapGPT to generate expressions for the Mapping table.

  1. Open the Mapper Snap and SnapGPT.
    Generate SnapLogic expressions appears above the prompt (lower right side).
  2. Validate the pipeline to get the preview of the input data.
    Skip this step if there is no data to be provided for the Mapper Snap.
  3. Click Generate SnapLogic expressions to generate an example prompt.
    Note that the example prompt is highlighted.
  4. 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 exchange rates and currency from european central bank. Example prompt to exchange rate information
  5. In the SnapGPT Preview, select the mappings you want to keep and click Keep Selected.
    Preview of auto-generated mappings
The mappings are added to the Mapping table in the Mapper Snap.

Updated Mapping table in the Mapper Snap