> For the complete documentation index, see [llms.txt](https://socialcli.gitbook.io/socialcli-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://socialcli.gitbook.io/socialcli-docs/chat-sdk.md).

# Chat SDK

## Chat SDK (Coming Soon) <a href="#chat-sdk-coming-soon" id="chat-sdk-coming-soon"></a>

Build chatbots that reply across 7 messaging platforms with one codebase.

#### Install <a href="#install" id="install"></a>

```bash
npm install @social-cli/chat-sdk
```

#### Quick Start <a href="#quick-start" id="quick-start"></a>

```typescript
import { Chat } from "chat";
import { createSocialCLIAdapter } from "@social-cli/chat-sdk";

const bot = new Chat({
  adapters: { social: createSocialCLIAdapter() },
});

bot.onNewMessage(/.*/, async (thread, msg) => {
  const { platform, sender } = msg.raw;
  await thread.post(`Hey @${sender.username}!`);
});
```

#### Supported Platforms <a href="#supported-platforms" id="supported-platforms"></a>

Instagram, Facebook, Telegram, WhatsApp, Twitter/X, Bluesky, Reddit

#### Use Cases <a href="#use-cases" id="use-cases"></a>

| Use Case              | Description                                                     |
| --------------------- | --------------------------------------------------------------- |
| Auto-Reply DMs        | Instant replies in your voice, 24/7, across all platforms       |
| Monetize Audience     | Gate content behind USDC payments; bot collects and unlocks     |
| Creator Campaigns     | Qualify brand leads, share media kits, book deals automatically |
| Earn Creating Content | Get paid USDC for content that drives engagement                |
| Investor Program      | Early access, revenue share, priority support                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://socialcli.gitbook.io/socialcli-docs/chat-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
