{
  "openruna_format": "flow-graph-v1",
  "title": "Agent with custom HTTP Request",
  "slug": "agent-with-custom-http-request",
  "source_filename": "1267_HTTP_Markdown_Automation_Webhook.json",
  "nodes": [
    {
      "id": "On new manual Chat Message",
      "name": "On new manual Chat Message",
      "integration": "@n8n/n8n-nodes-langchain.manualChat",
      "kind": "trigger"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "HTTP Request",
      "name": "HTTP Request",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Exctract HTML Body",
      "name": "Exctract HTML Body",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Is error?",
      "name": "Is error?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Stringify error message",
      "name": "Stringify error message",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Remove extra tags",
      "name": "Remove extra tags",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Simplify output",
      "name": "Simplify output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Simplify?",
      "name": "Simplify?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "QUERY_PARAMS",
      "name": "QUERY_PARAMS",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "CONFIG",
      "name": "CONFIG",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "ReAct AI Agent",
      "name": "ReAct AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Convert to Markdown",
      "name": "Convert to Markdown",
      "integration": "markdown",
      "kind": "action"
    },
    {
      "id": "Send Page Content",
      "name": "Send Page Content",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "HTTP_Request_Tool",
      "name": "HTTP_Request_Tool",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "CONFIG",
      "to": "HTTP Request"
    },
    {
      "from": "Is error?",
      "to": "Stringify error message"
    },
    {
      "from": "Is error?",
      "to": "Exctract HTML Body"
    },
    {
      "from": "Simplify?",
      "to": "Simplify output"
    },
    {
      "from": "Simplify?",
      "to": "Convert to Markdown"
    },
    {
      "from": "HTTP Request",
      "to": "Is error?"
    },
    {
      "from": "QUERY_PARAMS",
      "to": "CONFIG"
    },
    {
      "from": "Simplify output",
      "to": "Convert to Markdown"
    },
    {
      "from": "Remove extra tags",
      "to": "Simplify?"
    },
    {
      "from": "Exctract HTML Body",
      "to": "Remove extra tags"
    },
    {
      "from": "Convert to Markdown",
      "to": "Send Page Content"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "QUERY_PARAMS"
    },
    {
      "from": "On new manual Chat Message",
      "to": "ReAct AI Agent"
    }
  ]
}