Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/intercom-reference-architecture

@0d57af8
Run it yourself

Implement Intercom reference architecture with layered project structure. Use when designing new Intercom integrations, reviewing project structure, or establishing architecture standards for Intercom applications. Trigger with phrases like "intercom architecture", "intercom project structure", "how to organize intercom", "intercom layout", "intercom design patterns".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/intercom-reference-architecture

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈504 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Intercom Reference Architecture — Usage Examples

These examples wire together the services defined in implementation.md. They invoke only methods that already exist in that walkthrough — no new API surface — so you can copy them once the client and service layers are in place.

Sync a CRM user into Intercom

Uses ContactsService.syncFromCRM (search-before-create, so it is idempotent).

import { ContactsService } from "./services/contacts.service";

const contacts = new ContactsService();

const contact = await contacts.syncFromCRM({
  id: "crm_8842",
  email: "ada@example.com",
  name: "Ada Lovelace",
  plan: "enterprise",
  company: "Analytical Engines Ltd",
});

console.log(`Synced contact ${contact.id}`);

Reply to and close a conversation

Uses ConversationsService.replyAsAdmin then closeWithMessage.

import { ConversationsService } from "./services/conversations.service";

const conversations = new ConversationsService();

await conversations.replyAsAdmin(conversationId, adminId, "Thanks for reaching out — fixed now.");
await conversations.closeWithMessage(conversationId, adminId, "Resolved. Reopen anytime.");

Page through every matching contact

searchAll is an async generator, so large result sets stream without holding every page in memory.

const contacts = new ContactsService();

for await (const contact of contacts.searchAll({
  field: "custom_attributes.plan",
  operator: "=",
  value: "enterprise",
})) {
  console.log(contact.email);
}

Publish a Help Center article

Uses ArticlesService.createArticle. It defaults to draft; pass state: "published" to go live.

import { ArticlesService } from "./services/articles.service";

const articles = new ArticlesService();

await articles.createArticle({
  title: "Resetting your password",
  body: "<p>Go to Settings → Security → Reset password.</p>",
  authorId: adminId,
  state: "published",
});

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a standard reference architecture for building Intercom integrations. It follows security best practices, such as using environment variables for sensitive API tokens and verifying webhook signatures.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "support",
  "messaging",
  "intercom"
]
All 2 allowed tools
ReadGrep
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/intercom-reference-architecture