wip - advanced ai section and examples

This commit is contained in:
Deborah Barnard 2024-02-06 16:10:08 +00:00
parent fad48521c7
commit 78f86e4753
9 changed files with 49 additions and 18 deletions

View File

@ -1,4 +1,8 @@
/langchain/access-langchain/ /langchain/
/langchain/ /advanced/ai/
/langchain/langchain-tutorial/ /advanced-ai/intro-tutorial/
/langchain/learning-resources/ /advanced-ai/langchain-learning-resources/
/langchain/langchain-n8n/ /advanced-ai/langchain-n8n/
/langchain/access-langchain/ /advanced-ai/
/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever/ /integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager/
/choose-n8n/desktop-app/ /choose-n8n/

View File

@ -0,0 +1,5 @@
---
contentType: overview
title: Call an API to fetch data
description: Use the n8n workflow tool to load data from an API using the HTTP Request node into your AI workflow.
---

View File

@ -0,0 +1,5 @@
---
contentType: overview
title: Load data from Google Sheets
description: Use the n8n workflow tool to load data from Google Sheets into your AI workflow.
---

View File

@ -0,0 +1,13 @@
---
contentType: overview
title: Advanced AI examples
description: Example workflows and use cases for building AI functionality using n8n.
---
# Advanced AI examples
This section provides workflow templates with explanations and configuration guides.
[[% import "_macros/section-toc.html" as sectionToc %]]
[[ sectionToc.sectionToc(page) ]]

View File

@ -1,17 +1,20 @@
---
contentType: overview
title: LangChain
title: Advanced AI
description: Use n8n's LangChain integrations to build AI-powered functionality within your workflows. Connect your LangChain functionality to other data sources and services.
---
# LangChain
# Advanced AI
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.
Build AI functionality using n8n: from creating your own chat bot, to using AI to process documents and data from other sources.
/// info | Feature availability
This feature is available on Cloud and self-hosted n8n, in version 1.19.4 and above.
///
## LangChain in n8n
n8n provides a collection of nodes that implement LangChain's functionality. 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.
* [Tutorial: Build an AI workflow in n8n](/langchain/langchain-tutorial/): learn how to build AI workflows using n8n's LangChain implementation.
* [Learning resources](/langchain/learning-resources/): n8n's documentation for LangChain assumes you're familiar with AI and LangChain concepts. This page provides links to learning resources.
@ -31,14 +34,10 @@ You can browse workflow templates in-app or on the n8n website [Workflows](https
Refer to [Templates](/workflows/templates/) for information on accessing templates in-app.
### Chat trigger
Use the [n8n Chat Trigger](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/) to trigger a workflow based on chat interactions.
### 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](https://www.npmjs.com/package/@n8n/chat){:target=_blank .external-link} for usage information.
n8n provides code snippets for the chatbot, pre-populated with your settings:
1. Add the Manual Chat Trigger to your workflow.
1. Select **Chat**.
1. Select **More info** in the help text:
> Add chat to external applications using the n8n chat package. More info

View File

@ -254,11 +254,6 @@ nav:
- "Tutorial: Create environments with source control": source-control-environments/create-environments.md
- External secrets: external-secrets.md
- Log streaming: log-streaming.md
- AI with LangChain:
- langchain/index.md
- "Tutorial: Build an AI workflow in n8n": langchain/langchain-tutorial.md
- LangChain learning resources: langchain/learning-resources.md
- Langchain concepts in n8n: langchain/langchain-n8n.md
- Cloud admin dashboard: cloud-admin-dashboard.md
- Privacy and security:
- privacy-security/index.md
@ -270,6 +265,7 @@ nav:
- Release notes: release-notes.md
- v1.0 migration guide: 1-0-migration-checklist.md
- Keyboard shortcuts: keyboard-shortcuts.md
- Contributing: contributing.md
- Integrations:
- integrations/index.md
- Built-in nodes:
@ -1148,6 +1144,15 @@ nav:
- HTTP Request node:
- code/cookbook/http-node/index.md
- Pagination: code/cookbook/http-node/pagination.md
- Advanced AI:
- advanced-ai/index.md
- "Tutorial: Build an AI workflow in n8n": advanced-ai/intro-tutorial.md
- LangChain learning resources: advanced-ai/langchain-learning-resources.md
- Langchain concepts in n8n: advanced-ai/langchain-n8n.md
- Examples:
- advanced-ai/examples/index.md
- Use Google Sheets as a data source: advanced-ai/examples/data-google-sheets.md
- Call an API to fetch data: advanced-ai/examples/api-workflow-tool.md
- API:
- api/index.md
- Authentication: api/authentication.md
@ -1193,4 +1198,4 @@ nav:
- Workflow 2: courses/level-two/chapter-5/chapter-5.2.md
- Workflow 3: courses/level-two/chapter-5/chapter-5.3.md
- Test your knowledge: courses/level-two/chapter-6.md
- Contributing: contributing.md