Customer.io
Arcade.dev LLM tools for Customer.io
0.1.0Customer.io is a customer messaging platform; this Arcade toolkit lets LLM agents read and write Customer.io workspace data — profiles, events, campaigns, segments, and transactional messages — via the Customer.io App API and Tracking API.
Capabilities
- Profile management: Create, update, look up, and delete person records; resolve people by email or ID, handling multi-match scenarios.
- Event & activity tracking: Record custom events on a person's timeline and inspect their activity history, filtered by type or name.
- Messaging history & delivery: Retrieve per-person message and delivery history; read aggregate delivery metrics for campaigns and newsletters.
- Segment & audience tools: List all workspace segments, enumerate members of a segment, look up which segments a person belongs to, and search for people by segment membership and/or attribute.
- Campaign & content discovery: List campaigns, newsletters, broadcasts, and transactional message templates; read campaign/newsletter metrics; trigger API broadcasts and send transactional emails.
Secrets
All credentials must be configured as Arcade secrets. This toolkit requires four secrets:
-
CUSTOMERIO_APP_API_KEY— A Customer.io App API key, used for read and write operations against the App API (profiles, segments, campaigns, metrics, etc.). Generate one in your Customer.io workspace under Settings → API Credentials → App API Keys. Keys can be scoped; ensure the key has permissions matching the operations you intend to perform (read and/or write access to people, campaigns, segments, and messages). -
CUSTOMERIO_TRACKING_API_KEY— A Customer.io Tracking API key (also called the API Key in the Tracking section), used for event tracking and person identification via the Track API. Retrieve it from Settings → API Credentials — it is paired with the Site ID. -
CUSTOMERIO_SITE_ID— The Site ID associated with your Customer.io workspace, required for Tracking API authentication alongside the Tracking API key. Found in Settings → API Credentials next to the Tracking API key. -
CUSTOMERIO_REGION— Identifies which Customer.io data center hosts your workspace (usoreu). Determines the API base URL used for all requests. Find your region in Settings → Account Settings or by checking which URL you use to log in (fly.customer.io= EU,app.customer.io= US).
See the Arcade docs for how to configure secrets: https://docs.arcade.dev/en/guides/create-tools/tool-basics/create-tool-secrets — or manage them directly at https://api.arcade.dev/dashboard/auth/secrets.
Available tools(18)
| Tool name | Description | Secrets | |
|---|---|---|---|
Delete a person record to honor a data-removal request.
Deleting a person who does not exist is accepted as a no-op. | 2 | ||
Read a campaign's aggregate delivery metrics over a period. | 2 | ||
Read a newsletter's aggregate delivery metrics over a period. | 2 | ||
Look up a person's profile by email or id.
Resolves the person by whichever identifier is supplied; an email shared by
several people reports every match in the result. | 2 | ||
Create or update a person and their attributes.
Existing attributes not named in this call are preserved; named attributes
are added or overwritten. | 2 | ||
List the workspace's broadcasts to discover ids that can be triggered. | 2 | ||
List the campaigns in the workspace. | 2 | ||
List the newsletters in the workspace. | 2 | ||
List a person's recent activities, most recent first, resolved by email
or id. Optionally filter by activity type and/or name; filtering by name
requires an activity type. When an email matches several people, the first
match's activities are returned. | 2 | ||
List a person's message and delivery history, most recent first,
resolved by email or id. When an email matches several people, the first
match's messages are returned. | 2 | ||
List the segments a person belongs to, resolved by email or id. When an
email matches several people, the first match's segments are returned. | 2 | ||
List the ids of the people in a segment and the segment's total size. | 2 | ||
List the segments defined in the workspace. | 2 | ||
List the transactional message templates in the workspace. | 2 | ||
Record a named custom event on a person's timeline to drive lifecycle
journeys. | 2 | ||
Find people by segment membership and/or an attribute, to build an
audience without a known id. Supply at least one of a segment or an
attribute name; both combine with AND. | 2 | ||
Send a transactional email to one recipient by its template id. | 2 | ||
Trigger an API broadcast to a segment or an explicit recipient list. | 2 |