Custom LangChain agent written in JavaScript
n8n template #1955Summary
Use templateThis workflow has multiple functionalities. It starts with a manual trigger, "When clicking 'Execute Workflow'", that activates two separate paths. The first path takes a preset string "Tell me a joke" and processes it through a custom Language Learning Model (LLM) chain node. This node interacts with an OpenAI node for query processing. The second path takes another preset string "What year was Einstein born?" and passes it to an "Agent" node. This agent further interacts with a Chat OpenAI node and a custom Wikipedia node to produce the required information. The workflow uses both built-in and custom nodes, and integrates with OpenAI for both paths. It's built for experimenting with langua
Hand off to your agent
Prompt
Help me set up the n8n workflow "Custom LangChain agent written in JavaScript" (https://n8n.io/workflows/1955). It uses: AI Agent, LangChain Code, OpenAI Chat Model, Code Tool. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- Access Control for AI Agents (RBAC) using Airtable and Telegram914
- 🤖 AI Powered RAG Chatbot for Your Docs + Google Drive + Gemini + Qdrant65K
- AI: Conversational agent with custom tool written in JavaScript35K
- AI Agent to chat with Airtable and analyze data13K
- Reconcile Rent Payments with Local Excel Spreadsheet and OpenAI6,737
- AI-powered multi-platform assistant with Google Suite, LinkedIn & Twitter6,037
- Explore n8n Nodes in a Visual Reference Library5,197
- 🤖 Build an Interactive AI Agent with Chat Interface and Multiple Tools5,090