{
  "name": "Automate process improvement with employee feedback using AI and Baserow",
  "nodes": [
    {
      "id": "de100f19-7dfb-4c8c-8a23-7b4c58806727",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        -64
      ]
    },
    {
      "id": "831601e5-29d4-4ab9-a1ec-499e62374d73",
      "name": "current_procedures",
      "type": "n8n-nodes-base.baserowTool",
      "position": [
        640,
        -64
      ]
    },
    {
      "id": "5a617f0d-1bac-48a2-b789-26560a6fb781",
      "name": "current_procedure_steps",
      "type": "n8n-nodes-base.baserowTool",
      "position": [
        800,
        -64
      ]
    },
    {
      "id": "9e0de906-b9cf-4720-a944-df509625df1c",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        96,
        -288
      ]
    },
    {
      "id": "2c29bcb9-a868-4653-b627-8df4a1dbd218",
      "name": "Set table and field ids",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        -288
      ]
    },
    {
      "id": "90dd8dc6-ee48-43eb-87d6-54d56b0e1e26",
      "name": "Create improvement suggestions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1264,
        -288
      ]
    },
    {
      "id": "5f6a9db0-c2a1-4e90-8302-14f63a793c62",
      "name": "Get non-processed feedback",
      "type": "n8n-nodes-base.baserow",
      "position": [
        1488,
        -288
      ]
    },
    {
      "id": "afb30f1c-137c-43fb-a9b5-e2bbed1e3411",
      "name": "Set feedback to processed",
      "type": "n8n-nodes-base.set",
      "position": [
        1712,
        -288
      ]
    },
    {
      "id": "0b52a8b2-a076-4d66-a590-95f133259954",
      "name": "Aggregate records for input",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1936,
        -288
      ]
    },
    {
      "id": "b1a6abf1-1eea-40ec-b60b-5b3060cfb2ad",
      "name": "Update tasks to processed feedback",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        -288
      ]
    },
    {
      "id": "310ca97a-8361-4d9a-b577-5f26becb4029",
      "name": "Feedback processing agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        736,
        -288
      ]
    },
    {
      "id": "723829c4-8c38-404a-b95b-c3177ae21a3c",
      "name": "tasks_feedback",
      "type": "n8n-nodes-base.baserowTool",
      "position": [
        960,
        -64
      ]
    },
    {
      "id": "ff442fad-d80c-4fd4-a080-143e0e6747b1",
      "name": "Required output schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1120,
        -64
      ]
    },
    {
      "id": "8efa66a4-c2b0-4cdd-852a-f34afbe42560",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -1168
      ],
      "parameters": {
        "width": 704,
        "height": 2064,
        "content": "This n8n template demonstrates how to automatically process feedback on tasks and procedures using an **AI agent**. Employees provide feedback after completing a task, which is then analyzed by the AI"
      }
    },
    {
      "id": "b55e4475-6825-4dec-ba37-1f562ebcd5bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -576
      ],
      "parameters": {
        "width": 800,
        "height": 224,
        "content": "## Set table and field ids\n* API host: the path to the API of your instance. This is https://api.baserow.io when using the cloud instance.\n* Token: a token you need to generate for the database. Check"
      }
    },
    {
      "id": "18da592d-b78a-4b6e-b8b3-5fe31df74772",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        96
      ],
      "parameters": {
        "width": 800,
        "height": 144,
        "content": "## Feedback processing agent\nSome additional tips about setting the system prompt:\n* Use an AI tool like Chat-gpt to help you setting up and improving the prompt\n* Check out the video [Building AI Age"
      }
    }
  ],
  "connections": {
    "tasks_feedback": {
      "ai_tool": [
        [
          {
            "node": "Feedback processing agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Feedback processing agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "current_procedures": {
      "ai_tool": [
        [
          {
            "node": "Feedback processing agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Required output schema": {
      "ai_outputParser": [
        [
          {
            "node": "Feedback processing agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Set table and field ids": {
      "main": [
        [
          {
            "node": "Feedback processing agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "current_procedure_steps": {
      "ai_tool": [
        [
          {
            "node": "Feedback processing agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Feedback processing agent": {
      "main": [
        [
          {
            "node": "Create improvement suggestions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set feedback to processed": {
      "main": [
        [
          {
            "node": "Aggregate records for input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get non-processed feedback": {
      "main": [
        [
          {
            "node": "Set feedback to processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate records for input": {
      "main": [
        [
          {
            "node": "Update tasks to processed feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create improvement suggestions": {
      "main": [
        [
          {
            "node": "Get non-processed feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set table and field ids",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}