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
End-to-end flows composed from the operations documented in implementation.md. Each example chains the same client calls covered step-by-step there.
An anonymous visitor lands on /pricing, is captured as a lead, later signs up,
and is merged into an identified user so their pre-signup history carries over.
import { IntercomClient } from "intercom-client";
const client = new IntercomClient({ token: process.env.INTERCOM_ACCESS_TOKEN! });
// 1. Capture the anonymous visitor as a lead
const lead = await client.contacts.create({
role: "lead",
email: "[email protected]",
name: "Website Visitor",
customAttributes: { landing_page: "/pricing", utm_source: "google" },
});
// 2. They sign up — create the identified user
const user = await client.contacts.create({
role: "user",
externalId: "customer-9001",
email: "[email protected]",
name: "Alice Johnson",
customAttributes: { plan: "enterprise", signed_up_at: Math.floor(Date.now() / 1000) },
});
// 3. Merge the lead in — conversations, events, and tags transfer to the user
const merged = await client.contacts.merge({ from: lead.id, into: user.id });
console.log(`Merged lead into user: ${merged.id}`);
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.