Skip to content
Bakhtarian edited this page May 14, 2026 · 1 revision

AI Chat

An AI chat is a conversational AI assistant configured within a Whop company — for example, a support or community bot. The SDK lets you create, list, read, update, and delete these AI chat configurations.

SDK access

$client->aiChats // Matchable\Whop\Resource\AiChatResource

Endpoints

create(array $data): array

HTTP POST ai-chats
Does Creates a new AI chat.
Parameters $data — AI chat attributes (e.g. name, model, instructions).
Returns array

list(array $query = []): array

HTTP GET ai-chats
Does Lists AI chats.
Parameters $query — optional filters / pagination.
Returns array

get(string $id): array

HTTP GET ai-chats/{id}
Does Retrieves a single AI chat by ID.
Parameters $id — the AI chat ID.
Returns array

update(string $id, array $data): array

HTTP PATCH ai-chats/{id}
Does Updates an AI chat.
Parameters $id — the AI chat ID; $data — fields to change.
Returns array

delete(string $id): array

HTTP DELETE ai-chats/{id}
Does Deletes an AI chat.
Parameters $id — the AI chat ID.
Returns array

Example

$chat = $client->aiChats->create([
    'name'         => 'Support bot',
    'instructions' => 'Answer billing questions politely.',
]);

Reference

Official Whop documentation: https://docs.whop.com

Clone this wiki locally