LangChain#
Use n8n's LangChain nodes to build AI-powered functionality within your workflows. The LangChain nodes are configurable, meaning you can choose your preferred agent, LLM, memory, and so on. Alongside the LangChain nodes, you can connect any n8n node as normal: this means you can integrate your LangChain logic with other data sources and services.
Feature availability
This feature is available on Cloud and self-hosted n8n, in version 1.19.4 and above.
- Tutorial: Build an AI workflow in n8n: learn how to build AI workflows using n8n's LangChain implementation.
- Learning resources: n8n's documentation for LangChain assumes you're familiar with AI and LangChain concepts. This page provides links to learning resources.
- LangChain concepts and features in n8n: how n8n represents LangChain concepts and features.
Related resources#
Related documentation and tools.
Node types#
This feature uses Cluster nodes: groups of root and sub nodes that work together.
Workflow templates#
You can browse workflow templates in-app or on the n8n website Workflows page.
Refer to Templates for information on accessing templates in-app.
Chatbot widget#
n8n provides a chatbot widget that you can use as a frontend for AI-powered chat workflows. Refer to the @n8n/chat npm page for usage information.
n8n provides code snippets for the chatbot, pre-populated with your settings:
- Add the Manual Chat Trigger to your workflow.
- Select Chat.
-
Select More info in the help text:
Add chat to external applications using the n8n chat package. More info