Skip to content

Access LangChain in n8n#

Feature availability

This feature is available on Cloud and self-hosted n8n. In version 1.19.4 and above, LangChain functionality is included with n8n, and you don't need to do any special signup or installation steps.

If you want to test the latest AI functionality, the beta version is available. This may be unstable.

End of beta

The AI beta will close in 2024. If you're using a beta version, n8n will migrate you to the main n8n version.

Access the self-hosted AI beta#

Try out LangChain beta by fetching the Docker image:

1
docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n docker.n8n.io/n8nio/n8n:ai-beta

If using data volumes:

1
2
3
docker volume create n8n_data

docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n:ai-beta

Refer to Installation | Docker for more information on using n8n Docker images.

Access the Cloud AI beta#

You need to create a new account. This is separate to your existing n8n Cloud account. n8n offers a 14-day free trial to try AI.

  1. Go to Register.
  2. Enter your details, then select Try for free.
  3. n8n prompts you to choose your n8n flavor. Select n8n with LangChain, then select Continue.

Existing n8n users can't reuse email address

If you have an existing n8n Cloud account, you must use a different email address when signing up for the AI trial.

Browse the LangChain nodes#

  1. Create a new workflow.
  2. Select Add node Add node icon to open the nodes panel.
  3. Select Advanced AI
  4. Explore the options. Refer to LangChain concepts in n8n for a list of available nodes, and how they relate to LangChain functionality.

Send feedback, join the conversation, and get help#

Send feedback to ai@n8n.io.

Workshops and discussion of LangChain in n8n are on Discord. Join to share your projects and discuss ideas with the community.

Support is available on the forum.