返回顶部
c

cleanup-workflows

Audit and remove inactive, test, or deprecated workflows from HubSpot. Identifies workflows that have never enrolled contacts, workflows turned off for 90+ days, and test workflows.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
63
下载量
0
收藏
概述
安装方式
版本历史

cleanup-workflows

# Cleanup Workflows Audit HubSpot workflows to remove dead weight. Unused workflows clutter the automation dashboard and make it harder to understand what is actually running. ## Prerequisites - HubSpot API token in `.env` - Python with `hubspot-api-client` installed via `uv` - Note: The Workflows API may return 403 on some plan tiers. If so, audit manually in HubSpot UI under Automation > Workflows. ## Step-by-Step Instructions ### Stage 1: Before — Inventory All Workflows Pull all workflows. The Automation API endpoint for workflows: ```python import requests headers = {"Authorization": f"Bearer {os.getenv('HUBSPOT_API_TOKEN')}"} response = requests.get( "https://api.hubapi.com/automation/v4/flows", headers=headers, params={"limit": 100} ) workflows = response.json() ``` For each workflow, record: ID, name, enabled status, type, enrollment count, created date, last updated date. ### Stage 2: Execute — Identify Candidates for Deletion Flag workflows matching any of these criteria: 1. **Turned off** for 90+ days with no plans to reactivate 2. **Zero enrollments** ever (likely test or abandoned drafts) 3. **Test workflows** (names containing "test", "temp", "copy of", "draft") 4. **Superseded workflows** replaced by newer versions 5. **Error state** workflows that have been failing consistently Before deleting, check: - Does the workflow feed into another workflow (via enrollment trigger)? - Does the workflow set properties that other workflows depend on? - Is there any documentation referencing this workflow? ### Stage 3: After — Delete and Document 1. Turn off workflows first, wait one week, then delete if no issues arise. 2. Document deleted workflows in a cleanup log (name, purpose, reason for deletion). 3. Notify workflow owners before deletion. ### Stage 4: Rollback - Deleted workflows cannot be restored. - Before deleting, screenshot or document the workflow logic (triggers, actions, branches) so it can be recreated if needed. - HubSpot retains workflow activity history on contact records even after the workflow is deleted. ## Tips - Use folders in the workflows dashboard to organize by team, purpose, or status. - Prefix draft/test workflows with "[TEST]" so they are easy to identify later. - Review workflows quarterly as part of the database cleanup routine.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cleanup-workflows-1776001441 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cleanup-workflows-1776001441 技能

通过命令行安装

skillhub install cleanup-workflows-1776001441

下载 Zip 包

⬇ 下载 cleanup-workflows v1.0.0

文件大小: 1.99 KB | 发布时间: 2026-4-13 09:46

v1.0.0 最新 2026-4-13 09:46
- Initial release of cleanup-workflows skill.
- Audits HubSpot workflows to identify and remove inactive, test, or deprecated workflows.
- Flags workflows based on inactivity, zero enrollments, test/draft naming, superseded status, and consistent errors.
- Provides step-by-step instructions for inventory, review, deletion, documentation, and rollback precautions.
- Includes tips for organizing and maintaining a clean HubSpot workflow environment.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部