Communitygithub.com

ComposioHQ/HeyGen-Automation

透過 Composio 自動化 HeyGen 平台上的 AI 影片生成、頭像瀏覽、模板影片創作與影片狀態追蹤。

HeyGen-Automation 是什麼?

HeyGen Automation 是一個透過 Composio MCP 整合的 AI 技能,專為開發者與 AI 代理設計,旨在自動化 HeyGen 平台上的影片創作流程。該技能支援瀏覽頭像與模板、從模板生成個人化影片、監控處理狀態,以及取得可分享的影片連結。所有操作均透過 Composio MCP 伺服器進行,使用者只需連接 HeyGen 帳號即可啟用相關工具。主要工作流程包括:讀取模板清單、檢查模板詳細變數與場景結構、瀏覽可用頭像、使用模板生成影片、輪詢處理進度,以及產生公開分享連結。技能文件也列出了常見陷阱,例如所有模板變數都必須精確提供、影片 URL 會在 7 天後過期,以及頭像清單可能需要分頁讀取。此整合支援 Claude Code、Cursor、Codex 等代理平台,適合用於批量製作行銷內容、個人化問候影片或自動化影音工作。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/heygen-automation

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

HeyGen Automation

自動化 AI 驅動的影片創作工作流程——瀏覽頭像與模板、從模板生成個人化影片、追蹤處理狀態,以及取得可分享的 URL——全部透過 Composio MCP 整合編排。

工具組文件: composio.dev/toolkits/heygen


設定

  1. 透過 Composio MCP 伺服器 (位於 https://rube.app/mcp) 連接你的 HeyGen 帳號
  2. 如果沒有有效的連線,代理會提示你提供驗證連結
  3. 連線成功後,所有 HEYGEN_* 工具即可執行

核心工作流程

1. 瀏覽可用的模板

從 HeyGen 函式庫中取得預先設計好的頭像模板,用於影片創作。

工具: HEYGEN_V2_TEMPLATES

不需要參數——回傳模板 ID、名稱、預覽圖片和自訂選項。

在生成影片前使用此功能來探索模板。每個模板都有一個獨特的 ID,生成時會用到。


2. 檢查模板詳細資料與變數

取得模板的完整結構,包括所有變數、場景對應和自訂選項。

工具: HEYGEN_RETRIEVE_TEMPLATE_DETAILS_V3

參數類型必填說明
template_idstring是來自 HEYGEN_V2_TEMPLATES 或 HeyGen 儀表板的模板 ID

這是生成影片前必要的準備步驟——它會精確告訴你哪些變數必須填入。


3. 瀏覽可用的頭像

列出所有可用於影片創作的寫實頭像,有助於將角色對應到場景。

工具: HEYGEN_V2_AVATARS

不需要參數——回傳頭像識別碼、名稱和預覽圖片。
清單可能是分頁的;可能需要額外呼叫才能取得完整集合。

4. 從模板生成影片

透過填入模板的變數和內容,建立個人化影片。

工具: HEYGEN_V2_TEMPLATE_GENERATE

提供影片標題以及透過 HEYGEN_RETRIEVE_TEMPLATE_DETAILS_V3 發現的所有模板變數。每個必要的變數必須以精確的名稱和類型提供。


5. 檢查影片處理狀態

輪詢正在生成中影片的處理狀態,並取得中繼資料。

工具: HEYGEN_RETRIEVE_VIDEO_STATUS_DETAILS

參數類型必填說明
video_idstring是從生成 API 回傳的影片 ID

回傳的 URL 會在 7 天後過期,但可以再次呼叫此端點來重新產生。


6. 取得可分享的影片 URL

產生一個公開的可分享連結,讓任何人都可以在不需要驗證的情況下觀看影片。

工具: HEYGEN_RETRIEVE_SHARABLE_VIDEO_URL

提供 video_id 以接收用於分發的公開 URL。


已知陷阱

陷阱詳細資訊
所有模板變數皆為必填HEYGEN_V2_TEMPLATE_GENERATE 需要來自 HEYGEN_RETRIEVE_TEMPLATE_DETAILS_V3 的所有變數,且名稱和類型必須完全一致——缺少或錯誤命名的欄位會破壞場景或導致生成失敗
務必先檢查模板在生成之前絕不能跳過 HEYGEN_RETRIEVE_TEMPLATE_DETAILS_V3——多場景模板具有複雜的變數結構
影片 URL 會過期來自 HEYGEN_RETRIEVE_VIDEO_STATUS_DETAILS 的 URL 會在 7 天後過期;再次呼叫此端點即可重新產生
分頁的頭像清單HEYGEN_V2_AVATARS 可能回傳分頁結果——可能需要額外呼叫才能取得完整的函式庫
處理時間不固定影片生成是非同步的;請輪詢 HEYGEN_RETRIEVE_VIDEO_STATUS_DETAILS 直到狀態為完成,再使用輸出 URL

快速參考

工具代號用途
HEYGEN_V2_TEMPLATES列出可用的影片模板
HEYGEN_RETRIEVE_TEMPLATE_DETAILS_V3取得模板變數和場景結構
HEYGEN_V2_AVATARS瀏覽可用的 AI 頭像
HEYGEN_V2_TEMPLATE_GENERATE從模板生成影片
HEYGEN_RETRIEVE_VIDEO_STATUS_DETAILS檢查影片處理狀態並取得 URL
HEYGEN_RETRIEVE_SHARABLE_VIDEO_URL取得公開可分享的影片連結

Powered by Composio

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能