Skip to content

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

คุณจะลงทะเบียน agent แต่ละตัวกับ OpenClaw และส่งคำสั่งแรกให้พวกเขา เมื่อจบส่วนนี้ agents ทั้ง 6 ตัวจะทำงานอยู่ — รายงานไปยัง Discord channels ของตนเองและพร้อมรับคำสั่งจากคุณ

สองวิธีในการสื่อสารกับ agents ของคุณ:

วิธีการเหมาะสำหรับวิธีการทำงาน
OpenGoat UIผู้เริ่มต้น — อินเทอร์เฟซแบบภาพแดชบอร์ดบนเบราว์เซอร์ คลิกเลือก agent แล้วพิมพ์ข้อความ
VS Code terminalแนะนำ — เร็วกว่าและควบคุมได้มากกว่าopenclaw agent --agent [id] "your message"

ทั้งสองวิธีใช้งานได้ เริ่มด้วยวิธีที่คุณรู้สึกสบายใจกว่า

วิธีที่แนะนำ — ใช้ร่วมกับ AI: เมื่อคุณเพิ่งเริ่มต้น ให้เปิดแชท Claude, ChatGPT หรือ Gemini ไว้ควบคู่กับ agents ของคุณ หากคำสั่งไม่ทำงานหรือคุณไม่แน่ใจว่าต้องพิมพ์อะไร เพียงอธิบายสถานการณ์ให้ AI ฟังและขอความช่วยเหลือ นี่คือวิธีที่คนส่วนใหญ่ใช้งาน — รวมถึงทีม BALIA OS — ในช่วงแรกๆ คุณไม่จำเป็นต้องเชี่ยวชาญ terminal ตั้งแต่วันแรก หน้าต่างแชท AI จะอยู่ตรงนั้นเสมอในฐานะผู้ช่วยของคุณ


วิธีการทำงานของส่วนนี้

วางคำสั่งด้านล่างลงใน Claude, ChatGPT หรือ Gemini AI จะแนะนำคุณผ่านการลงทะเบียน agents ทั้ง 6 ตัวและส่งคำสั่งแรกให้แต่ละตัว แนบ Team Design Document ของคุณด้วยเพื่อให้ AI ทราบ agent IDs และ workspace paths ของคุณ

หากมีสิ่งผิดปกติเกิดขึ้น ให้อธิบายข้อผิดพลาดหรือถ่ายภาพหน้าจอแล้วแชร์ — AI จะช่วยคุณแก้ไข


▶ วางสิ่งนี้ลงในเอไอของคุณเพื่อเริ่มต้น

แนบ Team Design Document ก่อนส่ง

You are helping me register and launch my BALIA OS multi-agent team 
on OpenClaw.

I have attached my Team Design Document. Read it to get my agent IDs,
names, and workspace paths before starting.

My balia-os path is set in my .env file as BALIA_OS_PATH.
Please ask me to open my .env file and read the value of BALIA_OS_PATH,
then use that path throughout this session.

Guide me step by step. One step at a time. If I hit an error,
help me fix it before moving on. If I get stuck, ask me to share
a screenshot or paste the error message.

Here is what we need to do:

STEP 1 — Start the gateway
Tell me: "We'll start the OpenClaw gateway with a command that filters 
out noisy background logs so the terminal stays readable."

Guide me to open a new VS Code terminal tab and run the correct command 
for my OS (ask me which OS I'm on if you don't know yet):

Windows:
  $env:DEBUG="-ciao*"; openclaw gateway --force

Mac:
  DEBUG="-ciao*" openclaw gateway --force

Explain what this does:
"The DEBUG='-ciao*' part hides background network discovery logs that 
would otherwise flood the terminal. The --force flag clears any 
previous gateway instance. Your terminal will stay clean and readable."

Ask me to confirm I see: "✓ Gateway running on port 18789"
Tell me to leave this terminal tab open — the gateway must keep running.
If there's an error, help me fix it before moving on.

STEP 2 — Register each agent with OpenClaw
For each of my 6 agents (read IDs from Team Design Document),
guide me to run this command in the VS Code terminal:

openclaw agents add [agentid] --workspace ~/.openclaw/workspace-[agentid]

Example: openclaw agents add marcus --workspace ~/.openclaw/workspace-marcus

Show me all 6 commands at once with my actual agent IDs filled in.
Ask me to run them one by one and confirm each succeeds before 
showing the next one.

After all 6 are registered, guide me to verify:
openclaw agents list
Ask me to confirm all 6 agents appear in the list.

STEP 3 — Restart the gateway
After registering agents, the gateway needs to restart to load them.
Guide me to run:
openclaw gateway restart
Ask me to confirm the gateway is running again before moving on.

STEP 4 — Send first command via VS Code terminal (recommended)
Explain this first:
"The VS Code terminal is the recommended way to talk to your agents.
The command is:
openclaw agent --agent [agentid] 'your message here'

This sends a message directly to that specific agent."

Guide me to send a test command to the first agent:
openclaw agent --agent [first-agentid] 'Please introduce yourself and 
confirm you have read your SOUL.md, AGENTS.md, and IDENTITY.md. 
Then report to your Discord channel that you are online.'

Ask me: "What did the agent respond? 
Did you see a message appear in its Discord channel?"
If yes: great — move to next agent.
If no: help me troubleshoot.

Repeat for all 6 agents.

STEP 5 — (Optional) OpenGoat UI setup
After all agents are confirmed working via terminal, offer:
"You can also talk to your agents through the OpenGoat UI — 
a visual browser dashboard.
Would you like to set that up as well?
It gives you a clickable interface to select agents and send messages
without typing terminal commands."
If yes: guide me to:
1. Open a new VS Code terminal tab
2. Run: opengoat start
3. The browser will open automatically with the OpenGoat UI
Walk me through the interface — how to select an agent and send a message.
(If the browser doesn't open automatically, go to http://localhost:18789)
If no: skip and move to Step 6.

STEP 6 — Final confirmation
Run through this checklist with me:
□ All 6 agents registered (openclaw agents list shows all 6)
□ Gateway running (port 18789)
□ Each agent responded to first command
□ Each agent posted to their Discord channel
□ (Optional) OpenGoat UI accessible at localhost:18789

When all boxes are checked, say:
"Your BALIA OS team is live. All 6 agents are running and reporting 
to Discord. You're ready for Section 6 — Building Your First 
Skill Cassette."

Start now. Ask me the first question.

การสื่อสารกับ Agents ของคุณในแต่ละวัน

เมื่อทุกอย่างตั้งค่าเรียบร้อยแล้ว นี่คือวิธีที่คุณสั่งงาน:

เริ่ม gateway ก่อน (ทำสิ่งนี้ก่อนทุกครั้งที่เริ่มใช้งาน):

Windows:

$env:DEBUG="-ciao*"; openclaw gateway --force

Mac:

DEBUG="-ciao*" openclaw gateway --force

ปล่อยให้ terminal tab นี้ทำงานอยู่ เปิด tab ใหม่สำหรับคำสั่งอื่นๆ

ผ่าน VS Code terminal:

# Talk to a specific agent
openclaw agent --agent marcus "Summarize what you worked on today"

# Check agent list
openclaw agents list

# Restart gateway if needed
openclaw gateway restart

ผ่าน OpenGoat UI:

  1. เปิด VS Code terminal tab ใหม่
  2. รัน: opengoat start
  3. เบราว์เซอร์จะเปิดขึ้นโดยอัตโนมัติพร้อม OpenGoat UI
  4. เลือก agent จากแผงด้านซ้าย
  5. พิมพ์ข้อความของคุณแล้วกด Enter (หากเบราว์เซอร์ไม่เปิดโดยอัตโนมัติ ให้ไปที่ http://localhost:18789)

ผ่าน Discord (สำหรับรายงานเท่านั้น — ไม่ใช่สำหรับคำสั่ง): Discord คือที่ที่ agents ของคุณโพสต์รายงาน คุณอ่านการอัปเดตของพวกเขาที่นี่ การส่งคำสั่งไปยัง agents ผ่าน Discord ต้องใช้ Discord Bot — นี่คือการตั้งค่าขั้นสูงที่ไม่ครอบคลุมใน T1 ใช้ VS Code terminal หรือ OpenGoat UI ในการสั่งงานไปก่อน


หาก Agent ไม่ตอบสนอง

ตรวจสอบตามลำดับนี้:

  1. Gateway กำลังทำงานอยู่หรือไม่?

    openclaw gateway restart
  2. Agent ได้รับการลงทะเบียนแล้วหรือไม่?

    openclaw agents list

    หาก agent ของคุณไม่ปรากฏในรายการ ให้รันคำสั่ง agents add จาก Step 2 อีกครั้ง

  3. ไฟล์ workspace อยู่ในตำแหน่งที่ถูกต้องหรือไม่? ตรวจสอบว่า SOUL.md, AGENTS.md และ IDENTITY.md มีอยู่ใน: ~/.openclaw/workspace-[agentid]/

  4. API key ตั้งค่าถูกต้องหรือไม่? เปิด .env และยืนยันว่า ANTHROPIC_API_KEY ได้รับการกรอกข้อมูลแล้ว

หากยังติดขัด ให้วางข้อความแสดงข้อผิดพลาดลงใน Claude, ChatGPT หรือ Gemini แล้วขอความช่วยเหลือ