← 返回 Skills 市场
jiehao71727

Apidot Async Workflow

作者 jiehao71727 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
31
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install apidot-async-workflow
功能描述
Use APIDot async workflow for AI generation APIs, including task submission, task_id handling, polling API, task status API, callback_url, webhook API, retry...
使用说明 (SKILL.md)

APIDot Async Workflow

Use APIDot's async workflow for generation tasks that return a task_id, then complete through polling or webhook delivery.

This skill is for routing async integration questions to the right APIDot docs, examples, and production workflow guidance. It is documentation-only: it includes no executable files, setup-time automation, bundled API clients, automatic network calls, or stored credentials.

When To Use

Use this skill when the user asks to:

  • Build an async APIDot integration for image, video, music, or 3D generation.
  • Understand task submission, task_id persistence, polling API, task status API, callback_url, or webhook API behavior.
  • Decide when to use polling versus webhook delivery.
  • Design backend storage for task state, result URLs, retries, and user ownership.
  • Make webhook handlers idempotent and safe for duplicate callback delivery.
  • Find APIDot async workflow docs, webhook docs, model pages, or runnable examples.

Security Rules

  • Treat APIDOT_API_KEY as a secret.
  • Keep APIDot API keys in server-side environment variables or a backend secret manager.
  • Never place an API key in browser code, frontend bundles, public repos, logs, screenshots, or chat output.
  • Do not make live API calls unless the user explicitly asks and provides a safe server-side environment.
  • Do not invent API facts, pricing, model availability, reliability claims, refund behavior, or competitor comparisons.
  • Use current APIDot docs and model pages for model-specific request fields and current product details.

Async Workflow

Use this stable flow when explaining APIDot generation tasks:

  1. Choose the model and request fields from the current APIDot docs.
  2. Submit the generation request through the documented APIDot async generation flow.
  3. Persist the returned data.task_id before waiting, retrying, polling, or showing progress.
  4. Use the documented task status API for local testing, simple backend jobs, or short-lived workflows.
  5. Use callback_url webhook delivery for production queues or user workflows that may outlive the current page.
  6. Store final result URLs only after the task reaches a terminal success state.

Do not guess model-specific payload fields. If the user needs copyable request examples, point them to the current APIDot docs or the matching APIDot GitHub example repository.

Polling Guidance

  • Use polling for local testing, admin tools, small backend jobs, and workflows where the user stays in the current session.
  • Store task_id, selected model, request owner, request status, created time, and last checked time together.
  • Use moderate polling intervals and stop polling after a terminal task state.
  • Do not block a user-facing request lifecycle while waiting for long-running media generation.
  • Treat unknown or delayed states as pending until the current APIDot docs say otherwise.

Webhook Guidance

  • Use webhook delivery when generation may take longer than the current page, tab, or request lifecycle.
  • Pass callback_url only to a backend endpoint controlled by the application.
  • Verify task ownership before attaching callback results to a user-visible record.
  • Make webhook handlers idempotent because duplicate deliveries can happen.
  • Persist callback events before downstream processing when the workflow needs auditability.
  • Return a success response quickly after accepting a valid callback, then process heavier work in the backend.
  • Avoid logging API keys, private prompts, source media URLs, final result URLs, or callback URLs.

Retry And Failure Guidance

  • Retry transient network or timeout failures with backoff.
  • Do not retry invalid payloads unchanged.
  • Keep submit retries separate from status polling retries so duplicate tasks are not created by accident.
  • Reconcile webhook results and polling results by task_id.
  • Use current APIDot docs for terminal statuses, error classes, and model-specific failure behavior.

Model Routing

Start from the user's async workflow, then open the matching APIDot source:

User Goal Start Here
Read APIDot docs https://apidot.ai/docs
Learn APIDot quickstart flow https://apidot.ai/docs/quickstart
Implement webhooks https://apidot.ai/docs/webhooks
Browse APIDot models https://apidot.ai/models
Use general APIDot examples https://github.com/APIDotAI/apidot-examples
Build image workflows https://clawhub.ai/jiehao71727/apidot-image-generation-api
Build video workflows https://clawhub.ai/jiehao71727/apidot-video-generation-api
Use the broad APIDot skill https://clawhub.ai/jiehao71727/apidot-ai-api

Use this skill for async workflow design across APIDot model families. Use the image, video, or broad APIDot skills when the user needs model-category guidance.

Official Links

安全使用建议
Installers should understand that using this skill may lead them to build code that uses an APIDot API key and webhook endpoints. Keep keys server-side, avoid logging prompts or result URLs, and make live API calls only from a controlled backend environment.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is to guide APIDot async generation integrations, and the artifact content stays within that scope: task submission, task_id handling, polling, webhooks, retries, and links to docs.
Instruction Scope
Instructions are advisory and user-directed, with explicit cautions not to make live API calls unless requested and not to invent current API facts.
Install Mechanism
The package contains only a markdown SKILL.md file, with no executable scripts, setup automation, bundled clients, or install-time behavior.
Credentials
It declares an optional APIDOT_API_KEY and discusses webhooks and result URLs, but this is disclosed and proportionate to integrating APIDot APIs, with appropriate secret-handling guidance.
Persistence & Privilege
Persistence guidance is limited to application task state such as task_id, status, ownership, and results; the skill itself does not add background workers, local indexing, credential storage, or privilege escalation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install apidot-async-workflow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /apidot-async-workflow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of apidot-async-workflow: - Adds documentation-only skill for integrating APIDot async generation APIs (image, video, music, 3D). - Covers task submission, task_id handling, polling, webhook/callback delivery, and result management based on official APIDot docs. - Includes guidance on secure API key management, backend design, idempotent webhooks, and retry/failure handling. - Points to relevant APIDot documentation, model guides, and examples for various async workflow scenarios.
元数据
Slug apidot-async-workflow
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Apidot Async Workflow 是什么?

Use APIDot async workflow for AI generation APIs, including task submission, task_id handling, polling API, task status API, callback_url, webhook API, retry... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。

如何安装 Apidot Async Workflow?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install apidot-async-workflow」即可一键安装,无需额外配置。

Apidot Async Workflow 是免费的吗?

是的,Apidot Async Workflow 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Apidot Async Workflow 支持哪些平台?

Apidot Async Workflow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Apidot Async Workflow?

由 jiehao71727(@jiehao71727)开发并维护,当前版本 v1.0.0。

💬 留言讨论