Map to target

Generate expressions for a Mapper Snap using SnapGPT.

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.

For this example, we'll generate both an expression and a target path from the SnapGPT pane. The example pipeline obtains data from a feed of financial information in GESMES format and outputs it to a JSON file. With a Mapper Snap between the input and output Snaps, generate the required expressions as follows:

  1. In Designer, click the Mapper Snap to open the Settings tab.
  2. Enter a request in the SnapGPT prompt. For this example, we'll use: Generate SnapLogic expressions to extract exchange rates and currency from European Central Bank.
    A dialog asks you to confirm validation.
  3. Click Confirm to proceed.
    When SnapGPT finishes, the SnapGPT Preview window opens.
  4. In the SnapGPT Preview window, select the generated mappings and click Keep Selected.
    Preview of auto-generated mappings
SnapGPT adds the expressions and target paths to the Mapping table in the Mapper Snap as shown below. The downstream Snap can then write the data to the appropriate location.

Updated Mapping table in the Mapper Snap