From 78f86e4753069a2c00ea644375e104bd0a2eda00 Mon Sep 17 00:00:00 2001 From: Deborah Barnard Date: Tue, 6 Feb 2024 16:10:08 +0000 Subject: [PATCH] wip - advanced ai section and examples --- docs/_redirects | 6 +++++- .../advanced-ai/examples/api-workflow-tool.md | 5 +++++ .../examples/data-google-sheets.md | 5 +++++ docs/advanced-ai/examples/index.md | 13 ++++++++++++ docs/{langchain => advanced-ai}/index.md | 21 +++++++++---------- .../intro-tutorial.md} | 0 .../langchain-learning-resources.md} | 0 .../langchain-n8n.md | 0 mkdocs.yml | 17 +++++++++------ 9 files changed, 49 insertions(+), 18 deletions(-) create mode 100644 docs/advanced-ai/examples/api-workflow-tool.md create mode 100644 docs/advanced-ai/examples/data-google-sheets.md create mode 100644 docs/advanced-ai/examples/index.md rename docs/{langchain => advanced-ai}/index.md (70%) rename docs/{langchain/langchain-tutorial.md => advanced-ai/intro-tutorial.md} (100%) rename docs/{langchain/learning-resources.md => advanced-ai/langchain-learning-resources.md} (100%) rename docs/{langchain => advanced-ai}/langchain-n8n.md (100%) diff --git a/docs/_redirects b/docs/_redirects index 0ea6fba36..788abd237 100644 --- a/docs/_redirects +++ b/docs/_redirects @@ -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/ diff --git a/docs/advanced-ai/examples/api-workflow-tool.md b/docs/advanced-ai/examples/api-workflow-tool.md new file mode 100644 index 000000000..4fcefeeca --- /dev/null +++ b/docs/advanced-ai/examples/api-workflow-tool.md @@ -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. +--- diff --git a/docs/advanced-ai/examples/data-google-sheets.md b/docs/advanced-ai/examples/data-google-sheets.md new file mode 100644 index 000000000..a49cc0c32 --- /dev/null +++ b/docs/advanced-ai/examples/data-google-sheets.md @@ -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. +--- diff --git a/docs/advanced-ai/examples/index.md b/docs/advanced-ai/examples/index.md new file mode 100644 index 000000000..35f3ba6b6 --- /dev/null +++ b/docs/advanced-ai/examples/index.md @@ -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) ]] diff --git a/docs/langchain/index.md b/docs/advanced-ai/index.md similarity index 70% rename from docs/langchain/index.md rename to docs/advanced-ai/index.md index e92a81e4b..5903dcd03 100644 --- a/docs/langchain/index.md +++ b/docs/advanced-ai/index.md @@ -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 diff --git a/docs/langchain/langchain-tutorial.md b/docs/advanced-ai/intro-tutorial.md similarity index 100% rename from docs/langchain/langchain-tutorial.md rename to docs/advanced-ai/intro-tutorial.md diff --git a/docs/langchain/learning-resources.md b/docs/advanced-ai/langchain-learning-resources.md similarity index 100% rename from docs/langchain/learning-resources.md rename to docs/advanced-ai/langchain-learning-resources.md diff --git a/docs/langchain/langchain-n8n.md b/docs/advanced-ai/langchain-n8n.md similarity index 100% rename from docs/langchain/langchain-n8n.md rename to docs/advanced-ai/langchain-n8n.md diff --git a/mkdocs.yml b/mkdocs.yml index edc006ba8..d5f7fdca6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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 +