Chuyển đến nội dung
Skillpedia
Tự động hóa41k · #6982

migrating-from-customer-io

Skill này làm gì

Skill này hướng dẫn agent chuyển các tin nhắn tự động từ Customer.io sang PostHog. Skill dành cho các nhóm chuyển công cụ email và muốn các automation hiện có của họ có sẵn trong PostHog.

Khi nào nên dùng

  • ✓Khi bạn muốn chuyển các automation Customer.io sang PostHog.
  • ✓Khi bạn muốn rời khỏi Customer.io và giữ các luồng tin nhắn của mình.
  • ✓Khi bạn muốn xem trước những gì sẽ được nhập trước khi có gì được lưu.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/products/workflows/skills/migrating-from-customer-io/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/workflows/skills/migrating-from-customer-io/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chúng tôi đang rời Customer.io. Bạn có thể chuyển các automation của chúng tôi sang PostHog để tôi xem lại dưới dạng nháp không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc từng automation từ Customer.io và xem trước việc nhập trước. Sau đó nó lưu các automation trong PostHog dưới dạng nháp và hướng dẫn bạn những gì cần bạn nhập liệu trước khi bất cứ thứ gì được bật.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Migrating from Customer.io

PostHog imports Customer.io automations as draft workflows. Drafts never send. A person reviews each one, fixes what the import could not carry over, and enables it.

You move the data between two MCP servers. Read from Customer.io's MCP (or the cio CLI), and pass what it returns unchanged to PostHog's workflows-import-customerio. PostHog does the translation, so do not rebuild workflows yourself with workflows-create.

Never move people

Pass automations, templates, sender identities and segment names only. Never fetch or pass customer profiles, segment members, deliveries or event data. The people are usually in PostHog already, and copying them is a privacy risk the user did not ask for.

Keep message content out of your context

Email templates are large, often tens of kilobytes of HTML each. When the PostHog project stored a Customer.io App API key (teams that ran the opt-out import have one), PostHog reads the message content from Customer.io itself. So pass the automation graph first, and read templates only if PostHog asks for them.

Steps

  1. Confirm the PostHog project. The drafts go into the PostHog MCP's active project. Read it with project-get, tell the user its name and id, and ask whether the drafts should go there. If not, switch with switch-project before you read anything from Customer.io.
  2. Find the environment. Ask which Customer.io workspace to migrate if there is more than one. Its id is the environment_id in every path below.
  3. List the automations. GET /v1/environments/{environment_id}/campaigns with the Customer.io read tool (cio_read_api on the MCP, cio api on the CLI). It returns 20 per page through page (0-based): read every page until one returns fewer than 20. Show the user the list with each automation's state, and ask which to move. Running automations are the usual answer; skip archived ones unless asked.
  4. Read each automation. GET /v1/environments/{environment_id}/campaigns/{campaign_id}. Keep the response's campaign object and its top-level actions array. campaign.actions does not exist.
  5. Read senders and segments. GET /v1/environments/{environment_id}/identities?type=email for sender_identities (id, email, name), and the segment list for segments (id, name, type only). PostHog matches each email to the PostHog sender with the same address, and names the segments in its notes.
  6. Preview without templates. Call workflows-import-customerio with source: "customerio", dry_run: true, campaigns: [{campaign, actions}], sender_identities and segments. Up to 50 automations per call.
  7. Read templates only if needed. Go by each automation's notes, not by content_fetched alone: true only means PostHog read some content, and one automation can still miss its messages. For every automation whose notes say message content was not part of the import, or that PostHog could not read its messages, read the template of every action that has a template_id with GET /v1/environments/{environment_id}/templates/{template_id}, keep the template object, and preview again with campaigns: [{campaign, actions, templates}]. Read templates one at a time: listing every template in the workspace times out on large ones. Tell the user that Import from Customer.io on the Workflows Opt-outs tab stores their App API key, which skips this step next time.
  8. Collect snippets and layouts. If a note names a Customer.io snippet, or a template body you read contains {{ snippets.name }}, read the workspace snippets and pass them as snippets ({name: content}). When PostHog read the content itself, it read the snippets too, and a note names any it could not find. If a note names a layout, read GET /v1/environments/{environment_id}/layouts/{layout_id} and pass its body as layouts ({layout_id: body}).
  9. Report the preview. For each automation, give its status and its notes, grouped by level (see below). Ask before importing anything with status failed; its validation_errors say why the draft would be rejected.
  10. Import. Call again with dry_run: false and the same arguments. Share each draft's link (/workflows/{workflow_id}) and the needs_input notes again, since the team must handle those before enabling.

When you are unsure of an endpoint's parameters, ask for that one endpoint's schema (cio_schema with resource.method). A whole res

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

Hồ sơ khách hàng của tôi có được sao chép không?

Không. Chỉ automation, mẫu, danh tính người gửi và tên phân khúc được chuyển, không bao giờ là người dùng hay dữ liệu sự kiện của họ.

Các workflow được nhập có gửi tin nhắn ngay không?

Không. Chúng đến dưới dạng nháp, và một người phải xem xét và bật từng workflow.

Dự án PostHog nào nhận các nháp?

Agent trước hết xác nhận với bạn dự án PostHog đang hoạt động, để các nháp được gửi đến đúng nơi.

Chi tiết

Mô tả gốc của tác giả

Move Customer.io automations into PostHog as draft workflows. Read each automation with the Customer.io MCP or CLI, preview the import with workflows-import-customerio (dry_run), then import and walk the user through what needs their input. Use when asked to migrate, move, switch, copy or import from Customer.io (customer.io, CIO) to PostHog workflows, including "migrate everything to PostHog".

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6982
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự