mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
Modify workflowDemo function to try to serve local JSON (#2584)
This commit is contained in:
parent
828afaa3f2
commit
15aac456d3
@ -1,6 +1,6 @@
|
||||
To load the template into your n8n instance:
|
||||
|
||||
1. [Download the workflow JSON file](/_workflows/[[ page.meta.workflowFile ]]){:target=_blank .external-link}.
|
||||
1. Download the workflow JSON file.
|
||||
1. Open a new workflow in your n8n instance.
|
||||
1. Copy in the JSON, or select **Workflow menu** <span class="inline-image">{.off-glb}</span> > **Import from file...**.
|
||||
|
||||
@ -3,18 +3,13 @@
|
||||
contentType: explanation
|
||||
title: Agents vs chains
|
||||
description: A workflow example that demonstrates key differences between agents and chains.
|
||||
workflowFile: advanced-ai/examples/agents_vs_chains.json
|
||||
---
|
||||
|
||||
# Demonstration of key differences between agents and chains
|
||||
|
||||
In this workflow you can choose whether your chat query goes to an agent or chain. It shows some of the ways that agents are more powerful than chains.
|
||||
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///advanced-ai/examples/agents_vs_chains.json") ]]
|
||||
|
||||
## Key features
|
||||
|
||||
@ -28,4 +23,4 @@ This workflow uses:
|
||||
|
||||
## Using the example
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
--8<-- "_snippets/examples-color-key.md"
|
||||
|
||||
@ -3,17 +3,13 @@
|
||||
contentType: howto
|
||||
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.
|
||||
workflowFile: advanced-ai/examples/let_your_ai_call_an_api.json
|
||||
---
|
||||
|
||||
# Call an API to fetch data
|
||||
|
||||
Use n8n to bring data from any API to your AI. This workflow uses the [Chat Trigger](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/) to provide the chat interface, and the [Custom n8n Workflow Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/) to call a second workflow that calls the API. The second workflow uses AI functionality to refine the API request based on the user's query.
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///advanced-ai/examples/let_your_ai_call_an_api.json") ]]
|
||||
|
||||
## Key features
|
||||
|
||||
@ -26,4 +22,4 @@ This workflow uses:
|
||||
|
||||
## Using the example
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
--8<-- "_snippets/examples-color-key.md"
|
||||
|
||||
@ -3,17 +3,13 @@
|
||||
contentType: howto
|
||||
title: Chat with a Google Sheet using AI
|
||||
description: Use the n8n workflow tool to load data from Google Sheets into your AI workflow.
|
||||
workflowFile: advanced-ai/examples/chat_with_google_sheets_docs_version.json
|
||||
---
|
||||
|
||||
# Chat with a Google Sheet using AI
|
||||
|
||||
Use n8n to bring your own data to AI. This workflow uses the [Chat Trigger](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/) to provide the chat interface, and the [Custom n8n Workflow Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/) to call a second workflow that queries Google Sheets.
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///advanced-ai/examples/chat_with_google_sheets_docs_version.json") ]]
|
||||
|
||||
## Key features
|
||||
|
||||
@ -26,4 +22,4 @@ This workflow uses:
|
||||
|
||||
## Using the example
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
--8<-- "_snippets/examples-color-key.md"
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
contentType: howto
|
||||
title: Set a human fallback for AI workflows
|
||||
description: Have a workflow that triggers a human answer when the AI can't help.
|
||||
workflowFile: advanced-ai/examples/ask_a_human.json
|
||||
---
|
||||
|
||||
# Have a human fallback for AI workflows
|
||||
@ -12,10 +11,7 @@ This is a workflow that tries to answer user queries using the standard GPT-4 mo
|
||||
|
||||
This workflow uses the [Chat Trigger](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/) to provide the chat interface, and the [Custom n8n Workflow Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/) to call a second workflow that handles checking for email addresses and sending the Slack message.
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///advanced-ai/examples/ask_a_human.json") ]]
|
||||
|
||||
## Key features
|
||||
|
||||
@ -27,4 +23,4 @@ This workflow uses:
|
||||
|
||||
## Using the example
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
--8<-- "_snippets/examples-color-key.md"
|
||||
|
||||
@ -3,17 +3,13 @@
|
||||
contentType: howto
|
||||
title: Populate a Pinecone vector database from a website
|
||||
description: Scrape a website, load the data into Pinecone, then query it using a chat workflow.
|
||||
workflowFile: advanced-ai/examples/populate_a_pinecone_vector_database_from_a_website.json
|
||||
---
|
||||
|
||||
# Populate a Pinecone vector database from a website
|
||||
|
||||
Use n8n to scrape a website, load the data into Pinecone, then query it using a chat workflow. This workflow uses the [HTTP node](/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/) to get website data, extracts the relevant content using the [HTML node](/integrations/builtin/core-nodes/n8n-nodes-base.html/), then uses the [Pinecone Vector Store node](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.vectorstorepinecone/) to send it to Pinecone.
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///advanced-ai/examples/populate_a_pinecone_vector_database_from_a_website.json") ]]
|
||||
|
||||
## Key features
|
||||
|
||||
@ -27,4 +23,4 @@ This workflow uses:
|
||||
|
||||
## Using the example
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
--8<-- "_snippets/examples-color-key.md"
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
|
||||
description: Creating and editing credentials.
|
||||
contentType: howto
|
||||
workflowFile: credentials/dynamic_credentials_using_expressions.json
|
||||
---
|
||||
|
||||
# Create and edit credentials
|
||||
@ -31,11 +30,8 @@ You can use expressions to set credentials dynamically as your workflow runs:
|
||||
|
||||
### Example workflow
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///credentials/dynamic_credentials_using_expressions.json") ]]
|
||||
|
||||
#### Using the example
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
--8<-- "_snippets/examples-color-key.md"
|
||||
|
||||
@ -3,17 +3,13 @@
|
||||
title: n8n Form node documentation
|
||||
description: Documentation for the n8n Form node in n8n, a workflow automation platform. Includes guidance on usage and links to examples.
|
||||
contentType: integration
|
||||
workflowFile: integrations/builtin/core-nodes/n8n-nodes-base.form/mutually-exclusive-branching.json
|
||||
---
|
||||
|
||||
# n8n Form node
|
||||
|
||||
Use the n8n Form node to create user-facing forms with multiple steps. You can add other nodes with custom logic between to process user input. You must start the workflow with the [n8n Form Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.formtrigger/).
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>A multi-page form with branching</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///integrations/builtin/core-nodes/n8n-nodes-base.form/mutually-exclusive-branching.json") ]]
|
||||
|
||||
## Setting up the node
|
||||
|
||||
@ -153,10 +149,7 @@ Form workflows containing mutually exclusive branches work as expected. n8n will
|
||||
|
||||
This workflow demonstrates mutually exclusive branching. Each selection can only execute a single branch.
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/[[ page.meta.workflowFile ]])</figcaption>
|
||||
</figure>
|
||||
[[ workflowDemo("file:///integrations/builtin/core-nodes/n8n-nodes-base.form/mutually-exclusive-branching.json") ]]
|
||||
|
||||
#### Workflows that may execute multiple branches
|
||||
|
||||
@ -166,14 +159,7 @@ n8n only executes a single **Form Ending** n8n Form node for each execution. Whe
|
||||
|
||||
This workflow may execute more than one branch during an execution. Here, n8n executes all valid branches sequentially. This impacts which n8n Form nodes n8n executes (in particular, which **Form Ending** node displays):
|
||||
|
||||
<figure markdown>
|
||||

|
||||
<figcaption markdown>[Download the example workflow](/_workflows/integrations/builtin/core-nodes/n8n-nodes-base.form/multiple-branch-execution.json)</figcaption>
|
||||
</figure>
|
||||
|
||||
#### Using the examples
|
||||
|
||||
[[% include "_includes/examples-color-key.html" %]]
|
||||
[[ workflowDemo("file:///integrations/builtin/core-nodes/n8n-nodes-base.form/multiple-branch-execution.json") ]]
|
||||
|
||||
### Node options
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user