Skip to main content

Human in the Loop Workflow

This page explains how to create the Human in the Loop workflow.

  1. Export the Prompt studio project as a tool

  2. Now that you've exported a Prompt studio project, let's create a Workflow with Human in the Loop functionality. Navigate to Workflows in the side navigation menu and create a new workflow.

  3. Let's configure the workflow using the streamlined workflow setup interface: img HQR Configuration

    The workflow setup is organized into 4 main configuration steps: img Create New Workflow

    1. Configure Source Connector:

      • Select and configure your data input connector
      • Choose File System from the dropdown
      • Click the Configure button to configure the input file system
      • You'll see your configured connector displayed below
    2. Configure Destination Connector:

      • Select and configure your data output connector
      • Choose Database from the dropdown
      • Click the Configure button to configure the database system
      • You'll see your configured connector displayed below
    3. Select Exported Prompt Studio project:

      • Choose an exported Prompt Studio project for processing your data
      • Your exported project will be displayed
      • Use Change Prompt Studio project link to select a different project
      • Click Configure Settings to modify the tool settings
    4. Deploy Workflow:

      • Deploy your workflow for processing
      • Use Deploy as ETL button to deploy workflows as unstructured data ETL Pipelines with Human in the Loop functionality
  4. In the same Destination DB settings (option 2 shown in above screenshot) click on Configure, Click on the Human in the Loop tab next to the settings tab.

    img HQR Configuration

  5. In the Rules tab, the rules logic can be added

    • Percentage of files sent to Manual Review : The user can set the percentage of files to be sent to HITL (Human-in-the-Loop). Based on this percentage, files will be sent to HITL accordingly. For example, if the percentage is set to 50 and 2 files are processed, then 1 file will be sent to HITL, while the other will be sent directly to the Destination DB.
    • Rule Logic - The user can set the logic to either AND or OR
    • Add Rule - Here, the user can set rules based on specific conditions. All prompt keys (used in Prompt Studio) will be listed, allowing the user to validate conditions. For example, if the key is 'Name,' the user can set a rule such as 'Name starts with Joseph.' Only files that satisfy the condition will be sent to HITL.

    img HQR Configuration

  6. Click on the settings in the HITL tab and set the field value for 'After approval, send result to.' The available options are 'Destination DB' and 'Queue.' Based on the selected option, the file will be sent to the database or the queue after approval.

    img HQR Configuration

  7. Once all the setting are done, Click on save settings this will be reflected in the deployed workflow.