AcademyWorkflowsDevelopment

Custom LangChain agent written in JavaScript

Development teams use it to learn how custom LangChain code nodes work inside n8n.

  • Recommendedour rating
  • 13,815views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

custom-langchain-agent-written-in-javascript.json

Loading the file...

What it does

An n8n template for experimenting with language model chains and agents. One path sends a preset prompt through a custom LLM chain node. The other sends a question to an agent that uses an OpenAI chat model and a custom Wikipedia tool to find the answer.

Use cases

  1. 01Test a custom LLM chain with OpenAI in n8n
  2. 02Build an agent that looks up facts on Wikipedia
  3. 03Use it as a starting point for your own code tools

Connects

AI Agent · LangChain Code · OpenAI Chat Model · Code Tool

Questions about
Custom LangChain agent written in JavaScript.

What is Custom LangChain agent written in JavaScript used for?

Development teams use it to learn how custom LangChain code nodes work inside n8n. An n8n template for experimenting with language model chains and agents. One path sends a preset prompt through a custom LLM chain node. The other sends a question to an agent that uses an OpenAI chat model and a custom Wikipedia tool to find the answer.

How do I import Custom LangChain agent written in JavaScript into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Custom LangChain agent written in JavaScript safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.