intercom-hello-world
Create a minimal working Intercom example with contacts, conversations, and messages. Use when starting a new Intercom integration, testing your setup, or learning the core Intercom API data model. Trigger with phrases like "intercom hello world", "intercom example", "intercom quick start", "simple intercom code", "first intercom API call".
What this skill does
# Intercom Hello World
## Overview
Minimal working examples covering the Intercom core data model: contacts (users and leads), conversations, messages, and tags.
## Prerequisites
- Completed `intercom-install-auth` setup
- `intercom-client` package installed
- Valid access token in environment
## Instructions
### Step 1: Create a Contact
Contacts are the core entity. They have a `role` of either `user` (identified) or `lead` (anonymous).
```typescript
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,
// ...
// }
```
### Step 2: Search for Contacts
```typescript
// 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})`);
}
```
### Step 3: Send a Message
Messages are outbound communications from admins to contacts.
```typescript
// 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}`);
```
### Step 4: Create a Conversation
Conversations are created when a contact replies or an admin initiates.
```typescript
// 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}`);
```
### Step 5: Tag a Contact
```typescript
// 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}"`);
```
## Core Data Model
| 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` |
## Complete Working Script
```typescript
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 Handling
| 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 |
## Resources
- [Contacts API](https://developers.intercom.com/docs/references/rest-api/api.intercom.io/contacts)
- [Conversations API](https://developers.intercom.com/docs/references/rest-api/api.intercom.io/conversations)
- [Messages API](https://developers.intercom.com/docs/references/rest-api/api.intercom.io/messages)
- [intercom-node GitHub](https://github.com/intercom/intercom-node)
## Next Steps
Proceed to `intercom-local-dev-loop` for development workflow setup.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.