{
  "name": "Artavolo: AI drafts each client’s weekly update, you approve it",
  "nodes": [
    {
      "parameters": {
        "content": "## AI drafts each client’s weekly update. You approve it.\n\nEvery Monday the AI writes a short update on each active project into its **Client update** field. The agent is in review mode, so nothing is written yet: the drafts wait beside the Projects table in Artavolo. Accept them, and each client sees their update in the client portal. Reject or edit any you do not like.\n\n1. Install the community node **n8n-nodes-artavolo** (Settings, Community nodes).\n2. In Artavolo, open the base, then **Settings**, **AI agents**, **New agent**. Under Its changes choose **I review its changes**, and under This base **Read and change**. Paste its token into the Artavolo credential.\n3. Pick your base and table in each Artavolo node.\n4. Add your OpenAI key, or swap the chat model for Claude, Mistral or a model of your own.\n\nMade for the **Client portal** template (Projects table, Client update field).",
        "height": 440,
        "width": 460
      },
      "id": "cefc2333-cca7-5cb3-83ca-b6ccf10eebb8",
      "name": "Read me",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -80,
        -360
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                1
              ],
              "triggerAtHour": 8
            }
          ]
        }
      },
      "id": "c3c6164d-6f08-5ce0-a429-5ee550038998",
      "name": "Every Monday at 8:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        200
      ]
    },
    {
      "parameters": {
        "resource": "record",
        "base": "",
        "table": "",
        "operation": "search",
        "filterByFormula": "NOT({Status} = 'Done')",
        "returnAll": true
      },
      "id": "75155d78-f77b-57aa-bf15-556fa2209907",
      "name": "Find active projects",
      "type": "n8n-nodes-artavolo.artavolo",
      "typeVersion": 1,
      "position": [
        240,
        200
      ],
      "credentials": {
        "artavoloApi": {
          "id": "",
          "name": "Artavolo agent (review mode)"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Write a short update for our client about this project: two or three plain, friendly sentences that say what is done, what comes next and anything we need from them. No greeting, no sign-off.\n\nProject: {{ $json.Project }}\nStatus: {{ $json.Status }}\nProgress: {{ Math.round(($json.Progress || 0) * 100) }}%\nNext milestone: {{ $json['Next milestone'] }}\nDue: {{ $json.Due }}\nLast update: {{ $json['Client update'] || 'none' }}"
      },
      "id": "29e39ebc-6d4f-56fa-b7f5-d4ca0d0f77ff",
      "name": "Draft the update",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        480,
        200
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4o-mini",
          "mode": "list",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "id": "96ff0291-7ff2-5ad8-98ed-b82866ada4dd",
      "name": "Chat model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        480,
        420
      ],
      "credentials": {
        "openAiApi": {
          "id": "",
          "name": "OpenAI"
        }
      }
    },
    {
      "parameters": {
        "resource": "record",
        "base": "",
        "table": "",
        "operation": "update",
        "recordId": "={{ $('Find active projects').item.json.id }}",
        "fields": {
          "field": [
            {
              "name": "Client update",
              "value": "={{ $json.text.trim() }}"
            }
          ]
        }
      },
      "id": "fadb0d4b-411d-5e12-a546-e0cba95a4c58",
      "name": "Propose it for approval",
      "type": "n8n-nodes-artavolo.artavolo",
      "typeVersion": 1,
      "position": [
        820,
        200
      ],
      "credentials": {
        "artavoloApi": {
          "id": "",
          "name": "Artavolo agent (review mode)"
        }
      }
    }
  ],
  "connections": {
    "Every Monday at 8:00": {
      "main": [
        [
          {
            "node": "Find active projects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find active projects": {
      "main": [
        [
          {
            "node": "Draft the update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Draft the update": {
      "main": [
        [
          {
            "node": "Propose it for approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat model": {
      "ai_languageModel": [
        [
          {
            "node": "Draft the update",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
