Agent with custom HTTP Request
Triggered manually or by an app event. Connects Condition, HTTP request, Markdown. Convert the query string into JSON, apply the limit for a page length Send an error message: 1. If query param was incorrect, return the instruction. AI Agent should pick up on this and adapt the query on the next iteration. 2. If the query is OK and an error was during the HTTP Request, then send back the original
Front matter
name: Agent with custom HTTP Request
description: Triggered manually or by an app event. Connects Condition, HTTP request, Markdown. ### Convert the query string into JSON, apply the limit for a page length ## Send an error message: 1. If query param was incorrect, return the instruction. AI Agent should pick up on this and adapt the query on the next iteration. 2. If the query is OK and an error was during the HTTP Request, then send back the original error message. ## Post-processing of the HTML page: 1. Keep only <BODY> content 2. Remove inline <SCRIPT> tag entirely, as well as: NOSCRIPT, IFRAME, OBJECT, EMBED, VIDEO, AUDI
category: Automation
kind: Workflow
software: Condition|HTTP request|MarkdownAgent with custom HTTP Request
Triggered manually or by an app event. Connects Condition, HTTP request, Markdown. ### Convert the query string into JSON, apply the limit for a page length ## Send an error message:
- If query param was incorrect, return the instruction. AI Agent should pick up on this and adapt the query on the next iteration.
- If the query is OK and an error was during the HTTP Request, then send back the original error message. ## Post-processing of the HTML page:
- Keep only <BODY> content
- Remove inline <SCRIPT> tag entirely, as well as: NOSCRIPT, IFRAME, OBJECT, EMBED, VIDEO, AUDI
Steps
- On new manual Chat Message (noOp)
- OpenAI Chat Model (noOp)
- HTTP Request (httpRequest)
- Exctract HTML Body (set)
- Is error? (if)
- Stringify error message (set)
- Execute Workflow Trigger (executeWorkflowTrigger)
- Remove extra tags (set)
- Simplify output (set)
- Simplify? (if)
- QUERY_PARAMS (set)
- CONFIG (set)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- ReAct AI Agent (noOp)
- Convert to Markdown (markdown)
- Send Page Content (set)
- HTTP_Request_Tool (noOp)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Http/1267_HTTP_Markdown_Automation_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- 💡🌐 Essential Multipage Website Scraper with Jina.ai
- Stickynote Workflow: Condition, HTTP request and Markdown
- Httprequest Workflow: Claude, Aggregate and Code
- Create a short URL and get the statistics of the URL
- Manualtrigger Workflow: HTTP request, Limit and Loop
- Vision-Based AI Agent Scraper - with Google Sheets, ScrapingBee, and Gemini: Google Sheets, HTTP request and Markdown (n8n workflow collection) (Splitout) (1612)
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.