Sent Templates

sentdm/sent-plugin/packages/sent/skills/sent-templates

作者 sentdme3d91640fb6f48601c17ddb4ff3df2d3a5f81d6f無授權條款48 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 天前更新

Lists, finds by name or ID, inspects, or deletes existing Sent templates with the Sent MCP tools. Use when a user asks to browse templates, find an approved template, check template language, channel, category, or status, retrieve a template record, or delete a template. Use waba-template-author to write WhatsApp content and template-builder-ui to design template interfaces.

AI 產生的概覽

透過 Sent MCP 工具瀏覽、檢視和刪除現有的 Sent 訊息範本。

功能
此技能指導代理使用 Sent MCP 工具 templates.list、templates.get、templates.get_by_name 和 templates.delete 操作現有的 Sent 範本記錄。涵蓋帶篩選的探索與分頁、依識別碼或名稱精確查找,以及檢視範本的語言、通道、類別和狀態。刪除遵循嚴格流程:先確定唯一範本、取得該範本、顯示預覽、取得明確確認,然後執行刪除。它也說明如何使用用戶端管理的 OAuth 和 Sender Profile 選擇來處理連線範圍。
適用情境
當使用者要求瀏覽範本、依名稱或 ID 尋找已核准的範本、查看範本的語言、通道、類別或狀態、取得範本記錄或刪除範本時使用。它不用於撰寫 WhatsApp 內容或設計範本介面,這些會移交給其他技能。
執行需求
需要存取 Sent MCP 工具(templates.list、templates.get、templates.get_by_name、templates.delete、sender_profiles.list、sender_profiles.get)以及用戶端管理的 OAuth 2.1/PKCE 身分驗證。不包含指令碼,僅為說明文件。

Sent Templates

Operate existing template records with templates.list, templates.get, templates.get_by_name, and templates.delete.

Establish connection and scope

Use client-managed OAuth 2.1/PKCE and never request or expose credentials. Surface the active organization and Sender Profile before deletion; use sent-account-readiness if the connection context does not expose both.

Avoid repeating template body text or sample data unnecessarily. Prefer template identifiers, names, languages, channels, categories, and statuses in summaries.

An organization grant may select an owned Sender Profile with the tool schema's optional profileId; omit it to act as the authenticated account. Validate ownership with sender_profiles.list or sender_profiles.get, and use the same selector for preflight reads, mutations, and follow-up reads. Profile grants cannot use this selector. Reauthorize for a different organization or a profile outside the grant. Never invent scope fields or request credentials.

Find and inspect templates

  • Use templates.list for filtered discovery and pagination.
  • Use templates.get for an exact template identifier.
  • Use templates.get_by_name when the user supplies a name. If a name can match more than one language, channel, or scope, present the candidates and resolve one exact record before continuing.

These tools inspect existing records. For authoring or classification, hand off to waba-template-author; for a tenant-facing creation experience, hand off to template-builder-ui.

Delete a template

  1. Resolve the request to one exact template.
  2. Fetch that target first with templates.get or templates.get_by_name. Never delete from a guessed identifier, broad filter, or stale list result.
  3. Show a delete preview with the selected organization, Sender Profile, exact template identifier, name, language, channel, category, and status. State that deletion is destructive; do not repeat its body.
  4. Ask for explicit confirmation to delete this exact target. Earlier or general approval is not sufficient.
  5. Call templates.delete immediately after confirmation. A change to target, scope, or record invalidates confirmation.

Never call templates.delete without fetching the target and obtaining explicit confirmation immediately before the call. Treat every retry as a new mutation: refetch the target, show a fresh preview, and obtain new explicit confirmation.

If the result is ambiguous, re-read the target when possible. Report uncertainty and do not retry automatically.

來源與署名

來源:sentdm/sent-plugin位於packages/sent/skills/sent-templates提交e3d9164

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架