> ## Documentation Index
> Fetch the complete documentation index at: https://intunedhq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Flexible automations

> Choose the right approach for your automation

## Overview

Intuned Projects are code-based. You write browser automations in Python or TypeScript, deploy them to Intuned's infrastructure, and run them on demand or on a schedule.

Since you're writing code, you decide the approach: deterministic scripts, AI-driven automation, crawlers, or a combination. This page covers the common patterns and when each one fits.

## Deterministic automations

Deterministic automations use Playwright (or other libraries) to interact with the browser directly. You write selectors, handle navigation, and extract data with explicit logic.

**Trade-offs:**

* Faster execution and lower cost per run (no AI inference)
* Predictable—same input, same output
* Requires upfront work to write and maintain selectors
* Breaks when site structure changes

**Common use cases:**

* Extracting structured data from a known site repeatedly (product prices, job listings, inventory)
* Monitoring sources where speed matters
* Form submissions and data entry where accuracy is critical

**Examples:**

* Product scraper — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/e-commerce-scrapingcourse) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/e-commerce-scrapingcourse)
* Form submission automation — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/rpa-example) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/rpa-example)

## AI-driven automations

AI-driven automations use LLMs to interpret pages and decide actions. You describe what you want instead of writing selectors.

Several libraries/APIs support this approach:

* **Stagehand** — AI-powered browser automation with natural language commands
* **Browser-Use** — Agent framework for browser tasks
* **Computer Use APIs** — Anthropic, OpenAI, Gemini, or any other computer use API
* **@Intuned/Browser** — Intuned's Browser SDK has many data extraction utilities

**Trade-offs:**

* Works across different sites without site-specific code
* Adapts to layout changes and variations
* Slower and more expensive per run
* Less predictable—output can vary

**Common use cases:**

* One-off scraping where selectors aren't worth maintaining
* Gathering data across many different sites (company research, market data)
* Automating workflows on sites that change frequently

**Examples:**

* Computer Use APIs — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/computer-use) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/computer-use)
* Browser-Use agent — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/browser-use)
* Stagehand automation — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/stagehand) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/stagehand)

## Crawlers

A crawler discovers and visits pages beyond a single URL. It follows links, handles pagination, or iterates through sitemaps to process content across a site.

**Crawl4AI** is an excellent library for building crawlers.

**Trade-offs:**

* Discovers pages automatically—you don't need every URL upfront
* Can process hundreds or thousands of pages per Job
* More complex to debug when something fails mid-crawl

**Common use cases:**

* Indexing documentation sites
* Collecting assets (PDFs, images) across a site
* Finding public contact information across directories
* Tracking content changes across competitor sites

**Examples:**

* Crawl4AI — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/crawl4ai)
* E-commerce nested crawler — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/e-commerce-nested) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/e-commerce-nested)
* Native crawler — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/native-crawler) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/native-crawler)

## Hybrid automations

You can combine approaches in a single Project. A few patterns that work well:

### Crawler with conditional parsing

A crawler visits pages across multiple sites. For known structures—job boards on Lever or Greenhouse—it uses deterministic parsers. For unknown sites, it falls back to AI.

This handles common cases quickly and affordably while covering edge cases.

View example (`hybrid-crawler/crawl` API) — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/hybrid-automation) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/hybrid-automation)

### Deterministic automation with AI fallback

A form automation runs deterministic code for the standard flow. If an element isn't found or the structure has changed, it catches the error and hands off to AI.

View example (`hybrid-rpa/fill-form` API) — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/hybrid-automation) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/hybrid-automation)

### Deterministic scraper with AI extraction

A scraper uses selectors for most fields. For fields that need interpretation—like categorizing unstructured text—it calls AI for just those extractions.

View example (`hybrid-scraper/list` & `hybrid-scraper/details` APIs) — [Python](https://github.com/Intuned/cookbook/tree/main/python-examples/hybrid-automation) | [TypeScript](https://github.com/Intuned/cookbook/tree/main/typescript-examples/hybrid-automation)

## Related resources

<CardGroup cols={2}>
  <Card title="@Intuned/Browser SDK" icon="code" href="/automation-sdks/intuned-browser">
    Has some AI-powered data extraction helpers
  </Card>

  <Card title="Browser-Use integration" icon="robot" href="/main/04-integrations/browser-use">
    Run Browser-Use agents on Intuned infrastructure
  </Card>

  <Card title="Stagehand integration" icon="wand-magic-sparkles" href="/main/04-integrations/stagehand">
    Use Stagehand for AI-powered browser automation
  </Card>

  <Card title="Cookbook" icon="book" href="https://github.com/intuned/cookbook">
    Ready-to-use automation examples and recipes
  </Card>
</CardGroup>
