Skip to main content

Create a Task Workflow for exported Tool

  1. Export the Prompt studio project as a tool

  2. Now that you've exported a Prompt studio project, let's create a Workflow that we'll launch as an Task pipeline. First off, let's create a new empty Workflow:

    • From the side navigation menu, choose Workflows 🞂 New Workflow. This should bring up the new Workflow dialog: img Create New Workflow
    • For Workflow Name enter any name for your workflow.
    • For Description enter some detail about the type of workflow.
    • Click on Create Workflow. This should land you in an empty workflow in the Workflow Studio, which allows you to build sophisticated workflows.
  3. Let's configure the workflow. img Create New Workflow

    • Input Configuration: To build an Task Pipeline, choose File System from this list and click on the settings button near the dropdown and configure the input file system
    • Output Configuration: To build an Task Pipeline, choose File System from this list and click on the settings button near the dropdown and configure the input file system
    • Tools Pane: this pane lists all built in and user created custom Tools available in the platform. Prompt Studio projects you export are made available as Tools in this pane from where you an drop and drop them into the Workflow Chain to construct Workflows you want.
    • Workflow Chain: Search for your prompt studio exported project under Tools, and drag and drop it in the workflow container(in between Input and output configuration)
    • Tool Settings Pane: This is where settings for various tools are made available. You'll need to select a Tool from the Workflow Chain in order to change the settings of Tools from here.Below is the detailed screenshot for point no.5 img Create New Workflow
    • Deploy As Task Pipeline: use this button to deploy workflows as unstructured data Task Pipelines.
  4. Now, click on the Deploy As Task Pipeline button and you should see a dialog pop up: img Create New Workflow

    • For Display Name enter the name for the Task pipeline.
    • In Cron Schedule choose the time at which your Task pipeline needs to be triggered.It should in UTC time.
  5. Once you deployed the Task pipeline, it will automatically trigger at the configured time.

    • For Execution logs Click on Task Pipeline-->Actions button of your Task-->View Logs
    info
    1. Once the file is processed in Task pipeline, it will be cached. To run the cached file again, Clear cache and Clear Processed File History under Task Pipeline-->Actions button of your Task.
    2. To trigger the Task pipeline manually, click on Manual Sync under Task Pipeline-->Actions button of your Task.

    img Create New Workflow