Home Recipes Ai Ask Questions About Any Data Source (Using The N8N Workflow Retriever)

Ai Ask Questions About Any Data Source (Using The N8N Workflow Retriever)

1 Tools

Explore Tool Categories

Find Agencies for This Project

Know a Better Recipe?

Help the community by sharing your proven tool combinations.

Submit a Recipe

About this recipe

A recipe for Ai Ask Questions About Any Data Source (Using The N8N Workflow Retriever)

Recipe Template

{
    "id": "mjCQV12PbF6fw8hR",
    "meta": {
        "instanceId": "021d3c82ba2d3bc090cbf4fc81c9312668bcc34297e022bb3438c5c88a43a5ff"
    },
    "name": "LangChain - Example - Workflow Retriever",
    "tags": [
        {
            "id": "snf16n0p2UrGP838",
            "name": "LangChain - Example",
            "createdAt": "2023-09-25T16:21:55.962Z",
            "updatedAt": "2023-09-25T16:21:55.962Z"
        }
    ],
    "nodes": [
        {
            "id": "efdc3050-6c68-4419-9f12-f37d6fefb276",
            "name": "When clicking \"Execute Workflow\"",
            "type": "n8n-nodes-base.manualTrigger",
            "position": [
                460,
                200
            ],
            "parameters": [],
            "typeVersion": 1
        },
        {
            "id": "e0edb9ab-c59f-4d34-983d-861bb2df4f01",
            "name": "Workflow Retriever",
            "type": "@n8n\/n8n-nodes-langchain.retrieverWorkflow",
            "position": [
                1120,
                440
            ],
            "parameters": {
                "workflowId": "QacfBRBnf1xOyckC"
            },
            "typeVersion": 1
        },
        {
            "id": "ba47dd13-67d0-499a-b9a2-16928099efce",
            "name": "Retrieval QA Chain2",
            "type": "@n8n\/n8n-nodes-langchain.chainRetrievalQa",
            "position": [
                900,
                200
            ],
            "parameters": [],
            "typeVersion": 1
        },
        {
            "id": "f6d16571-0573-4860-aed9-611f93b050ad",
            "name": "OpenAI Chat Model",
            "type": "@n8n\/n8n-nodes-langchain.lmChatOpenAi",
            "position": [
                800,
                480
            ],
            "parameters": {
                "options": []
            },
            "credentials": {
                "openAiApi": {
                    "id": "4jRB4A20cPycBqP5",
                    "name": "OpenAI account - n8n"
                }
            },
            "typeVersion": 1
        },
        {
            "id": "4fd00751-3db0-489b-8c7f-4ee0fb32fb51",
            "name": "Example Prompt",
            "type": "n8n-nodes-base.set",
            "position": [
                680,
                200
            ],
            "parameters": {
                "fields": {
                    "values": [
                        {
                            "name": "input",
                            "stringValue": "What notes can you find for Jay Gatsby and what is his email address?"
                        }
                    ]
                },
                "options": []
            },
            "typeVersion": 3
        },
        {
            "id": "732b6277-cb4d-4586-ab95-778ac9473fe5",
            "name": "Sticky Note",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                860,
                140
            ],
            "parameters": {
                "width": 363,
                "height": 211.90203341144422,
                "content": "### Q&A on data returned from a workflow"
            },
            "typeVersion": 1
        },
        {
            "id": "f09583a3-78e3-4888-8251-2148ffb7ab18",
            "name": "Sticky Note1",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                1040,
                400
            ],
            "parameters": {
                "width": 262.67019427016413,
                "height": 255.8330939602389,
                "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nReplace \"Workflow ID\" with the ID the Subworkflow got saved as"
            },
            "typeVersion": 1
        }
    ],
    "active": false,
    "pinData": [],
    "settings": {
        "executionOrder": "v1"
    },
    "versionId": "48d3bdae-4cec-4b18-b92a-89215def0c68",
    "connections": {
        "Example Prompt": {
            "main": [
                [
                    {
                        "node": "Retrieval QA Chain2",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "OpenAI Chat Model": {
            "ai_languageModel": [
                [
                    {
                        "node": "Retrieval QA Chain2",
                        "type": "ai_languageModel",
                        "index": 0
                    }
                ]
            ]
        },
        "Workflow Retriever": {
            "ai_retriever": [
                [
                    {
                        "node": "Retrieval QA Chain2",
                        "type": "ai_retriever",
                        "index": 0
                    }
                ]
            ]
        },
        "When clicking \"Execute Workflow\"": {
            "main": [
                [
                    {
                        "node": "Example Prompt",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}

How to Use an n8n Template

1

Create a New Workflow

Click "New Workflow" in your n8n dashboard to get started.

2

Copy & Paste Template

First, copy this template: Click here to copy the JSON .
Then, in n8n, click the three dots (···) → "Import from file" and paste the JSON code.

3

Customize the Nodes

Go through each node in the workflow to update inputs like spreadsheet IDs, email addresses, or message content. Adjust field mappings to match your data.

4

Grant Access

For nodes that connect to external apps (like Google Sheets or Slack), you'll need to grant access. Connect your accounts using OAuth or an API key and save the credentials in the node.

5

Test It

Run the workflow by clicking "Execute Node" for each step or "Run Once" for the whole thing. Check the right sidebar to inspect data and debug any errors (they'll show up in red).

6

Activate Workflow

Once everything works as expected, click the "Activate" toggle to turn your workflow on. You're all set!

Frequently Asked Questions

How long does it take to implement this development recipe?

This recipe typically takes 30 minutes to implement, depending on your experience level with the tools involved.

What tools do I need for this recipe?

You'll need: n8n. All tools are linked above with setup instructions.

Is this recipe free to use?

This recipe uses a mix of free and paid tools. Check individual tool pricing above.

Do I need coding experience for this recipe?

Most tools in this recipe are no-code or low-code solutions, making them accessible to beginners. Each tool includes difficulty level indicators.

Can I customize this recipe?

Absolutely! This recipe provides a foundation that you can adapt to your specific needs. Feel free to add or remove tools based on your requirements.

What if I get stuck implementing this recipe?

Each tool includes documentation links and support resources. You can also reach out to our community or consider hiring one of our verified agencies for assistance.