---
title: ตัวอย่างพรอมต์
description: พรอมต์พร้อมใช้สำหรับ AI Chat หรือไคลเอ็นต์ AI ของคุณเอง: การตั้งค่าครั้งแรก, การเพิ่ม Proxmox, ตารางแผนพร้อมส่วนต่างกำไร, SMTP, Stripe, Telegram, เครดิตลูกค้า และการส่งออกการกำหนดค่าของคุณ
url: https://nexcmp.com/th/docs/configure-with-ai/example-prompts/
applies_to: NexCMP 1.6.1
updated: 2026-11-02
---

# ตัวอย่างพรอมต์ {#example-prompts}

> **ตำแหน่งในหน้าผู้ดูแลระบบ:** AI Chat (`/agent`) หรือปุ่ม **Ask AI** ที่ลอยอยู่บนหน้าผู้ดูแลระบบใดก็ได้ พรอมต์เดียวกันนี้สามารถใช้งานได้ในไคลเอ็นต์ AI ใดก็ได้ที่เชื่อมต่อผ่าน [MCP](https://nexcmp.com/th/docs/configure-with-ai/mcp-admin/)

## What it does {#what-it-does}

พรอมต์เหล่านี้แสดงวิธีป้อนคำถาม แต่ละรายการจะระบุสิ่งที่ผู้ช่วยทำเบื้องหลัง สโคปที่ต้องการ (สำหรับไคลเอ็นต์ภายนอกหรือคีย์) และจุดที่คุณจะต้องอนุมัติ แทนที่ค่าตัวอย่างด้วยค่าของคุณเอง

::: tip ห้ามพิมพ์ข้อมูลลับลงในข้อความแชท
สำหรับรหัสผ่าน, API key และโทเค็น ให้ใช้ฟิลด์ **Secret** ที่อยู่ข้างช่องป้อนข้อมูล AI Chat ([รายละเอียด](https://nexcmp.com/th/docs/configure-with-ai/ai-chat-in-admin/#secrets)) AI จะเห็นเพียงตัวยึดพื้นที่ที่แทนข้อมูลลับ ไม่ใช่ค่าจริง หากใช้ไคลเอ็นต์ AI ภายนอก ข้อมูลลับจะผ่านไคลเอ็นต์นั้น ดังนั้นจึงควรป้อนในระบบผู้ดูแลระบบจะดีกว่า
:::

## ตรวจสอบว่าคุณอยู่ที่ไหน {#check-where-you-are}

```text
Check my setup progress and tell me the next three things to do, in order.
```

ผู้ช่วยจะเรียกใช้ `setup_checklist` และ `system_health` (สโคป `admin:read`) แล้วตอบกลับจากสถานะจริง ดู [เช็คลิสต์ความคืบหน้าในการตั้งค่า](https://nexcmp.com/th/docs/configure-with-ai/setup-checklist/)

## การตั้งค่าครั้งแรก {#first-setup}

```text
Help me finish the initial setup. Go through the checklist, explain each open step
in one sentence, ask me for what you need, and show me every change before it is applied.
```

ขั้นตอนนี้เหมือนกับพรอมต์ MCP `initial-setup` โดยต้องใช้ `admin:read` ร่วมกับสโคปของขั้นตอนที่คุณยอมรับ คุณจะเห็นการ์ดขอ Cยืนยันสำหรับการเปลี่ยนแปลงแต่ละรายการใน AI Chat

## เพิ่มคลัสเตอร์ Proxmox VE {#add-a-proxmox-ve-cluster}

```text
I want to sell servers from my Proxmox VE cluster at https://pve.example.com:8006.
Add it, test the connection, create a zone called "New York" in the US, attach the cluster
to it, and then propose starter plans.
```

สิ่งที่จะเกิดขึ้น:

1. ผู้ช่วยจะขอ ID ของ API token (`user@realm!tokenid`) และรหัสลับ ให้ใส่รหัสลับลงในฟิลด์ **Secret** โดยสร้างโทเค็นที่มีสิทธิ์จำกัดก่อนที่: [Proxmox VE](https://nexcmp.com/th/docs/infrastructure/proxmox/)
2. ระบบจะเรียกใช้ `proxmox_add`, `proxmox_test`, `zone_create` และ `proxmox_attach_zone`
3. ระบบจะเสนอแผนบริการด้วย `plans_from_offerings` และรอการอนุมัติจากคุณ (ดูตัวอย่างถัดไป)

สโคป: `infra:write`, `secrets:write`, `catalog:write`, `admin:read`

## สร้างตารางแผนด้วยส่วนต่างกำไร 40% {#create-a-plan-table-with-a-40-margin}

```text
Suggest a starter plan table from my CloudStack offerings. My costs are $4 per vCPU per month,
$2 per GB of RAM per month and $0.08 per GB of disk per month. Use a 40% margin, show me the
table with cost, price per month and price per hour, and create the plans only after I approve.
```

ผู้ช่วยจะเรียกใช้ `plans_from_offerings` พร้อมกับ `margin_pct` 40 และต้นทุนของคุณ ส่วนต่างกำไรคือสัดส่วนของราคาขายที่เป็นกำไร: ที่ 40% แผนที่มีต้นทุน $60 จะขายในราคา $100 การเรียกครั้งแรกจะแสดงผลตัวอย่างเท่านั้น เมื่อคุณอนุมัติ ระบบจะเรียกใช้เครื่องมืออีกครั้งด้วย `apply=true` ซึ่งจะสร้างแผนทั้งหมดในขั้นตอนเดียวและขอการยืนยันหนึ่งครั้งเนื่องจากเกี่ยวข้องกับราคา สำหรับ Proxmox ระบบจะใช้ `backend_id` และรายการขนาดเริ่มต้น (1, 2, 2 และ 4 vCPU) สโคป: `catalog:write`, `admin:read` ดู [Plans](https://nexcmp.com/th/docs/catalog/plans/)

![คำตอบของ AI Chat ที่แสดงตารางตัวอย่างของแผนพร้อมต้นทุน, ราคาต่อเดือน และราคาต่อชั่วโมง](https://nexcmp.com/th/docs/images/configure-with-ai/example-prompts-01-plan-preview.webp)

## กำหนดค่าอีเมลและส่งข้อความทดสอบ {#configure-email-and-send-a-test-message}

```text
Configure outgoing email with smtp.example.com, port 587, STARTTLS, user "mailer@example.com",
sender name "Example Cloud", sender address "no-reply@example.com". Use my Secret field for the
password "smtp_password". Then send a test email to admin@example.com.
```

ผู้ช่วยจะเรียกใช้ `smtp_get`, `smtp_configure` และ `smtp_test` พร้อมแจ้งให้คุณทราบว่าข้อความได้รับการยอมรับหรือไม่ สโคป: `settings:write`, `secrets:write` ดู [SMTP and e-mail templates](https://nexcmp.com/th/docs/administration/smtp-and-emails/)

## ตั้งค่า Stripe {#set-up-stripe}

```text
Set up Stripe in test mode. My publishable key is pk_test_XXXX. Use the secret key and the
webhook secret from my Secret field (names stripe_secret_key and stripe_webhook_secret).
Then test the credentials and tell me which webhook URL I must add in Stripe.
```

`payment_configure` มักจะเป็นการดำเนินการสองขั้นตอนเสมอ: คุณจะเห็นตัวอย่างที่มีการซ่อนค่าความลับไว้และทำการอนุมัติ จากนั้น `payment_test` จะตรวจสอบข้อมูลรับรองกับ Stripe สโคป: `billing:write`, `secrets:write` เปลี่ยนเป็นโหมดใช้งานจริงหลังจากทำการชำระเงินทดสอบแล้วเท่านั้น ดู [Stripe](https://nexcmp.com/th/docs/billing/stripe/)

## เปิดใช้งานการแจ้งเตือนทาง Telegram {#turn-on-telegram-alerts}

```text
Add my Telegram chat 123456789 for admin alerts. The bot token is in my Secret field as
telegram_bot_token. Send a test message.
```

ผู้ช่วยจะเรียกใช้ `telegram_configure` และ `telegram_test` สโคป: `settings:write`, `secrets:write` ดู [Telegram notifications](https://nexcmp.com/th/docs/administration/telegram-notifications/)

## ค้นหาลูกค้าและเพิ่มเครดิต {#find-a-customer-and-add-credit}

```text
Find the customer with e-mail customer@example.com, show me their balance and servers,
and add $10.00 of credit because of the outage on Monday.
```

ผู้ช่วยจะเรียกใช้ `customers_search` และ `customer_get` (แบบอ่านอย่างเดียว) จากนั้นเรียกใช้ `customer_adjust_balance` พร้อมกับ `delta_cents` 1000 และเหตุผล ขั้นตอนนี้ **จำเป็นต้อง** ได้รับการอนุมัติจากคุณเสมอ: การ์ดการยืนยันจะระบุว่า "เปลี่ยนแปลงยอดเงินของลูกค้า" พร้อมแสดงจำนวนเงินและเหตุผลที่จะถูกบันทึกในบันทึกการตรวจสอบ (audit log) สโคป: `admin:read`, `billing:write`

## ส่งออกการกำหนดค่าของฉัน {#export-my-configuration}

```text
Export my whole configuration as YAML. Do not include secrets. Then tell me which settings
differ from a typical new installation.
```

ผู้ช่วยจะเรียกใช้ `config_export` ข้อมูลลับจะถูกแทนที่ด้วยข้อมูลอ้างอิง `secret://` บันทึกผลลัพธ์เป็น `nexcmp.yaml` และเก็บไว้ในระบบควบคุมเวอร์ชัน ดู [Configuration as code](https://nexcmp.com/th/docs/configure-with-ai/config-as-code/) สโคป: `admin:read`

## เขียนพรอมต์ที่ดี {#write-good-prompts}

- ระบุเป้าหมายและข้อมูลจริง เช่น ชื่อ ราคา และอีเมล อย่าใส่ข้อมูลลับ
- ขอตัวดูก่อนเสมอกับสิ่งที่มีค่าใช้จ่ายหรือลบข้อมูล
- ขอให้ผู้ช่วย "อ่านค่าปัจจุบันก่อนเปลี่ยนแปลง" ซึ่งคำสั่งในระบบมีระบุไว้แล้ว
- หากคำตอบดูไม่ถูกต้อง ให้ถามว่า "คุณเรียกใช้เครื่องมือใดและใช้พารามิเตอร์อะไร?" ซึ่งการ์ดเครื่องมือใน AI Chat จะแสดงทั้งสองอย่าง

## การแก้ Problme {#troubleshooting}

| อาการ | สาเหตุ | วิธีแก้ปัญหา |
|---|---|---|
| ผู้ช่วยแจ้งว่าไม่มีเครื่องมือสำหรับบางสิ่ง | สิทธิ์สำหรับเครื่องมือดังกล่าวไม่ได้รับอนุญาต หรือการดำเนินการถูกปิดกั้นสำหรับ AI | ตรวจสอบ [Admin API keys](https://nexcmp.com/th/docs/configure-with-ai/admin-api-keys/#what-a-key-can-never-do) หรือดำเนินการในหน้าผู้ดูแลระบบ |
| ระบบขอให้คุณวางรหัสผ่าน | โมเดลไม่สนใจคำสั่ง | ปฏิเสธ ใช้ฟิลด์ Secret หรือป้อนค่าในหน้าผู้ดูแลระบบ |
| ไม่มีการเปลี่ยนแปลงหลังจากกด "ทำเลย" | การเปลี่ยนแปลงกำลังรอการยืนยันของคุณ | เลื่อนไปยังการ์ด confirmation และกด **Confirm** |
| แผนถูกสร้างขึ้นด้วยราคาที่คุณไม่ได้คาดคิด | ต้นทุนหรือกำไรในพรอมต์ไม่ถูกต้อง | แก้ไขแผนในหน้า Plans หรือขอให้ผู้ช่วยกำหนดราคาใหม่ โดยการเปลี่ยนแปลงราคาจะต้องมีการยืนยัน |
