شعار Bounce Monitoring Workflow

Bounce Monitoring Workflow

المجتمع
TomGranot
bounce-monitoring-workflow

Build a workflow to protect sender reputation through automated bounce monitoring. Auto-suppresses contacts above a configurable bounce threshold, alerts on hard bounces, and flags high-bounce contacts for weekly manual review.

Add to TypingMind

نظرة عامة

الناشرTomGranot
المستودعhubspot-admin-skills
اسم المهارةbounce-monitoring-workflow
النجوم
79
التفريعات
18
الملفات المرفقة
3
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها TomGranot على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Bounce Monitoring Workflow في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/bounce-monitoring-workflow
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills.git /tmp/hubspot-admin-skills
mkdir -p .claude/skills
cp -r /tmp/hubspot-admin-skills/skills/bounce-monitoring-workflow .claude/skills/bounce-monitoring-workflow
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Bounce Monitoring Workflow في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Bounce Monitoring Workflow تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Bounce Monitoring Workflow بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Bounce Monitoring Workflow

Protect your email sender reputation with automated bounce detection and suppression. This workflow catches bounces as they happen rather than waiting for periodic cleanup.

How It Works

ConditionAction
Hard bounce detectedAlert admin immediately, suppress contact
Suppression threshold reached (commonly 2-3 bounces)Auto-suppress from marketing emails
Review threshold reached (commonly 3-5 bounces)Flag for weekly manual review (delete vs. recover)

Prerequisites

  • HubSpot Marketing Professional or Enterprise plan
  • A HubSpot service key (HUBSPOT_ACCESS_TOKEN in .env; an existing legacy private app token also works) with the automation scope (for the API path)
  • Python 3.10+ with uv
  • A custom contact property for review flagging (default: email_health_flag — the execute script creates it if missing)
  • Admin email or Slack channel for hard bounce alerts

Scripts

Script paths are relative to this skill's directory. Run them from your project directory so .env, data/, and reports/ resolve there: prefix each path with wherever this skill is installed (skills/bounce-monitoring-workflow/ in a clone of the repo).

StageScriptRun with
Beforescripts/before.pyuv run scripts/before.py
Executescripts/execute.pyuv run scripts/execute.py
Afterscripts/after.pyuv run scripts/after.py

before.py inventories existing workflows and checks name collisions. execute.py creates the email_health_flag property (if missing) and three bounce workflows via POST /automation/v4/flows — always disabled, for review before enabling. after.py verifies and reports enabled state.

Building the Workflow: Two Options

Option A: Create via the v4 Automation API (primary)

API status: HubSpot documents the Workflows API as beta and subject to change. Its current reference is the date-based beta path /automation/v4/2027-03-beta/flows; this skill's scripts still call the unversioned /automation/v4/flows path, which v4's end of support on March 30, 2027 also covers. Creating workflows disabled and reviewing them in the UI is what makes a beta API acceptable here. If a script's create call starts failing, the manual UI build below is the fallback.

Instead of one workflow with three nested branches, the script decomposes the design into three linear workflows — the same coverage, cleanly expressible via the API and independently tunable:

  1. Hard Bounce Suppression: enrollment = hs_email_hard_bounce_reason_enum is known. Actions: set email_health_flag, set marketing contact status to non-marketing.
  2. Suppress at N+ Bounces: enrollment = hs_email_bounce >= suppression threshold (re-enrollment on). Action: set marketing contact status to non-marketing.
  3. Flag for Review at M+ Bounces: enrollment = hs_email_bounce >= review threshold (re-enrollment on). Action: set email_health_flag (feeds /review-bounced-contacts).

Configure SUPPRESSION_THRESHOLD and REVIEW_THRESHOLD in execute.py, then:

bash
uv run scripts/before.py
uv run scripts/execute.py

Safety model: all three workflows are created with isEnabled: false. During UI review: add the internal-notification actions (hard bounce alert, review alert — notification recipients are portal-specific), add "Set marketing contact status" manually if the script reported it had to omit it, then turn the workflows on.

Option B: Manual UI Build (single workflow with nested branches)

Follow the step-by-step instructions in Stage 3 below — the original single-workflow design with three branch levels. Use this on portals where the Automation API is unavailable.

Alternatives: HubSpot Breeze AI can scaffold a similar workflow from a prompt, but it creates event-based (OR) triggers, cannot configure re-enrollment, and may flatten nested branches — verify everything it builds. The Claude Chrome extension can drive the workflow builder UI directly. Both are secondary options.

Step-by-Step Build Instructions

Stage 1: Plan

  1. Choose your suppression threshold (commonly 2-3 bounces) and review threshold (commonly 3-5).
  2. Decide who receives hard-bounce and review alerts.

Stage 2: Before

  1. Run uv run scripts/before.py to inventory workflows and check name collisions.
  2. Identify your current bounce baseline — run a quick search for contacts where hs_email_bounce > 0 to understand the starting volume.
  3. If building manually, create your bounce review property (checkbox or dropdown) — the API path creates it automatically.

Stage 3: Execute

Option A: run uv run scripts/execute.py, then complete the UI review steps listed above.

Option B — manual UI build: build a single contact-based workflow with branching logic.

  1. Trigger: hs_email_bounce is known (fires when bounce count updates)

  2. Branch 1: Hard bounce check

    • Condition: hs_email_hard_bounce_reason_enum is known
    • YES:
      • Send internal notification: "Hard bounce: {email} — {hs_email_hard_bounce_reason_enum}"
      • Set hs_marketable_status to non-marketing (workflow action)
    • NO: Continue to Branch 2
  3. Branch 2: Bounce count >= your suppression threshold (commonly 2-3)

    • Condition: hs_email_bounce is greater than or equal to your suppression threshold
    • YES:
      • Set hs_marketable_status to non-marketing (workflow action)
      • Continue to Branch 3
    • NO: No action (below threshold — monitor only)
  4. Branch 3: Bounce count >= your review threshold (commonly 3-5)

    • Condition: hs_email_bounce is greater than or equal to your review threshold
    • YES:
      • Set your bounce review property = flagged
      • Send internal notification: "Contact {email} has [review threshold]+ bounces — review for deletion"
    • NO: No further action
  5. Settings:

    • Re-enrollment: ON (contact should re-enter if bounce count increases)
    • Goal: None
  6. Turn on the workflow.

Stage 4: After

  1. Run uv run scripts/after.py (API path) to confirm the workflows exist and report enabled state.
  2. Check workflow history after the first week of email sends.
  3. Review the flagged contacts list weekly — decide for each contact:
    • Delete if the email is clearly invalid (typo domain, defunct company)
    • Attempt recovery if the domain is valid (could be a temporary mailbox issue)
  4. Monitor overall bounce rate in HubSpot email health dashboard.

Rollback

  1. Turn off the workflow.
  2. Contacts already suppressed remain non-marketing. To reverse:
    • Filter contacts suppressed by this workflow (check your bounce review property or workflow history)
    • Manually set back to marketing contacts in the UI
  3. Clear your bounce review property values in bulk if needed.

Weekly Review Process

For contacts flagged at your review threshold:

  1. Export the flagged contacts list.
  2. For each contact, check:
    • Is the email domain still active? (Quick MX record check)
    • Is this a known customer or high-value contact?
    • Was the bounce recent or historical?
  3. Delete contacts with invalid domains or clearly fake emails.
  4. Keep suppressed contacts with valid domains but repeated soft bounces.
  5. Clear the bounce review property after review.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Bounce Monitoring Workflow؟

Build a workflow to protect sender reputation through automated bounce monitoring. Auto-suppresses contacts above a configurable bounce threshold, alerts on hard bounces, and flags high-bounce contacts for weekly manual review.

لماذا تستخدم Bounce Monitoring Workflow على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Bounce Monitoring Workflow عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Bounce Monitoring Workflow في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/bounce-monitoring-workflow. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Bounce Monitoring Workflow؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Bounce Monitoring Workflow؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Bounce Monitoring Workflow معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Bounce Monitoring Workflow مجانية؟

نعم. نشرها TomGranot على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇