The Missing Link in Your Automation

BrowserWork seamlessly integrates human intelligence into your automated workflows, exactly when and where you need it.

One Simple API

Integrate human intelligence with a single function call.

example.js
// Import and initialize the BrowserWork client
import { BrowserWork } from '@browserwork/client';

// Initialize with your API key
const browserwork = new BrowserWork({apiKey: process.env.BROWSERWORK_API_KEY});

async function processDocument(document) {
  // First try automated processing
  const automationResult = await automaticProcessing(document);

  // If confidence is low, request human assistance
  if (automationResult.confidence < 0.8) {
    const { hitlId, taskStatus } = await browserwork.requestHuman({
      task_id: "123e4567-e89b-12d3-a456-426614174000",
      title: "Verify Document Extraction",
      description: "Please verify the extracted information from this document and correct any errors",
      steps: [
        "Review the original document",
        "Compare with the automated extraction results",
        "Fix any incorrect values",
        "Mark any uncertain fields for review"
      ],
      attachments: [
        {
          url: document.url,
          name: "Original Document",
          type: "document"
        },
        {
          url: "https://example.com/extraction-form.json",
          name: "Extraction Results",
          type: "document"
        }
      ],
      time_constraints: {
        max_elapsed_time_in_seconds: 3600,
        deadline: "2025-04-15T17:00:00Z"
      },
      compensation: {
        cost_in_cents: 250
      }
    });

    // Check the human task status
    console.log(`Human task ${hitlId} submitted with status: ${taskStatus}`);
    
    // Wait for completion and retrieve results
    const humanResult = await browserwork.getTaskResult(hitlId);
    return humanResult;
  }

  // Automation was confident enough
  return automationResult.data;
}

Ready to Transform Your Automation?

Start integrating human intelligence into your workflows today.

Get API Key