Logo Integrations

Integrations

Cộng đồng
MartinOlivero
integrations

Nên dùng kỹ năng này khi sản phẩm giao tiếp với một nền tảng bạn không kiểm soát — nhận webhook, đồng bộ với API CRM, ERP, thương mại điện tử hoặc lịch, kết nối tài khoản Google hay Meta của người dùng qua OAuth, gửi tin nhắn qua WhatsApp hoặc API nhắn tin khác, hay gửi email giao dịch. Các cụm từ kích hoạt (tiếng Anh) gồm "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". Các cụm từ kích hoạt (tiếng Tây Ban Nha) gồm "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". Kỹ năng thiết kế tích hợp sao cho dữ liệu không bị lỗi hoặc âm thầm mất khi bên thứ ba phản hồi chậm, sai, trùng lặp hoặc ngừng hoạt động. Riêng với Stripe và webhook thanh toán, hãy dùng `payments`.

Add to TypingMind

Tổng quan

Nhà phát hànhMartinOlivero
Kho mãsaas-builder
Tên kỹ năngintegrations
Sao
4
Bản fork
2
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được MartinOlivero công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Integrations trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/MartinOlivero/saas-builder/tree/main/skills/integrations
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Integrations trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Integrations ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Integrations với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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).

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Integrations làm được gì?

Nên dùng kỹ năng này khi sản phẩm giao tiếp với một nền tảng bạn không kiểm soát — nhận webhook, đồng bộ với API CRM, ERP, thương mại điện tử hoặc lịch, kết nối tài khoản Google hay Meta của người dùng qua OAuth, gửi tin nhắn qua WhatsApp hoặc API nhắn tin khác, hay gửi email giao dịch. Các cụm từ kích hoạt (tiếng Anh) gồm "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". Các cụm từ kích hoạt (tiếng Tây Ban Nha) g...

Vì sao nên dùng Integrations trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Integrations là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Integrations trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/MartinOlivero/saas-builder/tree/main/skills/integrations. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Integrations?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Integrations với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Integrations với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Integrations có miễn phí không?

Có. Kỹ năng này được MartinOlivero phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇