Create, add, and run the thread

This example pipeline demonstrates how to create a thread, add the message to the specified thread, and run it to get results.

  1. Configure the Create Thread Snap to create a thread. The Snap generates an id for the thread in the output.
    Create Thread Configuration Create Thread Output

    Create Thread Snap Configuration


    Create Thread Snap Output

  2. Configure the Mapper Snap to pass the thread_id generated by the Create Thread Snap.

    Mapper Snap Configuration

  3. Configure the Add Message Snap to add the message to the specified thread.

    On validation, the Snap displays the added message.

    Add Message Snap Configuration Add Message Snap Output

    Add Message Snap Configuration


    Add Message Snap Output

  4. Configure the Mapper Snap to pass the thread_id to the downstream Run Thread Snap to run the added thread.

    Mapper Snap Configuration

  5. Configure the Run Thread Snap to run the thread to get the results.

    On validation, the Snap displays the result for the prompt you provided in the Create Thread Snap.

    Run Thread Snap Configuration Run Thread Snap Output

    Run Thread Snap Configuration


    Run Thread Snap Output

To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic Platform.
  2. Configure Snap accounts, as applicable.
  3. Provide pipeline parameters, as applicable.