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 (Not Recommended) 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 (Not Recommended) Snap.

    Mapper Snap configuration

  3. Configure the Add Message (Not Recommended) 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 (Not Recommended) Snap to run the added thread.

    Mapper Snap configuration

  5. Configure the Run Thread (Not Recommended) 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 (Not Recommended) Snap.

    Run Thread Snap configuration Run Thread Snap output

    Run Thread Snap configuration


    Run Thread Snap output

To reuse the example pipelines:
  1. Download and import the SLP file into your Environment.
  2. Configure Snap accounts.
  3. Provide Pipeline parameters, if any.