AutomationFlowsAI & RAG › Datagrout AI Agent — Verified Answers From Your Business Data

Datagrout AI Agent — Verified Answers From Your Business Data

DataGrout AI Agent — verified answers from your business data. Uses chatTrigger, agent, lmChatOpenAi, @datagrout/n8n-nodes-datagrout-mcp. Chat trigger; 4 nodes.

Chat trigger trigger★★☆☆☆ complexityAI-powered4 nodesChat TriggerAgentOpenAI Chat@Datagrout/N8N Nodes Datagrout Mcp
AI & RAG Trigger: Chat trigger Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "DataGrout AI Agent \u2014 verified answers from your business data",
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "id": "chat1",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "You are a precise, AUTONOMOUS, read-only data assistant. Offload the ENTIRE task to DataGrout's symbolic planner and let it run server-side. Do NOT pick, chain, or reason about individual tools, NEVER write SOQL/JQL, and NEVER pull records into this conversation. FINISH THE WHOLE TASK AUTONOMOUSLY IN ONE RUN \u2014 never ask the user how to proceed, never stop half-way.\n1. For each app leg, make ONE call: discovery.plan with the user\u2019s COMPLETE request for that leg as the `goal` \u2014 VERBATIM, including every computation instruction (scores, normalization, penalties, rankings, outliers). Never shorten, paraphrase, or split computations into separate calls: DataGrout decomposes and computes server-side, and can only do so if it sees the full goal. Name the source app (Salesforce, Jira, ...) AND `execute: true`. This PLANS and RUNS the recommended skill server-side in a SINGLE call and returns the executed `result` directly \u2014 you do NOT call discovery.perform, and there is no separate handle to run. DataGrout writes the exact query/fields from your goal (it uses inclusive CONTAINS/LIKE matching).\n2. For a cross-app task, do ONE leg at a time (the Salesforce leg, then the Jira leg), each a single discovery.plan(execute:true) call with its own concise goal.\n3. If a response comes back NOT executed because it lists `needed` inputs, call discovery.plan again with the same goal plus those values under `inputs` and execute:true.\n4. If a returned `result` is still a large list, add a `refract` goal to the same discovery.plan(execute:true) call so the summary is produced server-side.\nIf a response contains a task_ref, the job is STILL RUNNING server-side and usually finishes within seconds \u2014 its result will be waiting for you. Immediately call tasks.wait with that task_ref, and call it again if still running. Never end your turn, never ask the user, and never answer without the retrieved result. Never fan out per record. Answer concisely with the supporting names. Read-only."
        }
      },
      "id": "agent1",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.9,
      "position": [
        260,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-mini"
        },
        "options": {}
      },
      "id": "llm1",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        180,
        220
      ]
    },
    {
      "parameters": {
        "toolsToInclude": "all"
      },
      "id": "dgmcp1",
      "name": "DataGrout MCP",
      "type": "@datagrout/n8n-nodes-datagrout-mcp.dataGroutMcpTool",
      "typeVersion": 1,
      "position": [
        420,
        220
      ],
      "credentials": {
        "dataGroutApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "DataGrout MCP": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

DataGrout AI Agent — verified answers from your business data. Uses chatTrigger, agent, lmChatOpenAi, @datagrout/n8n-nodes-datagrout-mcp. Chat trigger; 4 nodes.

Source: https://github.com/DataGrout/n8n-node/blob/main/examples/datagrout-ai-agent.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

AI Agent : Google calendar assistant using OpenAI. Uses chatTrigger, lmChatOpenAi, memoryBufferWindow, googleCalendarTool. Chat trigger; 13 nodes.

Chat Trigger, OpenAI Chat, Memory Buffer Window +2
AI & RAG

OpenSea AI-Powered Insights via Telegram. Uses chatTrigger, telegramTrigger, lmChatOpenAi, memoryBufferWindow. Chat trigger; 13 nodes.

Chat Trigger, Telegram Trigger, OpenAI Chat +4
AI & RAG

Build an MCP server with Airtable. Uses chatTrigger, agent, memoryBufferWindow, mcpClientTool. Chat trigger; 13 nodes.

Chat Trigger, Agent, Memory Buffer Window +4
AI & RAG

Build an MCP server with Airtable. Uses chatTrigger, agent, memoryBufferWindow, mcpClientTool. Chat trigger; 13 nodes.

Chat Trigger, Agent, Memory Buffer Window +4
AI & RAG

This template is a simple AI Agent that acts as a Google Calendar Assistant. It is designed for beginners to have their "first AI Agent" performing common tasks and to help them understand how it work

Chat Trigger, OpenAI Chat, Memory Buffer Window +2