[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-\u002Far\u002Fdocs\u002Fpipelines\u002Fcontrole-flux":3,"docs-nav-ar":542},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"body":10,"_type":536,"_id":537,"_source":538,"_file":539,"_stem":540,"_extension":541},"\u002Far\u002Fdocs\u002Fpipelines\u002Fcontrole-flux","pipelines",false,"","التحكّم في التدفّق","المرشِّحات، الموجِّهات، حلقات foreach والفروع المتوازية — لقيادة مسارات تنفيذ الـpipeline، مع أفضل الممارسات.",{"type":11,"children":12,"toc":528},"root",[13,29,36,50,55,238,259,265,285,289,322,334,340,353,434,439,456,462,482,488],{"type":14,"tag":15,"props":16,"children":17},"element","p",{},[18,21,27],{"type":19,"value":20},"text","إلى جانب الوكلاء والمشغّلات، يوفّر betool ",{"type":14,"tag":22,"props":23,"children":24},"strong",{},[25],{"type":19,"value":26},"عُقد تحكّم",{"type":19,"value":28}," لهيكلة منطق الـpipeline.",{"type":14,"tag":30,"props":31,"children":33},"h2",{"id":32},"المرشِّح-filter",[34],{"type":19,"value":35},"المرشِّح (Filter)",{"type":14,"tag":15,"props":37,"children":38},{},[39,41,48],{"type":19,"value":40},"عقدة ",{"type":14,"tag":42,"props":43,"children":45},"code",{"className":44},[],[46],{"type":19,"value":47},"filter",{"type":19,"value":49}," بوّابة حتمية: يستمرّ التنفيذ نحو العُقد اللاحقة إذا تحقّقت شروطها، وإلا يتوقّف الفرع عندها.",{"type":14,"tag":15,"props":51,"children":52},{},[53],{"type":19,"value":54},"التهيئة:",{"type":14,"tag":56,"props":57,"children":58},"ul",{},[59,94,120],{"type":14,"tag":60,"props":61,"children":62},"li",{},[63,68,70,76,78,84,86,92],{"type":14,"tag":22,"props":64,"children":65},{},[66],{"type":19,"value":67},"الشروط",{"type":19,"value":69}," — كلٌّ منها بالشكل ",{"type":14,"tag":42,"props":71,"children":73},{"className":72},[],[74],{"type":19,"value":75},"{الحقل، المُعامِل، القيمة}",{"type":19,"value":77},". الحقل مُحدِّد (selector) في التدفّق (",{"type":14,"tag":42,"props":79,"children":81},{"className":80},[],[82],{"type":19,"value":83},"exchange.intent",{"type":19,"value":85},"، ",{"type":14,"tag":42,"props":87,"children":89},{"className":88},[],[90],{"type":19,"value":91},"webhook.payload.type",{"type":19,"value":93},"…)؛ والقيمة سلسلة نصية قابلة للقولبة.",{"type":14,"tag":60,"props":95,"children":96},{},[97,102,104,110,112,118],{"type":14,"tag":22,"props":98,"children":99},{},[100],{"type":19,"value":101},"المُجمِّع",{"type":19,"value":103}," — ",{"type":14,"tag":42,"props":105,"children":107},{"className":106},[],[108],{"type":19,"value":109},"AND",{"type":19,"value":111}," (الافتراضي) أو ",{"type":14,"tag":42,"props":113,"children":115},{"className":114},[],[116],{"type":19,"value":117},"OR",{"type":19,"value":119}," بين الشروط.",{"type":14,"tag":60,"props":121,"children":122},{},[123,128,129,135,137,143,144,150,151,157,158,164,165,171,172,178,179,185,186,192,194,200,201,207,208,214,215,221,223,229,230,236],{"type":14,"tag":22,"props":124,"children":125},{},[126],{"type":19,"value":127},"المُعامِلات",{"type":19,"value":103},{"type":14,"tag":42,"props":130,"children":132},{"className":131},[],[133],{"type":19,"value":134},"equals",{"type":19,"value":136}," \u002F ",{"type":14,"tag":42,"props":138,"children":140},{"className":139},[],[141],{"type":19,"value":142},"not_equals",{"type":19,"value":85},{"type":14,"tag":42,"props":145,"children":147},{"className":146},[],[148],{"type":19,"value":149},"contains",{"type":19,"value":136},{"type":14,"tag":42,"props":152,"children":154},{"className":153},[],[155],{"type":19,"value":156},"not_contains",{"type":19,"value":85},{"type":14,"tag":42,"props":159,"children":161},{"className":160},[],[162],{"type":19,"value":163},"starts_with",{"type":19,"value":85},{"type":14,"tag":42,"props":166,"children":168},{"className":167},[],[169],{"type":19,"value":170},"ends_with",{"type":19,"value":85},{"type":14,"tag":42,"props":173,"children":175},{"className":174},[],[176],{"type":19,"value":177},"regex",{"type":19,"value":85},{"type":14,"tag":42,"props":180,"children":182},{"className":181},[],[183],{"type":19,"value":184},"is_empty",{"type":19,"value":136},{"type":14,"tag":42,"props":187,"children":189},{"className":188},[],[190],{"type":19,"value":191},"is_not_empty",{"type":19,"value":193},"، مقارنات عددية ",{"type":14,"tag":42,"props":195,"children":197},{"className":196},[],[198],{"type":19,"value":199},"gt",{"type":19,"value":136},{"type":14,"tag":42,"props":202,"children":204},{"className":203},[],[205],{"type":19,"value":206},"gte",{"type":19,"value":136},{"type":14,"tag":42,"props":209,"children":211},{"className":210},[],[212],{"type":19,"value":213},"lt",{"type":19,"value":136},{"type":14,"tag":42,"props":216,"children":218},{"className":217},[],[219],{"type":19,"value":220},"lte",{"type":19,"value":222},"، الانتماء إلى قائمة ",{"type":14,"tag":42,"props":224,"children":226},{"className":225},[],[227],{"type":19,"value":228},"in",{"type":19,"value":136},{"type":14,"tag":42,"props":231,"children":233},{"className":232},[],[234],{"type":19,"value":235},"not_in",{"type":19,"value":237}," (قيم مفصولة بفواصل). ويُرفَض أي مُعامِل غير معروف عند الحفظ.",{"type":14,"tag":15,"props":239,"children":240},{},[241,243,249,251,257],{"type":19,"value":242},"الاستخدام النموذجي: إزالة الضوضاء قبل تكاليف LLM اللاحقة — تجاهل رسائل البريد التي يكون ",{"type":14,"tag":42,"props":244,"children":246},{"className":245},[],[247],{"type":19,"value":248},"from",{"type":19,"value":250}," فيها ضمن قائمة حظر، أو الـwebhooks التي يكون فيها ",{"type":14,"tag":42,"props":252,"children":254},{"className":253},[],[255],{"type":19,"value":256},"type != \"order.created\"",{"type":19,"value":258},".",{"type":14,"tag":30,"props":260,"children":262},{"id":261},"الموجِّه-router",[263],{"type":19,"value":264},"الموجِّه (Router)",{"type":14,"tag":15,"props":266,"children":267},{},[268,270,276,278,283],{"type":19,"value":269},"ترسل عقدة ",{"type":14,"tag":42,"props":271,"children":273},{"className":272},[],[274],{"type":19,"value":275},"router",{"type":19,"value":277}," التنفيذ نحو أحد ",{"type":14,"tag":22,"props":279,"children":280},{},[281],{"type":19,"value":282},"مساراتها المُسمّاة",{"type":19,"value":284},". ويتّخذ القرارَ LLM انطلاقًا من موجِّه (prompt) توجيه ومن السياق الذي تركّبه — للتوجيه بحسب النيّة أو الفئة أو النبرة.",{"type":14,"tag":15,"props":286,"children":287},{},[288],{"type":19,"value":54},{"type":14,"tag":56,"props":290,"children":291},{},[292,302,312],{"type":14,"tag":60,"props":293,"children":294},{},[295,300],{"type":14,"tag":22,"props":296,"children":297},{},[298],{"type":19,"value":299},"الـPrompt",{"type":19,"value":301}," — تعليمة التصنيف.",{"type":14,"tag":60,"props":303,"children":304},{},[305,310],{"type":14,"tag":22,"props":306,"children":307},{},[308],{"type":19,"value":309},"المسارات",{"type":19,"value":311}," — لكل اسم مسار، الرسم البياني الفرعي المُراد تنفيذه. ويجب وصل كل مسار مُعلَن، وإلا يُرفَض النشر.",{"type":14,"tag":60,"props":313,"children":314},{},[315,320],{"type":14,"tag":22,"props":316,"children":317},{},[318],{"type":19,"value":319},"النموذج",{"type":19,"value":321}," — إمكانية تخصيص LLM خفيف للتوجيه (tiering) للتحكّم في التكلفة وزمن الاستجابة.",{"type":14,"tag":15,"props":323,"children":324},{},[325,327,332],{"type":19,"value":326},"للتوجيه الحتمي تمامًا (قيمة مطابقة لحقل، حالة HTTP)، فضِّل عُقد ",{"type":14,"tag":42,"props":328,"children":330},{"className":329},[],[331],{"type":19,"value":47},{"type":19,"value":333}," موضوعة بالتوازي: يكون المُسنَد عندئذٍ آليًا، لا مُفسَّرًا.",{"type":14,"tag":30,"props":335,"children":337},{"id":336},"الحلقة-foreach",[338],{"type":19,"value":339},"الحلقة (foreach)",{"type":14,"tag":15,"props":341,"children":342},{},[343,345,351],{"type":19,"value":344},"تكرّر عقدة ",{"type":14,"tag":42,"props":346,"children":348},{"className":347},[],[349],{"type":19,"value":350},"foreach",{"type":19,"value":352}," على مجموعة. التهيئة:",{"type":14,"tag":56,"props":354,"children":355},{},[356,370,384,398,412],{"type":14,"tag":60,"props":357,"children":358},{},[359,368],{"type":14,"tag":22,"props":360,"children":361},{},[362],{"type":14,"tag":42,"props":363,"children":365},{"className":364},[],[366],{"type":19,"value":367},"items",{"type":19,"value":369}," — مُحدِّد القائمة المُراد التكرار عليها.",{"type":14,"tag":60,"props":371,"children":372},{},[373,382],{"type":14,"tag":22,"props":374,"children":375},{},[376],{"type":14,"tag":42,"props":377,"children":379},{"className":378},[],[380],{"type":19,"value":381},"as",{"type":19,"value":383}," — الاسم المحلي للعنصر الحالي.",{"type":14,"tag":60,"props":385,"children":386},{},[387,396],{"type":14,"tag":22,"props":388,"children":389},{},[390],{"type":14,"tag":42,"props":391,"children":393},{"className":392},[],[394],{"type":19,"value":395},"max",{"type":19,"value":397}," — سقف التكرارات (الافتراضي 10): ما بعده، تُقتطَع القائمة ويُسجَّل الحدث.",{"type":14,"tag":60,"props":399,"children":400},{},[401,410],{"type":14,"tag":22,"props":402,"children":403},{},[404],{"type":14,"tag":42,"props":405,"children":407},{"className":406},[],[408],{"type":19,"value":409},"collect",{"type":19,"value":411}," — (اختياري) المفتاح الذي تُجمَّع فيه نتائج كل دورة.",{"type":14,"tag":60,"props":413,"children":414},{},[415,424,426,432],{"type":14,"tag":22,"props":416,"children":417},{},[418],{"type":14,"tag":42,"props":419,"children":421},{"className":420},[],[422],{"type":19,"value":423},"max_per_minute",{"type":19,"value":425}," — (اختياري) الوتيرة القصوى، لتباعد الدورات عندما يستدعي جسم الحلقة API يُقيّد معدّل الطلبات. ",{"type":14,"tag":42,"props":427,"children":429},{"className":428},[],[430],{"type":19,"value":431},"0",{"type":19,"value":433}," (الافتراضي) = بلا حدّ.",{"type":14,"tag":15,"props":435,"children":436},{},[437],{"type":19,"value":438},"عند كل دورة، يُنفَّذ الرسم البياني الفرعي الداخلي على العنصر الحالي.",{"type":14,"tag":440,"props":441,"children":443},"alert",{"type":442},"warning",[444],{"type":14,"tag":15,"props":445,"children":446},{},[447,449,454],{"type":19,"value":448},"السقف ",{"type":14,"tag":42,"props":450,"children":452},{"className":451},[],[453],{"type":19,"value":395},{"type":19,"value":455}," هو حارس التكلفة لديك: قائمة غير متوقّعة من 10 000 عنصر لن تُطلق أبدًا 10 000 تنفيذ.",{"type":14,"tag":30,"props":457,"children":459},{"id":458},"التوازي-parallel",[460],{"type":19,"value":461},"التوازي (Parallel)",{"type":14,"tag":15,"props":463,"children":464},{},[465,467,473,475,480],{"type":19,"value":466},"تنفّذ عقدة ",{"type":14,"tag":42,"props":468,"children":470},{"className":469},[],[471],{"type":19,"value":472},"parallel",{"type":19,"value":474}," عدّة رسوم بيانية فرعية ",{"type":14,"tag":22,"props":476,"children":477},{},[478],{"type":19,"value":479},"بالتزامن",{"type":19,"value":481}," وتنتظر انتهاءها جميعًا قبل المتابعة. مفيدة لاستعلام عدّة مصادر مستقلّة (بحث في CRM + قراءة تقويم) دون جمع أزمنة الاستجابة.",{"type":14,"tag":30,"props":483,"children":485},{"id":484},"أفضل-الممارسات",[486],{"type":19,"value":487},"أفضل الممارسات",{"type":14,"tag":56,"props":489,"children":490},{},[491,508,518],{"type":14,"tag":60,"props":492,"children":493},{},[494,499,501,506],{"type":14,"tag":22,"props":495,"children":496},{},[497],{"type":19,"value":498},"رشِّح مبكرًا.",{"type":19,"value":500}," كل exchange يمرّ عبر وكيل يكلّف tokens؛ أما ",{"type":14,"tag":42,"props":502,"children":504},{"className":503},[],[505],{"type":19,"value":47},{"type":19,"value":507}," في الأعلى فلا يكلّف شيئًا.",{"type":14,"tag":60,"props":509,"children":510},{},[511,516],{"type":14,"tag":22,"props":512,"children":513},{},[514],{"type":19,"value":515},"حافظ على وضوح التوجيه.",{"type":19,"value":517}," موجِّه بـ12 مسارًا إشارة إلى الحاجة إلى مرحلتي تصنيف بدل منطق مكثّف.",{"type":14,"tag":60,"props":519,"children":520},{},[521,526],{"type":14,"tag":22,"props":522,"children":523},{},[524],{"type":19,"value":525},"حُدّ من الحلقات المتداخلة.",{"type":19,"value":527}," الحلقة داخل حلقة تضاعف التكاليف. فضِّل تحويل المجموعة في الأعلى.",{"title":7,"searchDepth":529,"depth":529,"links":530},2,[531,532,533,534,535],{"id":32,"depth":529,"text":35},{"id":261,"depth":529,"text":264},{"id":336,"depth":529,"text":339},{"id":458,"depth":529,"text":461},{"id":484,"depth":529,"text":487},"markdown","content:ar:docs:3.pipelines:4.controle-flux.md","content","ar\u002Fdocs\u002F3.pipelines\u002F4.controle-flux.md","ar\u002Fdocs\u002F3.pipelines\u002F4.controle-flux","md",[543],{"title":544,"_path":545,"children":546},"Ar","\u002Far",[547],{"title":548,"_path":549,"children":550},"Docs","\u002Far\u002Fdocs",[551,564,592,618,631,647,660,721],{"title":552,"_path":553,"children":554},"البدء","\u002Far\u002Fdocs\u002Fdemarrer",[555,558,561],{"title":556,"_path":557},"مرحبًا بك","\u002Far\u002Fdocs\u002Fdemarrer\u002Fbienvenue",{"title":559,"_path":560},"إنشاء حساب","\u002Far\u002Fdocs\u002Fdemarrer\u002Fcreer-un-compte",{"title":562,"_path":563},"ربط مفتاح LLM","\u002Far\u002Fdocs\u002Fdemarrer\u002Fbrancher-llm",{"title":565,"_path":566,"children":567},"القنوات","\u002Far\u002Fdocs\u002Fcanaux",[568,571,574,577,580,583,586,589],{"title":569,"_path":570},"نظرة عامة على القنوات","\u002Far\u002Fdocs\u002Fcanaux\u002Fvue-densemble",{"title":572,"_path":573},"الهاتف في الوقت الفعلي","\u002Far\u002Fdocs\u002Fcanaux\u002Ftelephone",{"title":575,"_path":576},"البريد الإلكتروني","\u002Far\u002Fdocs\u002Fcanaux\u002Femail",{"title":578,"_path":579},"أداة دردشة الويب","\u002Far\u002Fdocs\u002Fcanaux\u002Fchat-widget",{"title":581,"_path":582},"HTTP Webhook","\u002Far\u002Fdocs\u002Fcanaux\u002Fwebhook",{"title":584,"_path":585},"المراسلة (WhatsApp، Messenger، Telegram، Mattermost)","\u002Far\u002Fdocs\u002Fcanaux\u002Fmessageries",{"title":587,"_path":588},"Meta Lead Ads","\u002Far\u002Fdocs\u002Fcanaux\u002Ffacebook-leads",{"title":590,"_path":591},"الجدولة (cron)","\u002Far\u002Fdocs\u002Fcanaux\u002Fschedule",{"title":593,"_path":594,"children":595},"Pipelines","\u002Far\u002Fdocs\u002Fpipelines",[596,599,602,605,606,609,612,615],{"title":597,"_path":598},"المحرّر المرئي","\u002Far\u002Fdocs\u002Fpipelines\u002Fediteur-visuel",{"title":600,"_path":601},"وكلاء الذكاء الاصطناعي","\u002Far\u002Fdocs\u002Fpipelines\u002Fagents",{"title":603,"_path":604},"المشغّلات الحتمية (Operators)","\u002Far\u002Fdocs\u002Fpipelines\u002Foperateurs",{"title":8,"_path":4},{"title":607,"_path":608},"خطوات الكود (Code Steps)","\u002Far\u002Fdocs\u002Fpipelines\u002Fcode-step",{"title":610,"_path":611},"الـPipelines الفرعية","\u002Far\u002Fdocs\u002Fpipelines\u002Fsous-pipelines",{"title":613,"_path":614},"إجراءات بلا كود","\u002Far\u002Fdocs\u002Fpipelines\u002Factions-no-code",{"title":616,"_path":617},"قاعدة المعرفة","\u002Far\u002Fdocs\u002Fpipelines\u002Fbase-de-connaissances",{"title":619,"_path":620,"children":621},"الإشراف","\u002Far\u002Fdocs\u002Fsupervision",[622,625,628],{"title":623,"_path":624},"سجلّ عمليات التنفيذ","\u002Far\u002Fdocs\u002Fsupervision\u002Fexecutions",{"title":626,"_path":627},"الأرصدة والقياس","\u002Far\u002Fdocs\u002Fsupervision\u002Fcredits-metering",{"title":629,"_path":630},"المعايير (Benchmarks)","\u002Far\u002Fdocs\u002Fsupervision\u002Fbenchmarks",{"title":632,"_path":633,"children":634},"الأمن","\u002Far\u002Fdocs\u002Fsecurite",[635,638,641,644],{"title":636,"_path":637},"مبادئ الأمن","\u002Far\u002Fdocs\u002Fsecurite\u002Fprincipes",{"title":639,"_path":640},"تعدّد المستأجرين الصارم","\u002Far\u002Fdocs\u002Fsecurite\u002Fmulti-tenant",{"title":642,"_path":643},"تدقيق GDPR وسجلّ الوصول","\u002Far\u002Fdocs\u002Fsecurite\u002Faudit-rgpd",{"title":645,"_path":646},"النشر السيادي","\u002Far\u002Fdocs\u002Fsecurite\u002Fdeploiement-souverain",{"title":648,"_path":649,"children":650},"المطوّرون","\u002Far\u002Fdocs\u002Fdeveloppeurs",[651,654,657],{"title":652,"_path":653},"واجهة برمجة تطبيقات الإدارة (Admin API)","\u002Far\u002Fdocs\u002Fdeveloppeurs\u002Fapi-admin",{"title":655,"_path":656},"webhooks الصادرة","\u002Far\u002Fdocs\u002Fdeveloppeurs\u002Fwebhooks-sortants",{"title":658,"_path":659},"قيادة betool من Claude (MCP)","\u002Far\u002Fdocs\u002Fdeveloppeurs\u002Fmcp",{"title":661,"_path":662,"children":663},"التكاملات","\u002Far\u002Fdocs\u002Fintegrations",[664,667,670,673,676,679,682,685,688,691,694,697,700,703,706,709,712,715,718],{"title":665,"_path":666},"نظرة عامة على التكاملات","\u002Far\u002Fdocs\u002Fintegrations\u002Fvue-densemble",{"title":668,"_path":669},"Stripe","\u002Far\u002Fdocs\u002Fintegrations\u002Fstripe",{"title":671,"_path":672},"GitHub","\u002Far\u002Fdocs\u002Fintegrations\u002Fgithub",{"title":674,"_path":675},"Google","\u002Far\u002Fdocs\u002Fintegrations\u002Fgoogle",{"title":677,"_path":678},"LinkedIn Ads","\u002Far\u002Fdocs\u002Fintegrations\u002Flinkedin-ads",{"title":680,"_path":681},"Kavkom","\u002Far\u002Fdocs\u002Fintegrations\u002Fkavkom",{"title":683,"_path":684},"Jira","\u002Far\u002Fdocs\u002Fintegrations\u002Fjira",{"title":686,"_path":687},"Slack","\u002Far\u002Fdocs\u002Fintegrations\u002Fslack",{"title":689,"_path":690},"الرسائل القصيرة","\u002Far\u002Fdocs\u002Fintegrations\u002Fsms",{"title":692,"_path":693},"Enable Banking (الخدمات المصرفية المفتوحة)","\u002Far\u002Fdocs\u002Fintegrations\u002Fenable-banking",{"title":695,"_path":696},"CRM والتسويق والإنتاجية","\u002Far\u002Fdocs\u002Fintegrations\u002Fcrm-marketing",{"title":698,"_path":699},"HeyGen (الفيديو)","\u002Far\u002Fdocs\u002Fintegrations\u002Fheygen",{"title":701,"_path":702},"La Poste","\u002Far\u002Fdocs\u002Fintegrations\u002Fla-poste",{"title":704,"_path":705},"CRM متخصّص (beTool Application، Qhare)","\u002Far\u002Fdocs\u002Fintegrations\u002Fcrm-metier",{"title":707,"_path":708},"Mitti (الفحص الميداني)","\u002Far\u002Fdocs\u002Fintegrations\u002Fmitti",{"title":710,"_path":711},"Meta (Messenger، الصفحات، Meta Ads)","\u002Far\u002Fdocs\u002Fintegrations\u002Fmeta",{"title":713,"_path":714},"Onoff Business (Beta)","\u002Far\u002Fdocs\u002Fintegrations\u002Fonoff",{"title":716,"_path":717},"Smart Life \u002F Tuya (الأجهزة المتّصلة)","\u002Far\u002Fdocs\u002Fintegrations\u002Fsmart-life",{"title":719,"_path":720},"منتجات beTool (Desktop، Kiosk، Terminal)","\u002Far\u002Fdocs\u002Fintegrations\u002Fproduits-betool",{"title":722,"_path":723,"children":724},"حالات الاستخدام","\u002Far\u002Fdocs\u002Fcas-usage",[725,728,731,734,737,740],{"title":726,"_path":727},"agents أعمال نموذجية","\u002Far\u002Fdocs\u002Fcas-usage\u002Fvue-densemble",{"title":729,"_path":730},"CFO IA","\u002Far\u002Fdocs\u002Fcas-usage\u002Fcfo-ia",{"title":732,"_path":733},"COO IA","\u002Far\u002Fdocs\u002Fcas-usage\u002Fcoo-ia",{"title":735,"_path":736},"CTO IA","\u002Far\u002Fdocs\u002Fcas-usage\u002Fcto-ia",{"title":738,"_path":739},"Product Manager IA","\u002Far\u002Fdocs\u002Fcas-usage\u002Fproduct-manager-ia",{"title":741,"_path":742},"المساعد الشخصي","\u002Far\u002Fdocs\u002Fcas-usage\u002Fassistant-personnel"]