APFlow All field notesكل الملاحظات
Book a callاحجز مكالمة
Agentic workflowsمسارات عمل قائمة على الوكلاء Toolsأدوات Guideدليل

How to build an agentic workflow that runs on its ownكيف تبني مسار عمل بالوكلاء الأذكياء يعمل وحده

An agent is a model with tools, memory, and a goal. This guide explains the idea in plain words, then matches you to the right tool: n8n if you do not code, CrewAI if you want Python fast, LangGraph if you need full control.الوكيل هو نموذج معه أدوات وذاكرة وهدف. هذا الدليل يشرح الفكرة بكلمات بسيطة، ثم يدلك على الأداة المناسبة لك: n8n إن كنت لا تبرمج، وCrewAI إن أردت Python بسرعة، وLangGraph إن احتجت تحكماً كاملاً.

APFlow
Field notesملاحظات ميدانية · June 2026يونيو ٢٠٢٦ · 9 min read٩ دقائق
Interlocking gears representing an automated workflow
Photo: Tim Mossholder, Unsplash
TL;DR
  • ·An agentic workflow is a loop: the model looks at a goal, picks a tool, acts, checks the result, and repeats until done. The autonomy comes from the loop, not magic.مسار العمل بالوكلاء هو حلقة: النموذج ينظر إلى الهدف، ويختار أداة، وينفذ، ويفحص النتيجة، ويكرر حتى ينتهي. الاستقلالية تأتي من الحلقة، لا من سحر.
  • ·Non-technical? Start with n8n: visual, self-hostable, 1,400+ integrations. Coding in Python? CrewAI gets you a working crew in 30-60 lines; LangGraph gives checkpoints, retries, and human gates for serious production.لا تبرمج؟ ابدأ بـ n8n: مرئي، يعمل على خوادمك، وفيه أكثر من 1,400 تكامل. تبرمج بـ Python؟ CrewAI يعطيك فريق وكلاء يعمل في 30-60 سطراً؛ وLangGraph يعطيك نقاط الحفظ والإعادة وموافقات الإنسان لمشاريع الإنتاج الجادة.
  • ·Whatever the tool: an autonomous agent still needs human approval on consequential actions. Autonomy in the steps, gates at the decisions.مهما كانت الأداة: الوكيل المستقل يبقى محتاجاً موافقة إنسان على الإجراءات المهمة. الاستقلالية في الخطوات، والبوابات عند القرارات.

"Agentic workflow" sounds like jargon, so let us strip it down. A workflow is a series of steps. An agent is a language model that can use tools: search a database, send an email, call an API. An agentic workflow is the two combined: the model works through the steps on its own, choosing tools and reacting to what it finds, instead of following a fixed script. This guide explains how that works and which tool to build it with, depending on whether you write code."مسار عمل بالوكلاء الأذكياء" تبدو عبارة معقدة، فلنبسطها. مسار العمل هو سلسلة خطوات. والوكيل هو نموذج لغوي يستطيع استخدام أدوات: يبحث في قاعدة بيانات، أو يرسل بريداً، أو يستدعي خدمة. ومسار العمل بالوكلاء هو الاثنان معاً: النموذج ينفذ الخطوات بنفسه، يختار الأدوات ويتصرف حسب ما يجد، بدل أن يتبع نصاً جامداً. هذا الدليل يشرح كيف يعمل ذلك، وأي أداة تستخدم، حسب قدرتك على البرمجة.

The loop that makes it autonomousالحلقة التي تصنع الاستقلالية

  1. 1 Goal inالهدف يدخل
    The workflow receives something to achieve: "process this invoice", "answer this customer", "reconcile these records".يستلم مسار العمل هدفاً: "عالج هذه الفاتورة"، "أجب هذا العميل"، "طابق هذه السجلات".
  2. 2 The model plans and picks a toolالنموذج يخطط ويختار أداة
    It decides the next step itself: read the attachment, look up the supplier, query the database. Each tool is a small, well-defined action you gave it.يقرر الخطوة التالية بنفسه: اقرأ المرفق، ابحث عن المورد، اسأل قاعدة البيانات. كل أداة هي فعل صغير ومحدد أنت أعطيته إياه.
  3. 3 Act, observe, repeatينفذ ويلاحظ ويكرر
    The tool returns a result. The model reads it and decides again: next tool, retry, or done. This loop is the whole secret of autonomy.الأداة ترجع نتيجة. النموذج يقرؤها ويقرر من جديد: أداة أخرى، أو إعادة محاولة، أو انتهى. هذه الحلقة هي سر الاستقلالية كله.
  4. 4 Human gate at the decisions that matterبوابة بشرية عند القرارات المهمة
    Before anything consequential (money moves, records change, messages go out), the loop pauses for a person to approve. Autonomous does not mean unsupervised.قبل أي إجراء مهم (تحويل مال، تغيير سجل، إرسال رسالة) تتوقف الحلقة لموافقة إنسان. مستقل لا يعني بلا رقابة.

Pick your tool by one question: do you code?اختر أداتك بسؤال واحد: هل تبرمج؟

The tool landscape in mid-2026 sorts cleanly into three tiers. Be honest about which one you are in; the most common failure is a non-coder fighting a Python framework, or an engineer rebuilding n8n badly in code.أدوات منتصف 2026 تنقسم بوضوح إلى ثلاث فئات. كن صادقاً مع نفسك في تحديد فئتك؛ أكثر فشل شائع هو شخص لا يبرمج يصارع إطار Python، أو مهندس يعيد بناء n8n بشكل أسوأ بالكود.

n8n
Best for non-technical buildersالأفضل لغير المبرمجين
How you buildطريقة البناء Visual canvas, drag and connectلوحة مرئية، اسحب ووصل
Strengthالقوة 1,400+ integrations, AI agent nodes, self-hostableأكثر من 1,400 تكامل، وعقد وكلاء جاهزة، ويعمل على خوادمك
Limitالحد Complex branching logic gets messy visuallyالمنطق المتشعب المعقد يصبح فوضوياً بصرياً
Zapier / Make
Fastest start, cloud onlyأسرع بداية، لكن سحابي فقط
How you buildطريقة البناء Templates and clicksقوالب ونقرات
Strengthالقوة Zero setup, huge app catalogueبلا أي إعداد، ومكتبة تطبيقات ضخمة
Limitالحد Your data passes through their cloud; a non-starter for regulated workبياناتك تمر عبر سحابتهم؛ مرفوض في الأعمال المنظمة
CrewAI (Python)
Fastest path to a multi-agent prototypeأسرع طريق لنموذج تجريبي متعدد الوكلاء
How you buildطريقة البناء Define agents as roles with tasks, 30-60 linesتعرف الوكلاء كأدوار ومهام، في 30-60 سطراً
Strengthالقوة Easiest code framework; v0.105 added enterprise observability (March 2026)أسهل إطار برمجي؛ الإصدار 0.105 أضاف مراقبة مؤسسية (مارس 2026)
Limitالحد Coarse error handling, no built-in checkpoints for long runsمعالجة أخطاء خشنة، وبلا نقاط حفظ للمهام الطويلة
LangGraph (Python)
Full control, built for productionتحكم كامل، مبني لبيئة الإنتاج
How you buildطريقة البناء Explicit state graph, 80-150 lines to startمخطط حالات صريح، 80-150 سطراً للبداية
Strengthالقوة Checkpointing, retries, human-in-the-loop gates; v0.4 (April 2026) sharpened persistenceنقاط حفظ وإعادة محاولة وبوابات موافقة بشرية؛ الإصدار 0.4 (أبريل 2026) حسّن الحفظ
Limitالحد Steepest learning curve of the threeأصعب منحنى تعلم بين الثلاثة

Two more names you will meet: Microsoft's AutoGen, strong for research-style multi-agent conversations, and Mastra, a TypeScript option if your team lives in JavaScript. They are real choices, but the four cards above cover most decisions.اسمان آخران ستقابلهما: AutoGen من Microsoft، قوي في المحادثات البحثية بين عدة وكلاء، وMastra خيار TypeScript إن كان فريقك يعمل بـ JavaScript. كلاهما خيار حقيقي، لكن البطاقات الأربع السابقة تغطي معظم القرارات.

The decision in one sentence eachالقرار في جملة واحدة لكل حالة

You do not code and your data may leave the network: Zapier or Make. You do not code and your data must stay home: self-hosted n8n. You code and want a working prototype this week: CrewAI. You code and this will run unattended in production, with retries and approvals: LangGraph. That is the whole map.لا تبرمج وبياناتك يمكن أن تخرج من الشبكة: Zapier أو Make. لا تبرمج وبياناتك يجب أن تبقى عندك: n8n مستضاف ذاتياً. تبرمج وتريد نموذجاً تجريبياً هذا الأسبوع: CrewAI. تبرمج وسيعمل النظام وحده في بيئة الإنتاج بإعادة محاولات وموافقات: LangGraph. هذه هي الخريطة كاملة.

The one rule that never changesالقاعدة التي لا تتغير أبداً

Whichever tool you pick, design the human gates first. List the actions that change money, records, or access, and make every one of them pause for approval. An agent that does ninety safe steps autonomously and stops at the ten dangerous ones is a production system. One that does all hundred is an incident report. Before you ship, read the deadly security mistakes that turn agents into incidents.أياً كانت الأداة، صمم بوابات الموافقة البشرية أولاً. اكتب قائمة الإجراءات التي تغير المال أو السجلات أو الصلاحيات، واجعل كل واحد منها يتوقف لموافقة إنسان. الوكيل الذي ينفذ تسعين خطوة آمنة وحده ويتوقف عند العشر الخطرة هو نظام إنتاج. والذي ينفذ المئة كلها هو تقرير حادثة. وقبل النشر، اقرأ الأخطاء الأمنية القاتلة التي تحول الوكلاء إلى حوادث.

Shareشارك

Put one workflow into production.ضعوا عمليةً واحدة في الإنتاج.

A 15-minute call, then a real assessment of what an agent can run on your own servers.مكالمة من ١٥ دقيقة، ثم تقييم حقيقي لما يستطيع الوكيل تشغيله على خوادمكم.

Book a scoping call →احجز مكالمة تقييم ←
Keep readingتابع القراءة