وكيل ذكي لمسك الدفاتر

أخبره عن الدخل والمصروفات بكلمات بسيطة؛ واسأله مثل "كم صرفنا على الإعلانات هذا الشهر؟"

وكيل ذكيمتوسط توفّر ~10 ساعة شهريًا وكلاء الذكاء الاصطناعيبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: محادثة — تراسل الوكيل
  1. تكتب "دفعت 1,200 لإعلانات فيسبوك أمس" أو تسأل سؤالًا.
  2. يؤكد الوكيل التفاصيل ويضيف المعاملة إلى دفتر الحسابات.
  3. للأسئلة، يقرأ الدفتر ويجري الحسابات.
  4. يمكنه كتابة مسودة ملخص شهري لمحاسبك.

ماذا يستطيع أن يفعل

على عكس الأتمتة الثابتة، يقرر الوكيل أي أدواته يستخدم وبأي ترتيب — ويتذكر المحادثة.

  • يسجل الدخل والمصروفات من جمل بسيطة
  • يجيب عن الإجماليات حسب التصنيف والفترة
  • يجهز ملخصات شهرية
  • يكتب مسودات رسائل لمحاسبك

التعليمات (System prompt)

التعليمات التي تشكّل سلوك الوكيل. موجودة بالفعل داخل قالب n8n — انسخها إلى Make أو Zapier، وعدّل أجزاء YOUR_….

التعليمات (System prompt)
You are a bookkeeping assistant for YOUR_BUSINESS. Currency: YOUR_CURRENCY. Today is {{ $now.toFormat('d LLLL yyyy') }}.

Tools:
- "Read ledger": all transactions (date, type income/expense, amount, category, description).
- "Add transaction": adds one income or expense. Categories: YOUR_CATEGORIES (e.g. Ads, Software, Salaries, Rent, Supplies, Sales, Other).
- "Email accountant": drafts an email to our accountant (never sends).

You can: record transactions the user describes ("paid 1,200 for Facebook ads yesterday"), answer questions ("how much did we spend on ads this month?"), and prepare monthly summaries.

Rules:
- Always read the ledger before answering questions about numbers. Do the arithmetic carefully and show the total and the period.
- Confirm amount, date and category before adding a transaction.
- You are not a tax advisor — for tax questions, suggest asking the accountant.

قواعد الأمان

مدمجة في التعليمات والأدوات:

  • يؤكد المبلغ والتاريخ والتصنيف قبل الحفظ
  • يقرأ الدفتر دائمًا قبل الإجابة عن أسئلة الأرقام
  • ليس مستشارًا ضريبيًا — يحيل أسئلة الضرائب لمحاسبك

يستخدم مفتاح الذكاء الاصطناعي الخاص بك (Claude أو OpenAI أو غيرهما). التكلفة تعتمد على النموذج وطول المحادثة — والنموذج الصغير السريع يجعل معظم المحادثات بجزء من السنت.

المخطط

Bookkeeping chatChat TriggerBookkeeping agentAI AgentClaude modelAnthropic Chat Mo…◷MemorySimple MemoryGRead ledgerGoogle Sheets ToolGAdd transactionGoogle Sheets ToolGEmail accounta…Gmail Tool
مشغّل ذكاء اصطناعي أداة للوكيل

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_. خطوات الذكاء الاصطناعي تستخدم نموذج Claude، ويمكنك استبداله بـ OpenAI أو Gemini أو Ollama.

ملف Workflow JSON
عرض الكود (244 سطر)
{
  "name": "وكيل ذكي لمسك الدفاتر (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## وكيل ذكي لمسك الدفاتر\nأخبره عن الدخل والمصروفات بكلمات بسيطة؛ واسأله مثل \"كم صرفنا على الإعلانات هذا الشهر؟\"\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "public": true,
        "mode": "hostedChat",
        "initialMessages": "Tell me about an income or expense, or ask a question like “How much did we spend on ads this month?”",
        "options": {
          "responseMode": "lastNode"
        }
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Bookkeeping chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ],
      "webhookId": "2de5c18f-62da-415c-a349-f01983763a93"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "=You are a bookkeeping assistant for YOUR_BUSINESS. Currency: YOUR_CURRENCY. Today is {{ $now.toFormat('d LLLL yyyy') }}.\n\nTools:\n- \"Read ledger\": all transactions (date, type income/expense, amount, category, description).\n- \"Add transaction\": adds one income or expense. Categories: YOUR_CATEGORIES (e.g. Ads, Software, Salaries, Rent, Supplies, Sales, Other).\n- \"Email accountant\": drafts an email to our accountant (never sends).\n\nYou can: record transactions the user describes (\"paid 1,200 for Facebook ads yesterday\"), answer questions (\"how much did we spend on ads this month?\"), and prepare monthly summaries.\n\nRules:\n- Always read the ledger before answering questions about numbers. Do the arithmetic carefully and show the total and the period.\n- Confirm amount, date and category before adding a transaction.\n- You are not a tax advisor — for tax questions, suggest asking the accountant."
        }
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Bookkeeping agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.9,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "claude-sonnet-5",
          "mode": "list"
        },
        "options": {}
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Claude model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        -40,
        220
      ]
    },
    {
      "parameters": {
        "contextWindowLength": 10
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        130,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Returns all transactions: date, type (income/expense), amount, category, description.",
        "operation": "read",
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "Ledger",
          "mode": "name"
        },
        "options": {}
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Read ledger",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        300,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Adds one confirmed income or expense.",
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "Ledger",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "date": "={{ $fromAI('date', \"Transaction date YYYY-MM-DD\", 'string') }}",
            "type": "={{ $fromAI('type', \"income or expense\", 'string') }}",
            "amount": "={{ $fromAI('amount', \"Amount as a number\", 'number') }}",
            "category": "={{ $fromAI('category', \"One of the allowed categories\", 'string') }}",
            "description": "={{ $fromAI('description', \"Short description\", 'string') }}"
          }
        },
        "options": {}
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Add transaction",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        470,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Drafts an email to the accountant (never sends it).",
        "resource": "draft",
        "operation": "create",
        "subject": "={{ $fromAI('subject', \"Email subject\", 'string') }}",
        "message": "={{ $fromAI('body', \"Email body, e.g. a monthly summary\", 'string') }}",
        "options": {
          "sendTo": "accountant@yourcompany.com"
        }
      },
      "id": "2de5c18f-62da-415c-a349-f01983763a93",
      "name": "Email accountant",
      "type": "n8n-nodes-base.gmailTool",
      "typeVersion": 2.1,
      "position": [
        640,
        220
      ]
    }
  ],
  "connections": {
    "Bookkeeping chat": {
      "main": [
        [
          {
            "node": "Bookkeeping agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude model": {
      "ai_languageModel": [
        [
          {
            "node": "Bookkeeping agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "Bookkeeping agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Read ledger": {
      "ai_tool": [
        [
          {
            "node": "Bookkeeping agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Add transaction": {
      "ai_tool": [
        [
          {
            "node": "Bookkeeping agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Email accountant": {
      "ai_tool": [
        [
          {
            "node": "Bookkeeping agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

← افتحها في ساحة التجربة لتعديلها

نصائح

  • استخدم قائمة ثابتة من التصنيفات لتبقى التقارير الشهرية مرتبة.

أتمتات مشابهة