Logo Ad Syncs

Ad Syncs

Tổ chức
clay-run
ad-syncs

Clay ad syncs — push an audience segment to ad platforms (LinkedIn, Meta, Google, Bing, Reddit, Vibe) as a custom audience. Use to create, edit, pause, or map the fields of an ad sync, or to check its status, match rate, or run history.

Tổng quan

Nhà phát hànhclay-run
Kho mãagent-plugins
Tên kỹ năngad-syncs
Sao
145
Bản fork
24
Tệp đi kèm
1
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 clay-run 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 Ad Syncs 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/clay-run/agent-plugins/tree/main/clay/skills/ad-syncs
  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/clay-run/agent-plugins.git /tmp/agent-plugins
mkdir -p .claude/skills
cp -r /tmp/agent-plugins/clay/skills/ad-syncs .claude/skills/ad-syncs
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 Ad Syncs 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 Ad Syncs 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 Ad Syncs 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.

Ad syncs

An ad sync pushes an audience segment to ad accounts on ad platforms, called its destinations. Each platform matches the records and builds an audience to advertise to.

Supported commands

  • clay ad-syncs list [--limit <n>] [--cursor <cursor>]
  • clay ad-syncs get <adSyncId>
  • clay ad-syncs get-by-source --source-id <segmentId> --entity-type <people|companies>
  • clay audiences get <segmentId>
  • clay ad-syncs create --name <name> --source-id <segmentId> --entity-type <people|companies> --schedule-type <ONE_TIME|RECURRING>
  • clay ad-syncs update <adSyncId> [--name <name>] [--schedule <ONE_TIME|RECURRING>] [--tier <PREMIUM|STANDARD>]
  • clay app-accounts list --filter type=<provider>-ad-audience
  • clay ad-syncs ad-accounts list <appAccountId> --provider <provider>
  • clay ad-syncs destinations create <adSyncId> --provider <provider> --app-account-id <appAccountId> --ad-account-id <accountId> [--ad-user-data-consent <status> --ad-personalization-consent <status>]
  • clay ad-syncs destinations update <adSyncId> --destination-id <destinationId> [--app-account-id <appAccountId>] [--ad-account-id <accountId>] [--ad-user-data-consent <status>] [--ad-personalization-consent <status>]
  • clay ad-syncs destinations delete <adSyncId> --destination-id <destinationId>
  • clay ad-syncs field-mapping update <adSyncId> --input '<json>'
  • clay ad-syncs pause <adSyncId>
  • clay ad-syncs runs list <adSyncId> [--limit <n>]

Run clay ad-syncs <subcommand> --help before a subcommand's first use. It has the exact output shape, value sets, and error codes. <provider> is LinkedIn, Meta, Google, Bing, Reddit, or Vibe, written in lowercase inside type=<provider>-ad-audience (e.g. type=linkedin-ad-audience). An <accountId> is an accountId from ad-accounts list, and a <destinationId> is a providerSyncConfigs[].id from get.

Limits

  • You can always create an ad sync, and edit it while it is a draft or paused.
  • You cannot delete an ad sync: the user deletes it in the Clay app. A segment can have only one ad sync, so create one only for a segment the user confirmed.
  • Pause a running sync only when the user asks. Before running pause, tell them what pausing does (see Statuses) and ask them to confirm, even when they asked for it. Never start or resume one: the user does that in the Clay app, from the sync's url.

Schedules

  • ONE_TIME: it exports once, when the user starts it.
  • RECURRING: it syncs continuously to its destinations, so they stay up to date with the people or companies the user wants to target.

Statuses

Tell the user the label in parentheses, not the raw value.

  • DRAFT (Draft): not started yet.
  • PROCESSING (Processing): an export is running, including enrichment when the sync has a tier.
  • ACTIVE (Active): a recurring sync whose latest export reached every destination. It exports again on its schedule.
  • DONE (Exported): a one-time sync that reached every destination.
  • WARNING (Warning): some destinations failed. A one-time sync reached only some of them, or a later export of a recurring sync failed on at least one, and the sync stays live. runs list shows which destinations failed.
  • FAILED (Failed): a one-time sync that failed on every destination, or a recurring sync whose first export failed on any destination.
  • BULK_ENRICHMENT_FAILED (Enrichment failed): the enrichment step failed.
  • PAUSED (Paused): the user paused it. Clay stops enriching new records in the segment, so it stops spending credits, and stops pushing new records to the ad platforms. The audiences already on the platforms stay as they are until the user resumes the sync in the Clay app.

Create

Confirm each choice with the user before running the command that makes it.

  1. Draft. Read the segment's entityType with clay audiences get <segmentId>, then run clay ad-syncs get-by-source --source-id <segmentId> --entity-type <entityType>. If it returns a sync, use that one. If it returns not_found, ask whether the sync should run once or on a recurring schedule, and create it:

    bash
    clay ad-syncs create --name "<name>" --source-id <segmentId> --entity-type <entityType> --schedule-type <ONE_TIME|RECURRING>
  2. Accounts. For each platform, run clay app-accounts list --filter type=<provider>-ad-audience. If it returns one connection, pick it. If it returns more than one, list them by name and ask the user which to use. Don't check any connection's ad accounts before the user picks one, even if you expect only one to work.

    You MUST check the picked connection before using it, every time, including when it is the only one: run clay ad-syncs ad-accounts list <appAccountId> --provider <provider>. Never pass an --app-account-id to any command until that check has succeeded for it in this conversation. If the check errors, don't use the connection: tell the user it couldn't load its ad accounts and ask them to pick another one.

    An ad account is usable when canManageAudiences is true, restrictions is empty, and it has not already been added to this ad sync: compare its accountId with the providerSyncConfigs[].providerAdAccount.id values from clay ad-syncs get <adSyncId>. If there are none, the user sets them up in the Clay app from the sync's url. Continue once they're done.

  3. Destinations. Ask which ad accounts to advertise to, then add each one:

    bash
    clay ad-syncs destinations create <adSyncId> --provider <provider> --app-account-id <appAccountId> --ad-account-id <accountId>

    Company syncs go to LinkedIn only. For Google, ask the user for both consent values and add --ad-user-data-consent <status> --ad-personalization-consent <status>. Send UNSPECIFIED if they don't track consent.

  4. Enrichment tier (people syncs only). Best match rates is clay ad-syncs update <adSyncId> --tier PREMIUM, Good match rates is clay ad-syncs update <adSyncId> --tier STANDARD, and none means skipping this step. A tier costs credits and can't be changed once set. To see what each tier costs, the user opens the sync's url in the Clay app.

  5. Field mapping. Read field-mapping.md and follow it.

Then give the user the sync's url so they can review it and start it in the Clay app.

Edit

Check adSync.status with clay ad-syncs get <adSyncId> first. DRAFT and PAUSED syncs can be edited. A running sync (PROCESSING, ACTIVE, or WARNING) has to be paused first. Tell the user it has to be paused and what pausing does, and ask them to confirm before running clay ad-syncs pause <adSyncId>. DONE, FAILED, and BULK_ENRICHMENT_FAILED syncs can't be edited.

  • Rename: clay ad-syncs update <adSyncId> --name "<name>"
  • Change the schedule: clay ad-syncs update <adSyncId> --schedule <ONE_TIME|RECURRING>
  • Set a tier, only if it has none: clay ad-syncs update <adSyncId> --tier <PREMIUM|STANDARD>
  • Add a destination: follow steps 2 and 3 of Create.
  • Change the ad account for a destination: clay ad-syncs destinations update <adSyncId> --destination-id <destinationId> --ad-account-id <accountId>, adding --app-account-id <appAccountId> if that ad account is under another connection. The synced audience will then exist in a different ad account, so confirm the change with the user first. A Google destination needs both consent flags again when its ad account changes.
  • Switch the connection a destination syncs through, keeping its ad account: clay ad-syncs destinations update <adSyncId> --destination-id <destinationId> --app-account-id <appAccountId>
  • Remove a destination, on drafts only: clay ad-syncs destinations delete <adSyncId> --destination-id <destinationId>
  • Change the field mapping: follow field-mapping.md.

A paused sync stays paused. The edit takes effect once the user resumes it in the Clay app.

Read

  1. Find the sync with clay ad-syncs list, paging with --cursor <cursor>, or with clay ad-syncs get-by-source --source-id <segmentId> --entity-type <people|companies> when the user names the segment.
  2. Read its setup with clay ad-syncs get <adSyncId>.
  3. Read its results with clay ad-syncs runs list <adSyncId> --limit 100. The default returns only the 20 newest runs across all destinations, so a destination's latest run can be missing without the higher limit. If a destination has no run in the result, say so rather than guessing. Report each destination's latest run in plain words (status, match rate, and audience size), and link the sync's url.

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 Ad Syncs làm được gì?

Clay ad syncs — push an audience segment to ad platforms (LinkedIn, Meta, Google, Bing, Reddit, Vibe) as a custom audience. Use to create, edit, pause, or map the fields of an ad sync, or to check its status, match rate, or run history.

Vì sao nên dùng Ad Syncs 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. Ad Syncs 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 Ad Syncs trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/clay-run/agent-plugins/tree/main/clay/skills/ad-syncs. 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 Ad Syncs?

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 Ad Syncs 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 Ad Syncs 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 Ad Syncs có miễn phí không?

Kỹ năng này được clay-run phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. 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 👇