Agent with custom HTTP Request

For platform n8n, this automated workflow processes manual chat messages to fetch and simplify webpage content using HTTP requests. It extracts the main HTML body, removes unnecessary tags, and converts the content to Markdown format. By offering full or simplified output options, it ensures users receive concise information while managing lengthy page content effectively, enhancing clarity and usability.

7/8/2025
20 nodes
Complex
manualcomplexlangchainexecuteworkflowtriggersticky notemarkdownadvancedapiintegrationlogicconditional
Categories:
Complex WorkflowManual TriggeredBusiness Process Automation
Integrations:
LangChainExecuteWorkflowTriggerSticky NoteMarkdown

Target Audience

This workflow is ideal for:
- Developers looking to integrate web content fetching into their applications.
- Data Analysts who need to gather and process web data efficiently.
- Content Creators who want to extract and simplify webpage content for easier consumption.
- Businesses that require automated data collection from web sources for analysis or reporting.

Problem Solved

This workflow addresses the challenge of automatically fetching and processing webpage content. It allows users to:
- Retrieve HTML content from a specified URL.
- Handle errors gracefully, providing informative messages.
- Simplify the content by removing unnecessary tags and links, making it easier to read or convert to Markdown format.
- Limit the length of the output to avoid excessive data processing.

Workflow Steps

  • Manual Trigger: The workflow starts when a user sends a manual chat message.
    2. OpenAI Chat Model: It utilizes OpenAI's GPT-4 model to process user input and prepare for web requests.
    3. Extract Query Parameters: The workflow extracts necessary query parameters from the user's input.
    4. HTTP Request: It makes an HTTP request to the specified URL, allowing for both full and simplified content fetching.
    5. Error Handling: If an error occurs during the HTTP request, the workflow captures it and prepares an appropriate error message.
    6. Extract HTML Body: The HTML body content is extracted from the response.
    7. Content Cleanup: Unwanted tags (like