Refine pipelines

Use SnapGPT to modify an existing pipeline, such as renaming the Snaps or adding Snaps for specific conditions, such as a Router Snap.

SnapGPT can refine an existing pipeline, such as rename the Snaps or add Snaps for specific conditions, such as a Router Snap in a pipeline.

Example prompt on renaming Snaps

The following example shows how SnapGPT renames the Snaps of a pipeline

  1. In Designer open the pipeline to refine.
  2. If the featured skills cards are not visible in SnapGPT, click the three dots in the toolbar to open the options menu and select SnapGPT home or New chat.
  3. Click Pipeline refinement.
  4. The default example prompt shows the following Refine this pipeline to assign descriptive and meaningful labels to Snaps.
    Pipeline refinement: Rename Snaps

  5. Hit Return or click SnapGPT Go icon. SnapGPT displays an image of the pipeline with the modified Snap names.
    Pipeline refinement: Rename Snaps

  6. From the preview window, choose whether to replace the current pipeline or import on a new tab. Click Cancel to discard the suggested changes and retain the original Snap names.

Example prompt on refining a pipeline to add conditions

The following example shows how SnapGPT refines a pipeline to add a condition. The following pipeline reads JSON data from a file, filters it to extract only paid customers based on license criteria, and writes the filtered results to a new file. Using SnapGPT, the pipeline is refined to write paid and trial customers to separate files based on the license criteria.


Pipeline refinement: Add condition prompt

SnapGPT refines the pipeline to add a Copy Snap after the JSON Parser to create two parallel processing paths for different customer types


Pipeline refinement: Add condition prompt