ReAct AI Agent with Custom HTTP Request
detail.loadingPreview
This n8n workflow demonstrates a ReAct AI Agent that interacts with external web pages using a custom HTTP Request node. It solves the problem of dynamically fetching and processing web content based on AI-driven instructions.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow orchestrates a ReAct AI Agent to interact with the web. It starts with a manual chat trigger and an OpenAI Chat Model. The core of the workflow is the ReAct AI Agent, which is designed to use tools to solve problems. In this case, the agent is configured to use a custom HTTP Request tool. This allows the agent to dynamically fetch data from URLs provided in the chat input. The workflow then processes the fetched HTML, extracts the body, removes unwanted tags and scripts, and optionally simplifies the content by replacing links and image sources. Error handling is in place for invalid inputs or issues during the HTTP request. The final processed content, or an error message, is then sent back.
Key Features
- Dynamic web page fetching via custom HTTP Request.
- ReAct AI Agent for intelligent decision-making and tool utilization.
- HTML body extraction and cleaning.
- Optional content simplification (removing links/image URLs).
- Robust error handling for invalid inputs and HTTP requests.
- HTML to Markdown conversion for cleaner output.
How To Use
- Trigger the workflow manually.
- Provide a URL as a query parameter in the chat message, e.g.,
?url=https://example.com. - Optionally, include
&method=simplifto simplify the output by removing links and image URLs. - The ReAct AI Agent will fetch the content, process it, and return the result.
Apps Used
Workflow JSON
{
"id": "4164f3f9-4d77-40e1-bf63-c84066ca4251",
"name": "ReAct AI Agent with Custom HTTP Request",
"nodes": 0,
"category": "OpenAI and LLMs",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 4164f3f9-4d77...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
AI-Powered Automation with OpenAI and LLM Templates
Explore n8n workflows that leverage OpenAI and LLM nodes for advanced automation. Includes examples for email categorization, RAG with PDFs, and AI assistants that use predefined API endpoints.
Chat with Local LLMs using n8n and Ollama
Integrate local Large Language Models into your n8n workflows using Ollama and Langchain nodes. This enables conversational AI powered by your self-hosted models, triggered by chat messages.
LangChain Custom Code Node for LLM Interactions
Demonstrates creating custom LangChain tools and LLM chains using n8n's Code node. This workflow allows for advanced, programmable interactions with Large Language Models.