Skip to content
C

ChatFlow

Chat with Claude to build a scraper workflow

Created on 8th August 2026

•

C

ChatFlow

Chat with Claude to build a scraper workflow

What is the problem your project solves?

Building a web scraper today means writing custom extraction code for every site, handling structural drift, and manually stitching together multi-step pipelines — fetch a page, follow links, extract fields, transform, aggregate. Each new data source means starting from scratch, and even simple multi-step scrapes ("get every job listing, then the requirements from each one, then the unique tools across all of them") require real engineering: fan-out/fan-in logic, per-step schemas, retries, and glue code.

This is slow, error-prone, and blocks non-engineers entirely. We wanted to let anyone describe what data they want in plain language and get back a working, typed, executable pipeline — without writing a scraper by hand.

How you are solving it?

ChatFlow is a Chrome extension side panel where you describe a scraping task in a chat with Claude, and Claude interviews you, proposes a plan, and incrementally builds a compiled, executable DAG (directed acyclic graph) representing the workflow.

Built during this hackathon:

  • Chat interface (Chrome extension side panel, no popup/content script) that streams a conversation with Claude, backed by an Express server.
  • Conversational DAG-building agent: Claude uses a set of tools (defineDag, createScraperNode, createLlmNode, createPythonNode, createDemuxNode, createMuxNode, compileDag, proposeDagPlan) to incrementally assemble a workflow graph from the conversation, gated behind an explicit plan-proposal step before anything is built.
  • DAG compiler + linker: turns simple field lists (jobs[].title, jobs[].url, ...) into full JSON Schemas per node, topologically sorts the graph, resolves scope paths for fan-out branches, pairs demux/mux nodes, and validates passthrough fields — so a malformed graph is structurally impossible to compile.
  • Node types: scraper (fetch + extract from a URL), llm (Claude does structured extraction/transformation), python (deterministic transforms, e.g. dedupe/union/sort), plus demux/mux pairs so a single upstream list (e.g. a list of jobs) fans out into N parallel branches and fans back into one aggregated result.
  • Live DAG viewer (@xyflow/react) that renders the compiled graph as it's built, so you can see the pipeline take shape node-by-node.

Example: "scrape every job on this careers page, then pull the requirements for each job, then tell me the unique tools mentioned across all of them" compiles into a 6-node DAG (scraper → demux → scraper → llm → mux → python) with no manual wiring.

The execution engine that actually runs these compiled DAGs against live pages (orchestrator, queues, self-healing scraper runtime) is scoped as the next phase of work — this submission is the conversational compiler and live visualizer, which is the hard, novel part: turning natural language into a structurally-valid, typed, fan-out-aware execution graph.

How Did You Use Claude?

Claude is the core intelligence layer in two places:

  1. As the pipeline builder. The chat backend runs Claude in an agentic tool-calling loop: it interviews the user about what they want scraped, decides on a topology (which nodes, what fan-out/fan-in is needed, what fields each step produces), and calls typed tools (defineDag, createScraperNode, createDemuxNode, createMuxNode, compileDag, ...) to incrementally construct the DAG. The loop is gated with stopWhen: hasToolCall("proposeDagPlan") so Claude must explicitly propose and get the plan right before anything is compiled — this keeps a non-technical user in the loop without them ever touching a schema or writing code.
  2. As a pipeline node. Compiled DAGs can include llm nodes, where Claude performs structured extraction/transformation against a generated JSON Schema at execution time (e.g. "from this list of requirement sentences, return the unique tool and technology names mentioned") — so Claude isn't just the interface, it's also a first-class compute step inside the generated workflow.

Both uses go through a single Anthropic API client wired for structured output (Output.object / schema-constrained generation) so the DAG's declared output schema and what Claude actually returns are always in sync.

What is the deployed URL for this project?

https://github.com/varunbachalli/chat-to-workflow

Discussion

Builders also viewed

See more projects on Devfolio