migrating-from-customer-io
Ce qu’il fait
Cette compétence guide un agent dans le transfert des messages automatisés de Customer.io vers PostHog. Elle s'adresse aux équipes qui changent d'outil d'e-mail et veulent retrouver leurs automatisations existantes dans PostHog.
Quand l’utiliser
- ✓Quand vous voulez transférer vos automatisations Customer.io vers PostHog.
- ✓Quand vous voulez quitter Customer.io en conservant vos flux de messages.
- ✓Quand vous voulez un aperçu de ce qui sera importé avant que quoi que ce soit ne soit enregistré.
Lien du skill
https://github.com/PostHog/posthog/blob/master/products/workflows/skills/migrating-from-customer-io/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Nous quittons Customer.io. Peux-tu transférer nos automatisations vers PostHog pour que je les relise en brouillons ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent lit chaque automatisation dans Customer.io et prévisualise d'abord l'importation. Il enregistre ensuite les automatisations dans PostHog comme brouillons et vous indique ce qui nécessite votre intervention avant toute activation.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
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
- 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 withswitch-projectbefore you read anything from Customer.io. - Find the environment. Ask which Customer.io workspace to migrate if there is more than one. Its id is the
environment_idin every path below. - List the automations.
GET /v1/environments/{environment_id}/campaignswith the Customer.io read tool (cio_read_apion the MCP,cio apion the CLI). It returns 20 per page throughpage(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. - Read each automation.
GET /v1/environments/{environment_id}/campaigns/{campaign_id}. Keep the response'scampaignobject and its top-levelactionsarray.campaign.actionsdoes not exist. - Read senders and segments.
GET /v1/environments/{environment_id}/identities?type=emailforsender_identities(id,email,name), and the segment list forsegments(id,name,typeonly). PostHog matches each email to the PostHog sender with the same address, and names the segments in its notes. - Preview without templates. Call
workflows-import-customeriowithsource: "customerio",dry_run: true,campaigns: [{campaign, actions}],sender_identitiesandsegments. Up to 50 automations per call. - Read templates only if needed. Go by each automation's notes, not by
content_fetchedalone:trueonly 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 atemplate_idwithGET /v1/environments/{environment_id}/templates/{template_id}, keep thetemplateobject, and preview again withcampaigns: [{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. - 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 assnippets({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, readGET /v1/environments/{environment_id}/layouts/{layout_id}and pass itsbodyaslayouts({layout_id: body}). - Report the preview. For each automation, give its status and its notes, grouped by level (see below). Ask before importing anything with status
failed; itsvalidation_errorssay why the draft would be rejected. - Import. Call again with
dry_run: falseand the same arguments. Share each draft's link (/workflows/{workflow_id}) and theneeds_inputnotes 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
Questions fréquentes
Mes profils clients sont-ils copiés ?
Non. Seuls les automatisations, modèles, identités d'expéditeur et noms de segments sont transférés, jamais les personnes ni leurs données d'événements.
Les workflows importés enverront-ils des messages tout de suite ?
Non. Ils arrivent en brouillons, et une personne doit relire et activer chacun d'eux.
Quel projet PostHog reçoit les brouillons ?
L'agent confirme d'abord avec vous le projet PostHog actif, pour que les brouillons aillent au bon endroit.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 41k
- Position au classement
- #6982
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
depot-ci
41kAide votre agent à configurer et exécuter des workflows Depot CI, alternative à GitHub Actions, en migrant les workflows existants et en lisant les journaux.
depot-container-builds
41kAide votre agent à construire des images Docker sur les constructeurs distants de Depot, y compris les images multiplateformes et la correction des échecs.
depot-github-runners
41kAide votre agent à faire tourner les jobs GitHub Actions sur les machines gérées par Depot, à choisir la taille des runners et leurs labels, et à résoudre les problèmes de configuration.
editing-agents-md
41kAide votre agent à décider si une règle doit figurer dans un fichier AGENTS.md ou CLAUDE.md, et à la rédiger pour qu'elle soit suivie sans alourdir le fichier.
Skills similaires
knowledge-automation
394kAide votre agent à configurer une tâche récurrente qui ajoute du nouveau contenu à votre coffre Knowledge selon un calendrier, puis vérifie qu'elle fonctionne.
knowledge-source-ingest
394kAide votre agent à tenir un coffre Knowledge à jour avec les nouveaux éléments de canaux de discussion, de flux ou de boîtes mail, sans rajouter ce qui existe déjà.
benchmark
280kAide votre agent à mesurer la vitesse et les performances du code. Utile pour s'assurer que tout est rapide et repérer les lenteurs.