Answer research questions using OpenAI GPT-4.1 and arXiv papers
Needs changesWhat this workflow does
This AI workflow has 10 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When a chat message arrives.
- Planning Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Json Parser (Code): runs custom JavaScript code
- Check research q (If): checks a condition and branches into true / false
- arXiv Search (HTTP Request): calls an HTTP API
- General Reasoning Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Normalize arXiv (Function): runs custom JavaScript (legacy Function node)
- Json Parser (Code): runs custom JavaScript code
- Arxiv Grounded Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Normalize arXiv: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Normalize arXiv | Code node, mode 'Run Once for All Items' |
Nodes used (7)
- HTTP Request
n8n-nodes-base.httpRequest - Function
n8n-nodes-base.function - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger
From the author
How it works A user query is received via the Chat Trigger node. The Planning Agent decides whether the question requires a general knowledge answer or a research-oriented response. If a research query is detected, the arXiv Search node queries the arXiv API…