/intercom-pack:intercom-hello-worldfrom intercom-pack
Creates a minimal working Intercom example covering contacts, conversations, and messages. Useful for starting new Intercom integrations or learning the API data model.
Ships in intercom-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Minimal working examples covering the Intercom core data model: contacts (users and leads), conversations, messages, and tags.
intercom-install-auth setupintercom-client package installedContacts are the core entity. They have a role of either user (identified) or lead (anonymous).
import { IntercomClient } from "intercom-client";
const client = new IntercomClient({
token: process.env.INTERCOM_ACCESS_TOKEN!,
});
// Create a user contact
const user = await client.contacts.create({
role: "user",
externalId: "user-12345",
email: "[email protected]",
name: "Jane Smith",
customAttributes: {
plan: "pro",
signup_date: Math.floor(Date.now() / 1000),
},
});
console.log(`Created contact: ${user.id} (${user.role})`);
// Response shape:
// {
// type: "contact",
// id: "6657add46abd0167d9419c3a",
// workspace_id: "abc123",
// external_id: "user-12345",
// role: "user",
// email: "[email protected]",
// name: "Jane Smith",
// custom_attributes: { plan: "pro", signup_date: 1711100000 },
// created_at: 1711100000,
// updated_at: 1711100000,
// ...
// }
// Search contacts by email
const results = await client.contacts.search({
query: {
field: "email",
operator: "=",
value: "[email protected]",
},
});
console.log(`Found ${results.totalCount} contacts`);
for (const contact of results.data) {
console.log(` ${contact.name} - ${contact.email} (${contact.role})`);
}
Messages are outbound communications from admins to contacts.
// Send an in-app message
const message = await client.messages.create({
messageType: "inapp",
body: "Welcome to our platform! Need help getting started?",
from: {
type: "admin",
id: "12345", // Admin ID from client.admins.list()
},
to: {
type: "user",
id: user.id,
},
});
console.log(`Sent message: ${message.id}`);
Conversations are created when a contact replies or an admin initiates.
// Create a conversation (as a contact)
const conversation = await client.conversations.create({
from: {
type: "user",
id: user.id,
},
body: "Hi, I have a question about billing.",
});
console.log(`Conversation created: ${conversation.conversationId}`);
// Create a tag
const tag = await client.tags.create({ name: "vip-customer" });
// Tag a contact
await client.contacts.tag({
contactId: user.id,
id: tag.id,
});
console.log(`Tagged contact ${user.id} with "${tag.name}"`);
| Entity | Description | Key Fields |
|---|---|---|
| Contact | Users and leads | id, role, email, external_id, custom_attributes |
| Conversation | Threaded exchanges | id, state, contacts, conversation_parts |
| Message | Outbound from admin | id, message_type, body, from, to |
| Tag | Labels for entities | id, name, applied_to |
| Company | Organization grouping | id, company_id, name, plan |
| Admin | Workspace team member | id, name, email, type |
import { IntercomClient } from "intercom-client";
const client = new IntercomClient({
token: process.env.INTERCOM_ACCESS_TOKEN!,
});
async function main() {
// 1. Verify connection
const me = await client.admins.list();
const admin = me.admins[0];
console.log(`Authenticated as: ${admin.name}`);
// 2. Create or find a contact
const contact = await client.contacts.create({
role: "user",
externalId: `hello-world-${Date.now()}`,
email: `test-${Date.now()}@example.com`,
name: "Hello World User",
});
console.log(`Contact: ${contact.id}`);
// 3. List all contacts (paginated)
const contacts = await client.contacts.list();
console.log(`Total contacts in workspace: ${contacts.totalCount}`);
// 4. List conversations
const conversations = await client.conversations.list();
console.log(`Total conversations: ${conversations.totalCount}`);
}
main().catch(console.error);
| Error | Cause | Solution |
|---|---|---|
not_found (404) | Contact/conversation ID invalid | Verify the ID exists |
parameter_invalid | Missing required field | Check required params in docs |
conflict (409) | Duplicate external_id | Use unique identifiers |
unauthorized (401) | Invalid token | Regenerate access token |
Proceed to intercom-local-dev-loop for development workflow setup.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
intercom, hello-world, contacts, conversations, messages, api-example
24 skills in this plugin
/intercom-ci-integrationConfigure CI/CD pipelines for Intercom integrations with GitHub Actions.
Use when setting up automated testing, configuring CI with Intercom secrets,
or integrating Intercom API tests into your build process.
Trigger with phrases like "intercom CI", "intercom GitHub Actions",
"intercom automated tests", "CI intercom", "intercom pipeline".
/intercom-common-errorsDiagnose and fix Intercom API errors by HTTP status code and error type.
Use when encountering Intercom errors, debugging failed API requests,
or troubleshooting integration issues.
Trigger with phrases like "intercom error", "fix intercom",
"intercom not working", "debug intercom", "intercom 401", "intercom 429".
/intercom-npx claudepluginhub flight505/skill-forge --plugin intercom-packOther plugins' skills for the same job