นำเข้า workflow ของ n8n — เอเจนต์ AI ที่ตอบข้อความแชต
n8n workflow — chat trigger, AI Agent, OpenAI Chat Model และ Simple Memory — นำaggrega import เป็น Aggregate, Release และ Manifest ที่
นำ
| โฟลเดอร์ | สิ่ง |
|---|---|
source/ | workflow support-agent.json ไฟล์ .aggrega-config.yaml ที่import-answers.yaml ซึ่ง |
draft/ | ไฟล์aggrega import support-agent.json --target compose เขียน โดยstdout.txt สำหรับimport.txt สำหรับ |
source/support-agent.json เขียน
ใน checkout ของcheck.sh รันdraft/ เปรียบAGGREGA_CATALOG_DIRS
ร่างตัวอย่าง
คุณ
เขียน
aggrega draft --example import-n8nจาก
cd import-n8nบิลด์
การนำsource/ และ pull สิ่งAGGREGA_CATALOG_DIRS หรือworkspace.catalog_dirs — จะ
cd sourceaggrega import support-agent.json --target composeaggrega validate --release release.yamlaggrega build --release release.yamlการ
กับผู้ช่วย AI
ผู้
ใช้เครื่องมือของ Aggrega เท่านั้น และอย่าสร้างโฟลเดอร์เอง หากโฟลเดอร์พื้นที่ทำงานยังไม่มีโฟลเดอร์ `import-n8n` ให้เรียกเครื่องมือ `draft` หนึ่งครั้งโดยตั้ง `example` เป็น `import-n8n` และไม่ระบุ `dir` เครื่องมือจะเขียนตัวอย่างลงในโฟลเดอร์ `import-n8n` ใหม่ ซึ่งโฟลเดอร์ `source` ของโฟลเดอร์นั้นเก็บสิ่งที่ตัวอย่างนี้นำเข้า จากนั้นเรียกเครื่องมือ `import` โดยตั้ง `workspace_root` เป็น `import-n8n/source` ตั้ง `source` เป็น `support-agent.json` และตั้ง `target` เป็น `compose` เครื่องมือจะอ่านคำตอบที่ต้องใช้จาก `import-answers.yaml` ที่อยู่ข้าง `support-agent.json` เขียนร่างลงใน `import-n8n/source` และ pull สิ่งที่ร่างเหล่านั้นต้องใช้ จากนั้นเรียกเครื่องมือ `validate` โดยตั้ง `workspace_root` เป็น `import-n8n/source` และตั้ง `release` เป็น `release.yaml` และเรียกเครื่องมือ `build` โดยตั้ง `workspace_root` เป็น `import-n8n/source` ตั้ง `release` เป็น `release.yaml` และตั้ง `write` เป็น true แล้วบอกฉันว่าบิลด์เขียนไฟล์ใดบ้าง ไฟล์เหล่านั้นอยู่ใน `import-n8n/source/dist/`ทดสอบ
เมื่อCHAT_USER และ CHAT_PASSWORD ที่
printf 'user = "%s:%s"\n' "$CHAT_USER" "$CHAT_PASSWORD" | curl --config - -sS -i -X POST \ http://127.0.0.1:5678/webhook/a3c9e1f2-4b5d-4e6f-8a7b-9c0d1e2f3a04/chat -H 'Content-Type: application/json' \ -d '{"action": "sendMessage", "sessionId": "s1", "chatInput": "In one short sentence: what does a support plan cover?"}'HTTP/1.1 500 Internal Server Error[… omitted: the response's other headers]
{"message":"Error in workflow"}การIncorrect API key provided: sk-place*****************-key.
เมื่อ--target helm และ
kubectl port-forward -n <namespace> svc/n8n-default 5678:5678