---
canonical_url: "https://docs.composio.dev/toolkits/wonderchat"
markdown_url: "https://docs.composio.dev/toolkits/wonderchat.md"
product: "platform"
version: null
last_updated: null
---

# Wonderchat

Instantly build AI Chatbots with your knowledge base. Create custom chatbots powered by your content and data.

- **Category:** ai chatbots
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 10
- **Triggers:** 0
- **Slug:** `WONDERCHAT`
- **Version:** 00000000_00

## Tools

### Add Pages

**Slug:** `WONDERCHAT_ADD_PAGES`

Add URLs to a chatbot knowledge base and start crawling them, including private pages when a session cookie is supplied.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | Page URLs to add or delete |
| `chatbotId` | string | Yes | Chatbot ID to modify |
| `sessionCookie` | string | No | JSON-encoded array of cookie objects for crawling pages behind login. A plain cookie string is invalid. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Tags to Chatlog

**Slug:** `WONDERCHAT_ADD_TAGS_TO_CHATLOG`

Add one or more tags to a chatlog for categorization and filtering.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | Yes | Tag names to add or remove |
| `chatlogId` | string | Yes | Chatlog ID to modify |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Ask Chatbot

**Slug:** `WONDERCHAT_ASK_CHATBOT`

Ask a chatbot a question without API-key authentication. The call is non-streaming and creates a new chatlog when chatlogId is omitted.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `images` | array | No | Up to five image URLs. Each must be an http(s) URL or a base64 data URL beginning with data:image/. |
| `context` | string | No | Additional context about the chat session |
| `question` | string | Yes | Question for the chatbot |
| `chatbotId` | string | Yes | Chatbot ID to ask |
| `chatlogId` | string | No | Existing chatlog ID for conversation continuity |
| `contextUrl` | string | No | Page URL that supplies additional context |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Pages

**Slug:** `WONDERCHAT_DELETE_PAGES`

Delete URLs from a chatbot knowledge base. This permanently removes those pages.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | Page URLs to add or delete |
| `chatbotId` | string | Yes | Chatbot ID to modify |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Tags from Chatlog

**Slug:** `WONDERCHAT_DELETE_TAGS_FROM_CHATLOG`

Remove specified tags from a chatlog. This destructively changes its tags.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | Yes | Tag names to add or remove |
| `chatlogId` | string | Yes | Chatlog ID to modify |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Export Chatlogs

**Slug:** `WONDERCHAT_EXPORT_CHATLOGS`

Export one cursor-paginated page of historical chatlogs from accessible chatbots, optionally filtered by chatbot and date range. Results contain end-user PII such as names, email addresses, and phone numbers. Date filtering matches creation or last-message time; use nextCursor until hasMore is false for a complete export.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum chatlogs to return in this page |
| `cursor` | string | No | nextCursor from the previous response; omit for the first page |
| `endDate` | string | No | ISO date string for export end date (e.g., '2024-12-31T23:59:59Z') |
| `chatbotId` | string | No | ID of specific chatbot. If omitted, exports from all chatbots |
| `startDate` | string | No | ISO date string for export start date (e.g., '2024-01-01T00:00:00Z') |
| `includeMessages` | boolean | No | Whether to include message transcripts in each chatlog |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Messages

**Slug:** `WONDERCHAT_GET_MESSAGES`

Retrieve all user and bot messages from a chatlog, including timestamps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `chatlogId` | string | Yes | Chatlog ID to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Chatlog Info

**Slug:** `WONDERCHAT_UPDATE_CHATLOG_INFO`

Partially update contact and custom-field data on a chatlog. Requires a paid Wonderchat plan and an API key with ADMIN permission on the chatbot.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Contact name; send an empty string to clear |
| `email` | string | No | Contact email; send an empty string to clear |
| `userId` | string | No | Free-form external user identifier |
| `chatlogId` | string | Yes | Chatlog ID to update |
| `phoneNumber` | string | No | Contact phone number; send an empty string to clear |
| `customFields` | array | No | Configured custom fields to upsert; names are case-sensitive |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Chat Feedback

**Slug:** `WONDERCHAT_UPDATE_CHAT_FEEDBACK`

Set GOOD or BAD feedback on a chatlog for satisfaction tracking.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `feedback` | string ("GOOD" | "BAD") | Yes | Conversation feedback |
| `chatlogId` | string | Yes | Chatlog ID to rate |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Message Feedback

**Slug:** `WONDERCHAT_UPDATE_MESSAGE_FEEDBACK`

Set helpfulness feedback and an optional comment on one chatbot message.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `feedback` | string ("HELPFUL" | "NOT_HELPFUL") | Yes | Message feedback |
| `messageId` | string | Yes | Message ID to rate |
| `userComment` | string | No | Optional explanation for the feedback |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
