Token-efficient web browsing components for Langflow. Plasmate converts HTML to Semantic Object Model (SOM) with 10-100x token compression, making web content more accessible and cost-effective for LLM processing.
Plasmate is a browser engine designed for AI agents. Instead of sending raw HTML to your LLM (which wastes tokens on navigation, scripts, and boilerplate), Plasmate extracts the semantic content and structure.
Before (raw HTML): ~50,000 tokens for a typical web page After (Plasmate SOM): ~500-5,000 tokens for the same content
Full-featured web browser component with multiple output formats:
- SOM - Structured JSON optimized for AI comprehension
- Text - Clean, readable text extraction
- Markdown - Formatted markdown output
Inputs:
url(required) - The URL to fetchoutput_format- som, text, or markdownselector- Optional CSS selector for specific contenttimeout- Request timeout in seconds
Simplified component for extracting clean text from any URL. Perfect for:
- RAG pipelines
- Document processing
- Content summarization
Extract all links from a web page with text and URLs. Ideal for:
- Web crawling flows
- Research pipelines
- Site mapping
-
Locate your Langflow custom components directory:
# Default location ~/.langflow/components/
-
Copy all files to the components directory:
cp -r langflow-plasmate/* ~/.langflow/components/plasmate/
-
Restart Langflow
-
Set the environment variable:
export LANGFLOW_COMPONENTS_PATH=/path/to/langflow-plasmate -
Start Langflow:
langflow run
The components require the Plasmate CLI to be installed:
# macOS
brew install plasmate/tap/plasmate
# Linux
curl -fsSL https://plasmate.app/install.sh | sh
# Or build from source
git clone https://github.com/aspect-build/plasmate
cd plasmate && cargo build --release[Screenshot: Plasmate Web Browser component in Langflow]
[Screenshot: Example flow with Plasmate + LLM]
See the example_flows/ directory for ready-to-use Langflow flows:
example_flows/web_research_flow.json
A flow that:
- Takes a URL as input
- Extracts content with Plasmate
- Sends to LLM for summarization
- Returns structured insights
example_flows/rag_pipeline_flow.json
A RAG flow that:
- Fetches multiple URLs with Plasmate
- Chunks the content
- Stores in a vector database
- Enables semantic search
If Plasmate is not in your PATH, configure the binary location:
- In the component, expand "Advanced" options
- Set "Plasmate Binary Path" to the full path (e.g.,
/usr/local/bin/plasmate)
Adjust timeout for slow-loading pages in the "Advanced" options (default: 30 seconds).
Use CSS selectors to extract specific content:
main- Main content areaarticle- Article content.content- Elements with class "content"#main-text- Element with ID "main-text"
Ensure Plasmate is installed and in your PATH:
which plasmate
plasmate --versionOr set the full path in the component's advanced options.
Increase the timeout value in advanced options, or check if the URL is accessible:
plasmate fetch https://example.comSome sites block automated requests. Try:
- A different URL
- Adding custom headers (if supported)
- Using Plasmate Cloud API instead of CLI
- Plasmate - The browser engine for AI agents
- Langflow - Visual AI builder
- Plasmate GitHub
- Langflow Custom Components Docs
MIT