Analyze and Chat with XML Files using GPT and LangChain

Go to Workflow
0 views
Built by Sarfaraz Muhammad Sajib Sarfaraz Muhammad Sajib
Created on June 05, 2026

Description

This workflow allows interactive conversation with the content of an XML file using OpenAI and LangChain. It fetches an XML feed from a specified URL, parses the XML, and enables an AI agent to respond to user queries based on the XML's structure and data.

What It Does:
Triggered via webhook or manual execution.
Sets and fetches an external XML feed URL.
Parses the XML into a readable format.
Connects OpenAI GPT via LangChain for intelligent chat.
AI agent answers questions like extracting nodes, attributes, or structure from the XML.

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi