| name | customerio-hello-world |
| description | Create a minimal working Customer.io example.
Use when learning Customer.io basics, testing SDK setup,
or creating your first identify + track integration.
Trigger: "customer.io hello world", "first customer.io message",
"test customer.io", "customer.io example", "customer.io quickstart".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(npx:*), Glob, Grep |
| version | 1.14.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","customer-io","quickstart","testing"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Customer.io Hello World
Overview
Create a minimal working Customer.io integration: identify a user (create/update their profile), track an event, and send a transactional email. This covers the three fundamental Customer.io operations.
Prerequisites
customerio-node installed (npm install customerio-node)
CUSTOMERIO_SITE_ID and CUSTOMERIO_TRACK_API_KEY configured
CUSTOMERIO_APP_API_KEY configured (for transactional email example)
Instructions
Step 1: Identify a User (Create/Update Profile)
import { TrackClient, RegionUS } from "customerio-node";
const cio = new TrackClient(
process.env.CUSTOMERIO_SITE_ID!,
process.env.CUSTOMERIO_TRACK_API_KEY!,
{ region: RegionUS }
);
await cio.identify("user-123", {
email: "hello@example.com",
first_name: "Jane",
last_name: "Doe",
plan: "pro",
created_at: Math.floor(Date.now() / 1000),
});
.();