สคีมานำเข้า JSON ของ LoopGantt
สร้างแผนภูมิแกนต์ด้วยโปรแกรมโดยใช้รูปแบบ JSON ที่เรียบง่ายของเรา
เริ่มต้นด่วน
หากต้องการสร้างแผนภูมิแกนต์จาก JSON ให้ไปที่ loopgantt.com/import แล้ววางข้อมูลโปรเจกต์ในรูปแบบต่อไปนี้:
{
"name": "Website Redesign",
"description": "Complete website redesign project with modern UI",
"tasks": [
{
"name": "Requirements Gathering",
"duration": 3,
"dependencies": []
},
{
"name": "Wireframe Design",
"duration": 5,
"dependencies": [
0
]
},
{
"name": "Visual Design",
"duration": 7,
"dependencies": [
1
]
},
{
"name": "Frontend Development",
"duration": 10,
"dependencies": [
2
]
},
{
"name": "Backend Integration",
"duration": 8,
"dependencies": [
3
]
},
{
"name": "Testing & QA",
"duration": 5,
"dependencies": [
3,
4
]
},
{
"name": "Launch",
"duration": 0,
"dependencies": [
5
],
"isMilestone": true
}
]
}ลองตอนนี้! คัดลอกตัวอย่างด้านบนแล้วสร้างแผนภูมิแกนต์ได้ทันที
เปิดเครื่องมือนำเข้า →ข้อมูลอ้างอิงสคีมา
ออบเจกต์โปรเจกต์
| ฟิลด์ | ชนิด | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | มี | ชื่อโปรเจกต์ |
description | string | ไม่มี | คำอธิบายโปรเจกต์ |
startDate | string (วันที่แบบ ISO) | ไม่มี | วันเริ่มโปรเจกต์ (ค่าเริ่มต้นคือวันนี้) |
tasks | Task[] | มี | อาร์เรย์ของออบเจกต์งาน |
ออบเจกต์งาน
| ฟิลด์ | ชนิด | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | มี | ชื่องาน |
duration | number | มี | ระยะเวลาเป็นจำนวนวัน (ใช้ 0 สำหรับไมล์สโตน) |
dependencies | number[] | ไม่มี | อาร์เรย์ของดัชนีงานที่งานนี้ต้องรอ |
description | string | ไม่มี | คำอธิบายหรือบันทึกของงาน |
isMilestone | boolean | ไม่มี | ทำเครื่องหมายเป็นไมล์สโตน (ระยะเวลาควรเป็น 0) |
ตัวอย่าง
โปรเจกต์แบบง่าย
{
"name": "Product Launch",
"tasks": [
{
"name": "Planning",
"duration": 5,
"dependencies": []
},
{
"name": "Development",
"duration": 10,
"dependencies": [
0
]
},
{
"name": "Launch",
"duration": 0,
"dependencies": [
1
],
"isMilestone": true
}
]
}โปรเจกต์ที่มีงานคู่ขนาน
{
"name": "Marketing Campaign",
"tasks": [
{
"name": "Strategy",
"duration": 3,
"dependencies": []
},
{
"name": "Content Creation",
"duration": 7,
"dependencies": [
0
]
},
{
"name": "Design Assets",
"duration": 5,
"dependencies": [
0
]
},
{
"name": "Review",
"duration": 2,
"dependencies": [
1,
2
]
},
{
"name": "Go Live",
"duration": 0,
"dependencies": [
3
],
"isMilestone": true
}
]
}การใช้กับ AI
เคล็ดลับสำหรับผู้ใช้ AI: คุณขอให้ ChatGPT, Claude หรือผู้ช่วย AI อื่น ๆ สร้าง JSON ของโปรเจกต์ในรูปแบบ LoopGantt ได้ เพียงพิมพ์ว่า “สร้าง JSON แผนภูมิแกนต์สำหรับ [โปรเจกต์ของคุณ] ในรูปแบบ LoopGantt” แล้ววางผลลัพธ์ที่ loopgantt.com/import
การผสานรวม API
คุณยังสร้างโปรเจกต์ผ่านโปรแกรมได้ด้วย API นำเข้าของเรา ส่งคำขอ POST ไปที่ /api/import พร้อมข้อมูลโปรเจกต์แบบ JSON:
POST /api/import
Content-Type: application/json
{
"name": "My Project",
"tasks": [...]
}
// Response:
{
"success": true,
"projectId": "uuid",
"redirectUrl": "/dashboard/project/uuid"
}API แบบไม่ต้องใช้คีย์และเซิร์ฟเวอร์ MCP ไม่ต้องมีบัญชี
เส้นทางที่เร็วที่สุดสำหรับเอเจนต์ AI: POST https://loopgantt.com/api/v1/gantt สร้างแผนภูมิได้โดยไม่ต้องใช้คีย์และไม่ต้องมีบัญชีใด ๆ ทั้งสิ้น การตอบกลับจะมีกำหนดการที่คำนวณแล้ว เส้นทางวิกฤต และลิงก์แชร์สำหรับดูและส่งออกแผนภูมิ (PNG/PDF) หรือข้าม HTTP ไปเลย: เพิ่ม https://loopgantt.com/api/mcp เป็นตัวเชื่อมต่อ MCP ใน Claude, ChatGPT หรือ Cursor แล้วขอแผนด้วยภาษาทั่วไป ดูรายละเอียดทั้งหมดได้ที่หน้าเอเจนต์ AI และ MCP และในข้อกำหนด OpenAPI
พร้อมสร้างแผนภูมิแกนต์หรือยัง
นำเข้า JSON ตอนนี้ →