{
  "name": "Sentience Growth - Reports and Docs Starter",
  "nodes": [
    {
      "parameters": {},
      "id": "manual-trigger",
      "name": "Run sample report",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [-760, 0]
    },
    {
      "parameters": {
        "content": "Starter workflow only. Replace the sample job notes with your form, CRM, call transcript, spreadsheet, or project-management source before using this in production.",
        "height": 180,
        "width": 320
      },
      "id": "setup-note",
      "name": "Setup note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-760, -260]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "job-name",
              "name": "job_name",
              "type": "string",
              "value": "Commercial cleaning walkthrough"
            },
            {
              "id": "raw-notes",
              "name": "raw_notes",
              "type": "string",
              "value": "Client asked for weekly service, lobby and restrooms are priority, needs quote by Thursday, confirm supplies included."
            }
          ]
        },
        "options": {}
      },
      "id": "sample-notes",
      "name": "Sample notes",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-520, 0]
    },
    {
      "parameters": {
        "jsCode": "const notes = String($json.raw_notes || '');\nconst report = `# ${$json.job_name}\\n\\n## Summary\\n${notes}\\n\\n## Follow-up\\n- Prepare quote\\n- Confirm supply responsibility\\n- Send by Thursday`;\nreturn [{ json: { ...$json, report_markdown: report, file_name: `${String($json.job_name || 'report').toLowerCase().replace(/[^a-z0-9]+/g, '-')}.md` } }];"
      },
      "id": "report-builder",
      "name": "Build report draft",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [-280, 0]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "output-note",
              "name": "next_setup_step",
              "type": "string",
              "value": "Connect Google Docs, Drive, Notion, or your CRM to save the report draft where your team already works."
            }
          ]
        },
        "options": {}
      },
      "id": "handoff-note",
      "name": "Handoff note",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-40, 0]
    }
  ],
  "connections": {
    "Run sample report": {
      "main": [[{ "node": "Sample notes", "type": "main", "index": 0 }]]
    },
    "Sample notes": {
      "main": [[{ "node": "Build report draft", "type": "main", "index": 0 }]]
    },
    "Build report draft": {
      "main": [[{ "node": "Handoff note", "type": "main", "index": 0 }]]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
