Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates, searches, updates, and merges Intercom contacts (users and leads) through the Intercom REST API using the intercom-client SDK.
64% 91%+27 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 14 of 22 without it.
When creating an identified user with custom plan details via client.contacts.create in TypeScript using intercom-client, should the custom attributes parameter be key named custom_attributes or customAttributes?
Specifies customAttributes as the parameter name in SDK create options
3 of 3 safety checks passed
Complete, step-by-step code for every contact operation. SKILL.md carries the lean skeleton and the first example; this file is the full depth you drill into for each step.
import { IntercomClient } from "intercom-client";
const client = new IntercomClient({
token: process.env.INTERCOM_ACCESS_TOKEN!,
});
// Create an identified user (has external_id)
const user = await client.contacts.create({
role: "user",
externalId: "customer-9001",
email: "[email protected]",
name: "Alice Johnson",
phone: "+1-555-0100",
customAttributes: {
plan: "enterprise",
company_size: 500,
signed_up_at: Math.floor(Date.now() / 1000),
},
});
// Response: { type: "contact", id: "6657add46abd...", role: "user", ... }
// Create an anonymous lead (no external_id required)
const lead = await client.contacts.create({
role: "lead",
email: "[email protected]",
name: "Website Visitor",
customAttributes: {
landing_page: "/pricing",
utm_source: "google",
},
});
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.