Integrations 标志

Integrations

社区
MartinOlivero
integrations

当产品需要与您无法控制的平台交互时,应使用此技能,例如接收 webhook、与 CRM、ERP、电商或日历 API 同步、通过 OAuth 连接用户的 Google 或 Meta 账号、通过 WhatsApp 或其他消息 API 发送消息,或发送事务性邮件。触发短语(英文)包括“integrate with”“connect to the X API”“receive a webhook”“the webhook isn't firing”“sync with”“import from their API”“OAuth with Google”“refresh token”“send transactional email”“their API returns”“pagination”。触发短语(西班牙语)包括“integrar con”“conectar con la API de”“recibir un webhook”“el webhook no llega”“sincronizar con”“importar desde su API”“conectar la cuenta de Google”“mandar mails transaccionales”。此技能会设计稳健的集成方案,避免第三方响应延迟、返回错误、重复发送或服务中断时导致数据损坏或问题被悄然忽略。对于 Stripe 和支付 webhook,请使用 `payments`。

Add to TypingMind

概览

发布者MartinOlivero
代码仓库saas-builder
技能名称integrations
星标数
4
复刻数
2
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 MartinOlivero 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Integrations AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/MartinOlivero/saas-builder/tree/main/skills/integrations
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MartinOlivero/saas-builder.git /tmp/saas-builder
mkdir -p .claude/skills
cp -r /tmp/saas-builder/skills/integrations .claude/skills/integrations
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Integrations,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Integrations。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Integrations 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Integrations

Your own code does what you wrote. A third party does what it does today, which may differ from its documentation, from yesterday, and from its sandbox. This skill designs for that.

Analogy: an integration is a business partner in another time zone who answers by post. Letters arrive twice, out of order, or not at all, and sometimes the letter says "done" when nothing was done. You don't run the business on the letters — you keep your own books and reconcile.

Discovery (max 3 questions, only if unknown)

  1. Direction — do you read from them, write to them, or both?
  2. Do they push events (webhooks), or do you pull?
  3. Is the connection per-product (one key of yours) or per-customer (each user connects their own account)?

Step 1 — Inbound: treat the webhook as a doorbell

Take only the id from the webhook, then fetch the object from their API with your own credentials. Never write the webhook body into your tables.

This one decision removes a family of problems: forged payloads, bodies re-serialized by a gateway (which breaks signature checks), events arriving out of order, and fields that are empty in the event but present in the API.

Around it:

  • Verify the signature — and reject when it is missing. A handler that skips verification if no signature header arrives has no verification.
  • Deduplicate by their event or message id, stored with a unique constraint. Deliveries repeat.
  • Batched webhooks: one bad item must not stop the rest. try/catch per item, persist before you enqueue, and never return out of the loop when one entry belongs to an unknown account — the other tenants in the same request go silent.
  • Expect your own writes to come back. Change something through their API and the webhook reports it to you; without a guard it overwrites the state you just set.
  • Never depend on the webhook alone. Build the pull path too — a "sync now" action that rings the same doorbell by hand, or a reconciliation job. Webhooks get registered and then never fire, and you find out from a customer.

Step 2 — Outbound: "they said no" is not "I don't know"

Classify every response from a write:

What came backMeaningTell the user
2xxDoneDone
4xxThey refused. Nothing changedTheir reason
5xx, timeout, connection droppedUnknown. It may have gone through"We couldn't confirm — check before trying again"

Showing "nothing was changed" on a gateway error invites a retry, and the end customer receives the notification twice.

  • The user's main action never waits on the third party. Save first, sync after; a failed sync is a visible state on the record, not a failed save.
  • Send dates as ISO-8601 with an explicit offset. A timestamp without a zone moved a real appointment by three hours — and notified the customer.
  • Find out in the sandbox what each omitted field does. Leaving a field out of an update is not always "keep it": one provider re-ran its own assignment logic and gave the appointment to a different person.
  • Trust the response you receive, not the one documented. Field names differ.

Step 3 — Reading: don't believe the pagination

  • Stop on an empty page, not on has_more: false. One API reported no more pages with 33 customers still pending.
  • Reconcile against an independent total — a report, an invoice sum, a count from their UI. Coming up short is otherwise invisible.
  • Compare ids, not counts. A date-range filter that returns the right number of the wrong records looks fine.
  • Batch id lists. A hundred ids in a query string produced a gateway error; so did sixty parallel requests. Chunk both.
  • Paginate your own reads too: auto-generated APIs cap rows per request (commonly 1000) and return a truncated list without an error.

Step 4 — Credentials that expire

  • Long-lived tokens still expire. Schedule the renewal and alert when it fails; the alternative is discovering it when the integration stops.
  • Single-use refresh tokens need a lock. Two processes refreshing at once invalidate each other; take a database lock so only one renews.
  • Adding a scope does not update existing installations. They fail with 401 until each customer reconnects — plan the migration.
  • Per-user OAuth (Google and similar):
    • Validate the scopes actually granted in the token response. Consent screens let the user untick one; the integration then shows "connected" and fails later.
    • To request an extra scope from a signed-in user, link the identity rather than starting a new sign-in — a new sign-in with a different account switches users and their data "disappears".
    • "Disconnect" must revoke at the provider, not just delete your row — especially if your privacy policy says so.
    • The provider validates the full redirect URL, not the origin.
    • Sign-up metadata (a chosen role, a plan) does not survive the OAuth round trip; carry it in the return URL.

Step 5 — Test what you think you are testing

  • A 403 alone proves nothing. Test both ends: rejected without the secret and accepted with it. A misspelled header name returns the same 403 as a working guard.
  • A 200 is not success until you have read the body. A wrong path can return an HTML page with status 200.
  • Simulated events answer simulated questions. "Does the real event carry the email?" is answered only by a real event.
  • Never test against contacts that might be real people. Sandbox data with a plausible email address is someone's inbox. Use addresses you own, and put guards in test tooling so a missing argument cannot write to a live record.
  • Check the credential's prefix before storing it. A live key saved under a variable named "test" charges real money.
  • Write down what you could not measure, as "no evidence", instead of assuming.

Step 6 — When a hop is added, the failure mode is added too

Moving logic to another service inserts a network hop. Each hop needs: a retry, an emergency branch that still records that the user wrote, and an alert that is separate from the run status — because a handled failure finishes green.

Step 7 — Transactional email

  • Best-effort, but logged. A failed email must not break the action that triggered it; a rejected one must be distinguishable from a sent one. Check the SDK's returned error.
  • One-click unsubscribe is a POST. Link scanners follow every GET in a message; a GET that unsubscribes will be triggered by security software. Link to a page with a button and set the List-Unsubscribe and List-Unsubscribe-Post headers.
  • Verify your sending domain before you need to email anyone but yourself.
  • Escape user-supplied values in HTML bodies, and restrict what a visitor's name can contain when it ends up in an invitation sent to a third party.
  • Provider templates default to English — translate them before launch.
  • Respect the provider's rate limit in loops; add a delay.

Output

Deliver: the direction and trust model, the webhook handler (signature, dedupe, doorbell fetch, per-item isolation), the reconciliation path, the response classification for writes with the user-facing message for each, the credential-renewal plan, and the both-ends test. List anything the sandbox could not confirm.

Field notes

references/field-notes.md — what each rule cost before it was a rule.

Reference

The provider's own API reference and changelog (read the current version, then verify against real responses), RFC 8058 (one-click unsubscribe), Stripe's webhook best practices (general guidance that applies to any provider). Pairs with payments, api-design (idempotency), secure-coding (secrets, signatures) and ai-features (chat platforms).

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Integrations AI 技能有什么作用?

当产品需要与您无法控制的平台交互时,应使用此技能,例如接收 webhook、与 CRM、ERP、电商或日历 API 同步、通过 OAuth 连接用户的 Google 或 Meta 账号、通过 WhatsApp 或其他消息 API 发送消息,或发送事务性邮件。触发短语(英文)包括“integrate with”“connect to the X API”“receive a webhook”“the webhook isn't firing”“sync with”“import from their API”“OAuth with Google”“refresh token”“send transactional email”“their API returns”“pagination”。触发短语(西班牙语)包括“integrar con”“conectar con la API de”“recibir un webhook”“el webhook no llega”“sincronizar con”“importar desde su API”“conectar la cuenta de Google”“mandar mails transaccionales”。此技能会设计稳健的集成方案,避免第三方响应延迟、返回错误、重复发送或服务中断时导致数据损坏或问题被悄然忽略。对于...

为什么在 TypingMind 中使用 Integrations?

因为您只需安装一次,就能搭配任何模型使用。Integrations 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Integrations?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/MartinOlivero/saas-builder/tree/main/skills/integrations。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Integrations?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Integrations 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Integrations 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Integrations AI 技能免费吗?

是的。MartinOlivero 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇