agentsclimarketplace

Intercom core workflow b

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/intercom-pack/skills/intercom-core-workflow-b

425 plugins, 2,810 skills, 200 agents for Claude Code. Open-source marketplace at tonsofskills.com with the ccpi CLI package manager.

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill intercom-core-workflow-b

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

'Manage Intercom conversations: create, reply, close, snooze, assign, and tag.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.7 KB, as published. Nobody here has run it

Intercom Conversations & Messaging

Overview

Manage the full conversation lifecycle: create, reply (as admin or contact), assign to teams, close, snooze, and tag. Conversations contain threaded "parts" including messages, notes, and assignments.

This SKILL.md gives you the high-level workflow and the essential skeleton. The complete step-by-step code for all seven operations lives in references/implementation.md; realistic end-to-end scenarios are in references/examples.md.

Prerequisites

  • Completed intercom-install-auth setup (provides the INTERCOM_ACCESS_TOKEN)
  • Admin ID (from client.admins.list())
  • Contact IDs for conversation participants

Authentication

All calls authenticate with a bearer access token supplied to the SDK client — see intercom-install-auth for how to obtain and store it. Read it from the environment, never hard-code it:

import { IntercomClient } from "intercom-client";

const client = new IntercomClient({
  token: process.env.INTERCOM_ACCESS_TOKEN!,
});

The raw run_assignment_rules endpoint (Step 3) uses the same token as an Authorization: Bearer header.

Instructions

The workflow is seven operations against client.conversations.*. Reach for the one you need — they are independent once you have a conversation ID.

  1. Createconversations.create({ from, body }) opens a conversation from a contact and returns its conversationId.
  2. Replyconversations.reply(...) adds a part. type: "admin" is customer-visible, type: "note" is internal-only, type: "user" is a contact reply.
  3. Assignconversations.assign(...) routes to an admin (type: "admin") or team (type: "team"); or POST run_assignment_rules for auto-routing.
  4. Close / snooze / reopenconversations.close(...), conversations.snooze({ snoozedUntil }) (Unix seconds), and conversations.open(...).
  5. Tagconversations.attachTag(...) / detachTag(...).
  6. Retrieveconversations.find(...) returns state, assignee, and the conversationParts thread.
  7. List / searchconversations.list() or conversations.search({ query, pagination, sort }) with AND/OR field filters.

Essential skeleton (create then reply); see references/implementation.md for every step in full:

const conversation = await client.conversations.create({
  from: { type: "user", id: "6657add46abd0167d9419c3a" }, // Contact ID
  body: "Hi, I'm having trouble with my billing. Can you help?",
});

await client.conversations.reply({
  conversationId: conversation.conversationId,
  body: "Hi there! I'd be happy to help. What's the issue?",
  type: "admin",
  adminId: "12345",
});

Output

Each operation returns the affected conversation (or acknowledges the mutation):

  • create → a conversation object exposing conversationId (use it for every follow-up call).
  • reply / assign / close / snooze / open → the updated conversation with its new state and appended part.
  • find → the full conversation: state ("open" | "closed" | "snoozed"), adminAssigneeId, and conversationParts (totalCount + the ordered thread of comment / note / assignment / close / open parts).
  • search / list → a paginated collection of matching conversations, ordered by your sort clause.

Conversation States

StateDescriptionTransitions
openActive, awaiting actionclose, snooze
closedResolvedopen
snoozedDeferred until timestampopen (auto or manual)

Conversation Part Types

Part TypeDescriptionWho Creates
commentVisible messageAdmin or contact
noteInternal-only noteAdmin
assignmentReassignment recordSystem or admin
closeConversation closedAdmin
openConversation reopenedAdmin or contact

Error Handling

ErrorHTTP CodeCauseSolution
not_found404Invalid conversation or admin IDVerify IDs exist
conversation_not_found404Conversation deletedHandle gracefully
admin_not_found404Admin ID invalidUse client.admins.list()
parameter_invalid422Missing body or typeInclude required fields
conversation_closed400Action on closed conversationReopen first

For common errors and debugging, see intercom-common-errors.

Examples

Three end-to-end scenarios are worked in full in references/examples.md:

  1. Handle a billing complaint end-to-end — create → reply → assign to team → close.
  2. Tag, snooze, and follow up — attach a tag, leave an internal note, snooze 24h, reopen.
  3. Audit an open queue — search open conversations for an admin, then inspect a thread's parts.

The billing flow, in brief:

const conversation = await client.conversations.create({
  from: { type: "user", id: "6657add46abd0167d9419c3a" },
  body: "Hi, I'm having trouble with my billing. Can you help?",
});
await client.conversations.assign({
  conversationId: conversation.conversationId,
  type: "team",
  adminId: "12345",
  assigneeId: "team-billing-123",
  body: "Routing to billing team",
});
await client.conversations.close({
  conversationId: conversation.conversationId,
  adminId: "12345",
  body: "Issue resolved! Let us know if you need anything else.",
});

Resources

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.