> ## Documentation Index
> Fetch the complete documentation index at: https://docs.optima.onl/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Chat

> Master AI chat techniques

# AI Chat

Optima AI provides an intelligent chat interface to help you complete various tasks using natural language.

## Skill Toggle

Click the skills button next to the input box to enable/disable specific feature modules:

| Skill      | Function                   |
| ---------- | -------------------------- |
| product    | Product management         |
| order      | Order processing           |
| inventory  | Inventory management       |
| ads        | Advertising                |
| bi         | Data analytics             |
| scout      | Product research           |
| comfy      | Image generation           |
| i18n       | Multi-language translation |
| merchant   | Store settings             |
| review     | Review management          |
| storefront | Storefront management      |

<Note>
  Disabling unneeded skills helps AI focus on your current task.
</Note>

***

## Sending Messages

### Text Messages

Type your question or command in the input box, then press Enter or click the send button:

```
Show me today's orders
```

### Upload Images

Click the image button on the left side of the input box, or drag and drop an image into the chat window:

```
[Upload product image]
List this product for $29.9
```

<Tip>
  AI will automatically recognize the image content and generate product title and description. Supports JPG, PNG, and WebP formats.
</Tip>

### Upload Files

Upload various file formats for AI to analyze:

* **Documents**: PDF, Word, Excel
* **Code**: JavaScript, Python, JSON, etc.
* **Images**: JPG, PNG, WebP

## @ Mention Files

Use the `@` symbol to reference files in your workspace:

```
@product-list.xlsx Help me bulk list these products
```

```
@sales-report.pdf Analyze this sales report
```

<Note>
  After typing `@`, a file list will automatically appear. Select the file you want to reference.
</Note>

## Message Editing

### Edit Sent Messages

Click the edit button on the right side of a sent message. After editing, AI will regenerate its response.

### Regenerate

If you're not satisfied with AI's response, click the "Regenerate" button to have AI answer again.

## Token Statistics

Each conversation displays token consumption:

* **Input Tokens**: Consumption from content you send
* **Output Tokens**: Consumption from AI responses

<Warning>
  Token consumption is related to message length. Uploading large files consumes more tokens.
</Warning>

## Thinking Status

AI displays its thinking process when handling complex tasks:

* 🤔 **Thinking** - AI is analyzing the problem
* 🔧 **Executing Tool** - AI is calling tools to complete the task
* ✅ **Complete** - Task execution finished

## Common Conversation Examples

<CardGroup cols={2}>
  <Card title="Product Management">
    * "Help me list a product"
    * "Update product price"
    * "Check inventory status"
  </Card>

  <Card title="Order Processing">
    * "How many new orders today"
    * "Order #1234 has shipped"
    * "Process refund request"
  </Card>

  <Card title="Data Analysis">
    * "What are this month's sales"
    * "Which products sell best"
    * "Analyze purchase trends"
  </Card>

  <Card title="Ads Management">
    * "View ad performance"
    * "Pause this campaign"
    * "Adjust ad budget"
  </Card>
</CardGroup>

## Slash Commands

Type `/` to trigger quick commands:

### /bash Command

```
/bash ls -la
```

Execute system commands. Suitable for technical users.

<Warning>
  /bash commands should be used with caution. Only recommended for users with technical backgrounds.
</Warning>

***

## Web Search

AI can search the web for the latest information:

```
Search for the latest e-commerce trends
```

```
Look up the latest news about this brand
```

Search results will show source links for verification.

***

## Connection Status

The top-right corner shows WebSocket connection status:

* 🟢 Connected - Working normally
* 🟡 Reconnecting - Network fluctuation, auto-reconnecting
* 🔴 Disconnected - Please check your network

***

## Interrupt Conversation

If AI's response is too long or you want to stop the current task, click the "Stop" button.
