"> Skip to main content

คู่มือ Claude Artifacts: สร้างแอป เอกสาร และโค้ดได้ทันที

2026-06-20 · FreeClaude

สรุปสั้น: Claude Artifacts คือฟีเจอร์ that generates rich, interactive ผลลัพธ์s — functional เว็บ apps, รูปแบบted เอกสารs, การแสดงผลข้อมูลs, เกม, and more — directly within your Claude การสนทนา. Instead of just generating โค้ด you have to run yourself, Artifacts renders and runs the ผลลัพธ์ inline so คุณสามารถ see and interact with it immediately. This คู่มือ covers every ประเภท Artifact, วิธี use it มีประสิทธิผลly, and วิธี รับสิทธิ์ใช้งาน ฟรี.

Claude Artifacts คืออะไร?

Claude Artifacts คือฟีเจอร์ที่ Anthropic นำเสนอ ซึ่งเปลี่ยนแปลงรูปแบบการแสดงผลของการสนทนากับ Claude อย่างพื้นฐาน ก่อนหน้าที่จะมี Artifacts นั้น Claude สามารถสร้างโค้ด เอกสาร และข้อมูลที่มีโครงสร้างได้ แต่ทั้งหมดปรากฏเป็นข้อความในหน้าต่างสนทนา ทำให้ผู้ใช้ต้องคัดลอกไปวางในเครื่องมืออื่นและดำเนินการหรือแสดงผลเอง Artifacts เปลี่ยนแปลงสิ่งนี้โดยจัดให้มีสภาพแวดล้อมการแสดงผลแบบฝังตัวโดยตรงในอินเทอร์เฟซของ Claude

เมื่อคุณขอให้ Claude สร้างสิ่งที่ควรถูกมองเห็นและโต้ตอบได้ มากกว่าแค่อ่าน ระบบจะสร้าง Artifact ขึ้น ซึ่งเป็นเนื้อหาเชิงโต้ตอบที่ครบวงจร แสดงผลในแผงด้านข้างของการสนทนา A คอมโพเนนต์ React becomes a live preview คุณสามารถ click. A การแสดงผลข้อมูล becomes an interactive chart. A game becomes a playable game. A เอกสาร becomes a รูปแบบted เอกสาร คุณสามารถ read in its final form.

ผลกระทบในทางปฏิบัตินั้นสำคัญมาก: วงจรป้อนกลับระหว่าง "ขอให้ Claude สร้างบางอย่าง" และ "ดูและประเมินสิ่งที่สร้าง" ลดจากนาทีเป็นวินาที สำหรับการสร้างต้นแบบอย่างรวดเร็ว การสร้างเนื้อหา การแสดงผลข้อมูล และวัตถุประสงค์ทางการศึกษา ความเร็วนี้เปลี่ยนแปลงคุณค่าของ Claude ในฐานะเครื่องมืออย่างมาก

Artifacts พร้อมใช้งานสำหรับผู้ใช้ Claude Max ทุกคนผ่านเว็บอินเทอร์เฟซ claude.ai ผู้ใช้ ฟรีClaude ที่มีสิทธิ์เข้าถึง Claude Max x20 จะได้รับฟังก์ชันการทำงาน Artifacts ครบถ้วน รวมถึงประเภท artifact ทั้งหมด และความสามารถในการสร้าง Artifacts ได้ไม่จำกัดต่อเซสชัน

ประเภทของ Artifacts ทั้งหกชนิด

Claude currently generates six distinct ประเภท Artifacts, each designed for different ผลลัพธ์ categories. Understanding what each type is and when Claude will generate it ช่วยคุณ craft คำสั่งs that produce the ผลลัพธ์ รูปแบบ you want.

ประเภท Artifactรูปแบบใช้สำหรับ
คอมโพเนนต์ ReactJSX / TSXUI เชิงโต้ตอบ แอป เครื่องมือ เกม
HTML/CSS/JSHTML ดิบหน้าเว็บแบบสถิต แอปพลิเคชันง่าย วิดเจ็ต
Markdown เอกสารMarkdown ที่แสดงผลแล้วเอกสารที่จัดรูปแบบ รายงาน คู่มือ
SVG Imageกราฟิกแบบเวกเตอร์แผนภาพ ไอคอน ภาพประกอบ โลโก้
Mermaid Diagramไวยากรณ์ Mermaidผังงาน แผนภาพลำดับ ERDs
โค้ด Blockทุกภาษาสคริปต์ ฟังก์ชัน การกำหนดค่า ข้อมูล

Each ประเภท Artifact serves a distinct purpose and is triggered by different kinds of คำขอs. Understanding which type to ask for — and when Claude will generate one automatically — is a key skill for productive Artifact use. The most ทรงพลัง type for building interactive experiences is the คอมโพเนนต์ React, which can implement sophisticated UIs, manage state, and respond to user interaction.

Artifacts สำหรับโค้ดและแอปพลิเคชัน

การประยุกต์ใช้ Claude Artifacts ที่น่าประทับใจที่สุดคือการสร้างแอปพลิเคชันที่ใช้งานได้จริง คอมโพเนนต์ React artifacts แสดงผลแบบสดๆ ในแผง Artifacts ช่วยให้คุณโต้ตอบกับสิ่งที่ Claude สร้างได้ทันที และขอการเปลี่ยนแปลงตามสิ่งที่คุณเห็น This is genuine rapid prototyping in the most direct sense.

สิ่งที่คุณสามารถสร้างด้วย React Artifacts

ขอบเขตของแอปพลิเคชันที่ Claude สามารถสร้างและแสดงผลเป็น React Artifacts นั้นน่าแปลกใจสำหรับผู้ใช้ที่ยังไม่เคยสัมผัส ต่อไปนี้คือหมวดหมู่พร้อมตัวอย่างเฉพาะเจาะจง:

เครื่องมือเพิ่มประสิทธิภาพ

  • เครื่องคิดเลขและตัวแปลงค่า: Mortgage calculators, unit converters, tax estimators, ROI calculators with multiple ข้อมูลนำเข้า fields, conditional logic, and รูปแบบted ผลลัพธ์
  • ตัวสร้างแบบฟอร์ม: Multi-step forms with validation, conditional fields, and submission handling
  • เครื่องมือจับเวลาและติดตาม: Pomodoro timers, habit trackers, time loggers with persistence via localStorage
  • เครื่องมือประมวลผลข้อความ: Word counters, regex testers, text รูปแบบters, markdown previewers

การแสดงผลข้อมูล

  • กราฟ: Bar charts, line charts, pie charts, scatter plots using libraries like Recharts or Chart.js
  • แดชบอร์ด: Multi-chart แดชบอร์ดs with filters and time range selectors
  • ตารางข้อมูล: Sortable, filterable tables with pagination for ข้อมูลsets you provide
  • แผนที่: ง่าย geographic visualizations when given coordinate ข้อมูล

เนื้อหาการศึกษาและเชิงโต้ตอบ

  • แบบทดสอบและแฟลชการ์ด: Multiple choice quizzes, spaced repetition flashcard decks, knowledge tests
  • บทเรียนเชิงโต้ตอบ: ทีละขั้นตอน walkthroughs with progress tracking
  • ซิมูเลเตอร์: Algorithm visualizers, physics simulations, economic โมเดลs
  • เครื่องมือเรียนภาษา: Vocabulary practice apps, conjugation drills, translation exercises

เกม

  • เกมคลาสสิก: Tic-tac-toe, connect four, snake, tetris-style block เกม, memory matching
  • เกมคำศัพท์: Wordle variants, anagram solvers, word search generators
  • เกมปริศนา: Sudoku generators with solution checking, logic puzzles, escape room style challenges
  • เกมความรู้: Custom trivia on any topic you specify, with score tracking and difficulty levels

คอมโพเนนต์ UI และต้นแบบ

  • การนำทางและเลย์เอาต์: Responsive navbars, sidebars, hero sections for เว็บsite designs
  • การสาธิตฟีเจอร์: Animated ฟีเจอร์ showcases, product landing page sections
  • ไลบรารีคอมโพเนนต์: Custom UI component systems with consistent styling
  • Wireframes: Interactive wireframes for app designs that stakeholders can click through

การเขียนคำสั่งที่มีประสิทธิภาพสำหรับ โค้ด Artifacts

เพื่อให้ Claude สร้าง คอมโพเนนต์ React artifact แทนที่จะเป็นโค้ดธรรมดา ควรใช้ภาษาที่บ่งบอกว่าคุณต้องการสิ่งที่เชิงโต้ตอบและแสดงผลได้ มีประสิทธิผล phrases include: "build a React app," "สร้างn interactive เครื่องมือ," "make a working demo," "build something I can use right now," or simply "make a [name of แอปพลิเคชัน]." Claude will automatically choose the React Artifact รูปแบบ when the คำขอ implies live interactivity.

For more ซับซ้อน แอปพลิเคชันs, provide specific ข้อกำหนดs upfront rather than asking for a basic เวอร์ชัน and iterating. Claude can build fairly sophisticated แอปพลิเคชันs in a single generation, and providing detailed ข้อกำหนดs from the start produces ดีกว่า ผลลัพธ์s than vague คำสั่งs followed by many revision rounds.

Artifacts สำหรับเอกสารและเนื้อหา

นอกเหนือจากแอปพลิเคชันเชิงโต้ตอบ Claude Artifacts ยังสร้างเอกสารที่จัดรูปแบบอย่างละเอียดซึ่งแสดงในรูปแบบภาพที่ตั้งใจไว้ แทนที่จะเป็นข้อความดิบ This is valuable for any content where visual structure matters: reports, proposals, คู่มือs, analyses, and educational materials.

Artifacts เอกสาร Markdown

Artifacts เอกสาร Markdown render รูปแบบted เอกสารs with proper headings, bold text, bullet lists, numbered lists, tables, โค้ด blocks, and links. The artifact panel displays the fully rendered เอกสาร — you see it as a reader would, not as raw markdown syntax. This makes it easy to evaluate the final ผลลัพธ์ and share a clean เอกสาร รูปแบบ.

Particularly มีประสิทธิผล use cases for Markdown artifacts include: project proposals and scopes of work, technical เอกสารation and README ไฟล์s, structured reports with tables and รูปแบบted ข้อมูล, educational คู่มือs and how-to เอกสารs, and meeting agendas with attached action items.

Artifacts รูปภาพ SVG และแผนภาพ

Claude generates functional SVG images — vector graphics that scale to any size without คุณภาพ loss. SVG artifacts are มีประโยชน์ for ง่าย logos, iconography, abstract illustrations, and any graphic that can be expressed in vector รูปแบบ. For more ซับซ้อน diagrams with formal notation, Mermaid artifacts provide a higher-level specification language.

Mermaid diagrams are particularly ทรงพลัง for technical เอกสารation. Claude can generate:

  • ผังงาน: Decision trees, process flows, algorithm diagrams
  • แผนภาพลำดับ: API interaction sequences, ข้อความ passing diagrams, user flow diagrams
  • แผนภาพความสัมพันธ์เอนทิตี: ฐานข้อมูล schema visualizations
  • แผนภูมิ Gantt: Project timelines and milestone planning
  • แผนภาพคลาส: Object-oriented design visualizations
  • แผนภาพสถานะ: State machine definitions and transitions

To สร้าง Mermaid diagram, simply describe what you want to visualize: "สร้าง sequence diagram showing the OAuth 2.0 authorization โค้ด flow," or "Make an entity relationship diagram for a บล็อก ฐานข้อมูล with posts, authors, tags, and comments." Claude will generate the ไวยากรณ์ Mermaid and render it in the artifacts panel.

การปรับปรุงและพัฒนา Artifacts

One of the most ทรงพลัง aspects of the Artifacts กระบวนการทำงาน is the rapid iteration cycle. Unlike traditional การพัฒนา where each change requires editing ไฟล์s, running builds, and checking ผลลัพธ์s manually, Artifacts lets you see changes immediately — turning what would be a multi-minute cycle into a 10-30 second one.

รูปแบบการปรับปรุงที่มีประสิทธิภาพ

Start broad, then specify: สร้าง first เวอร์ชัน with a general คำขอ, then look at what Claude built and provide specific feedback on what to change. This is often เร็วกว่า than trying to specify every detail upfront, because seeing the initial เวอร์ชัน makes clear what you actually want in a way that abstract specification doesn't.

Reference what you see: When คำขอing changes, reference specific visible elements: "the blue button in the top right," "the second column in the table," "the animation that plays on hover." This is more precise than abstract descriptions and produces more accurate revisions.

Separate functional from visual: Make functional changes (adding ฟีเจอร์s, fixing behavior) and visual changes (colors, layout, typography) in separate revision rounds. Mixing the two in a single revision คำขอ increases the chance that Claude changes something you didn't intend.

คำขอ additions, not rewrites: When asking for additional ฟีเจอร์s, specify that you want Claude to add to the existing โค้ด rather than regenerate it entirely. Phrase คำขอs as "add a dark mode toggle to the existing อินเทอร์เฟซ" rather than "สร้าง ใหม่ เวอร์ชัน with dark mode" — the former is more likely to preserve the existing structure you are happy with.

การแชร์และส่งออก Artifacts

Artifacts สามารถแชร์ผ่านลิงก์ที่ Claude สร้างขึ้น ซึ่งช่วยให้ผู้อื่นดู artifact ที่แสดงผลในเบราว์เซอร์ของตนเองโดยไม่จำเป็นต้องมีบัญชี Claude For React and HTML artifacts, the underlying โค้ด can be copied from the artifact panel and deployed to any static hosting service — Vercel, Netlify, GitHub Pages, or a ง่าย เว็บ เซิร์ฟเวอร์ — for permanent hosting.

กระบวนการทำงานและเทมเพลตที่ใช้จริง

ผู้ใช้ Artifact ที่มีประสิทธิภาพสูงสุดได้พัฒนากระบวนการทำงานที่ทำซ้ำได้ซึ่งเพิ่มคุณภาพผลลัพธ์สูงสุดในขณะที่ลดรอบการแก้ไขให้น้อยที่สุด Here are the most มีประสิทธิผล patterns:

กระบวนการสร้างต้นแบบอย่างรวดเร็ว

For product and ฟีเจอร์ prototyping: start with a user story ("build a เครื่องมือ that lets users ข้อมูลนำเข้า a CSV and see a chart of the ข้อมูล"), get the first working เวอร์ชัน, share it with stakeholders for feedback, then refine based on actual reactions to the working prototype. This กระบวนการทำงาน compresses a typical design-feedback cycle from days to hours.

กระบวนการแสดงผลข้อมูล

For ข้อมูล การวิเคราะห์: paste your ข้อมูลset (in CSV or JSON รูปแบบ) into the การสนทนา, specify what insight you want to communicate, and ask Claude to build a visualization that makes that insight clear. Iterate on chart type, color scheme, labeling, and interaction until the visualization communicates what you need. Export the React โค้ด for การผสานรวม into your actual product.

กระบวนการสร้างเนื้อหาการศึกษา

For creating teaching materials: specify your learning objective, target audience, and content constraints, then ask Claude to build an interactive module. Combine explanation text (Markdown artifact) with interactive exercises (React artifact) in the same session. Review and edit the content, then export for use in your course แพลตฟอร์ม.

กระบวนการสร้างเอกสาร

For business เอกสารs: provide Claude with the key facts, ข้อมูล points, and ข้อกำหนดs, then ask it to generate the ครบถ้วน รูปแบบted เอกสาร as a Markdown artifact. Read through the rendered ผลลัพธ์, คำขอ specific edits to sections, then copy the final เวอร์ชัน for use in your actual เอกสาร management system.

ข้อจำกัดและวิธีแก้ปัญหา

Understanding Artifacts' ข้อจำกัดs ช่วยคุณ set appropriate expectations and find มีประสิทธิผล วิธีแก้ปัญหาเฉพาะหน้าs when you encounter them.

ไม่รองรับ Backend หรือการเรียกใช้บริการภายนอก

คอมโพเนนต์ React artifacts run in a sandboxed เบราว์เซอร์ environment without การเข้าถึง to external APIs, ฐานข้อมูลs, or ไฟล์ systems. แอปพลิเคชันs that need to fetch live ข้อมูล, authenticate users, or persist ข้อมูล beyond the เบราว์เซอร์ session cannot be fully built as Artifacts. วิธีแก้ปัญหาเฉพาะหน้าs: use static ข้อมูลsets pasted into the การสนทนา for ข้อมูล-driven apps; use localStorage for ง่าย persistence; design the frontend as an Artifact and note where backend การผสานรวม points would go.

ข้อจำกัดด้านไลบรารี

The Artifacts sandbox includes a curated set of พร้อมใช้งาน libraries including React, Recharts, Chart.js, Tailwind CSS, and others. Not every npm package พร้อมใช้งาน. If Claude generates โค้ด using a library that isn't พร้อมใช้งาน, the artifact may fail to render. วิธีแก้ปัญหาเฉพาะหน้าs: specify that Claude should use only built-in เบราว์เซอร์ APIs and React for maximum compatibility, or ask Claude to implement functionality natively rather than relying on libraries.

ข้อจำกัดด้านความซับซ้อน

Very large แอปพลิเคชันs with many interconnected ฟีเจอร์s push against context and rendering ข้อจำกัดs. Artifacts work ดีที่สุด for focused เครื่องมือs and ฟีเจอร์s rather than full-scale แอปพลิเคชันs. For ซับซ้อน แอปพลิเคชันs, break the project into multiple smaller Artifacts — individual components or pages — and then integrate the โค้ด into your การพัฒนา environment.

การแก้ไขข้อผิดพลาดใน Artifacts

When an Artifact fails to render or has unexpected behavior, describe what you observe: "The artifact shows a blank screen," "clicking the button doesn't do anything," or "the chart renders but the labels overlap." Claude can diagnose and fix issues based on your description. For โค้ด-level debugging, ask Claude to add console.log statements or error handling and tell you what the เบราว์เซอร์ console shows.

รับสิทธิ์ใช้งาน Claude Artifacts ฟรี

Claude Artifacts ต้องใช้การสมัครสมาชิก Claude Max และพร้อมใช้งานผ่านเว็บอินเทอร์เฟซ claude.ai ฟรีClaude มอบสิทธิ์เข้าถึง Claude Max x20 ซึ่งรวมถึงฟังก์ชันการทำงาน Artifacts ครบถ้วน โดยไม่เสียค่าใช้จ่ายผ่านโปรแกรมแนะนำเพื่อนของชุมชน

  1. เปิด @ฟรีClaudeIO_bot บน Telegram แล้วแตะ Start
  2. เข้าร่วมช่อง ฟรีClaude ตามที่บอทแนะนำ
  3. รับลิงก์แดชบอร์ดของคุณที่ ฟรีclaude.io/แดชบอร์ด
  4. แชร์ลิงก์แนะนำเพื่อน — เพื่อนหนึ่งคนที่เข้าร่วมจะให้สิทธิ์เข้าถึงเต็มรูปแบบ 3 วัน รวมถึง Artifacts
  5. เข้าสู่ระบบ claude.ai และเริ่มสร้าง — Artifacts เปิดใช้งานโดยอัตโนมัติสำหรับผู้ใช้ Max

Artifacts ไม่พร้อมใช้งาน in the Claude มือถือ apps or Claude โค้ด terminal — it is a เว็บ-อินเทอร์เฟซ ฟีเจอร์. การเข้าถึง it at claude.ai in any เดสก์ท็อป or มือถือ เบราว์เซอร์. The ฟีเจอร์ works ดีที่สุด on เดสก์ท็อป with a larger screen to see both the การสนทนา and the Artifacts panel simultaneously.

เริ่มสร้างด้วย Claude Artifacts — มีสิทธิ์ใช้งานฟรี

Get Free Access →

คำถามที่พบบ่อย

ฉันต้องรู้วิธีเขียนโค้ดเพื่อใช้ Claude Artifacts หรือไม่?

ไม่จำเป็น Claude จัดการโค้ดทั้งหมด คุณเพียงแค่อธิบายสิ่งที่ต้องการ และ Claude จะสร้างและแสดงผลให้ ไม่จำเป็นต้องมีความรู้ด้านการเขียนโค้ดเพื่อสร้างและใช้งาน Artifacts Understanding โค้ด does help when you want to export Artifacts for use in การใช้งานจริง or need to debug unexpected behavior, but for everyday use of the Artifacts ฟีเจอร์, zero coding experience is needed.

ฉันสามารถส่งออกโค้ด Artifact และนำไปใช้ในโปรเจกต์ได้หรือไม่?

ได้ คลิกปุ่มคัดลอกในแผง Artifact เพื่อรับโค้ดดิบ คอมโพเนนต์ React artifacts produce JSX/TSX โค้ด that can be used directly in any React project. HTML artifacts produce standard HTML/CSS/JS that works anywhere. Markdown artifacts produce standard Markdown that renders in any Markdown-capable แพลตฟอร์ม. SVG and Mermaid artifacts produce standard รูปแบบs เข้ากันได้ with any เครื่องมือ that supports them.

Artifacts สามารถเข้าถึงอินเทอร์เน็ตหรือ API ภายนอกได้หรือไม่?

ไม่ได้ Artifacts ทำงานในสภาพแวดล้อมที่แซนด์บ็อกซ์โดยไม่มีการเข้าถึงเครือข่ายสู่บริการภายนอก They can only use ข้อมูล provided directly in the การสนทนา or generated by Claude. This is a ความปลอดภัย ฟีเจอร์ — the sandbox prevents Artifacts from making unauthorized external คำขอs.

ฉันสามารถสร้าง Artifacts ได้กี่ชิ้นในการสนทนาหนึ่งครั้ง?

There is no official limit on the number of Artifacts per การสนทนา. In practice, very long การสนทนาs with many large Artifacts may approach หน้าต่างบริบท limits. Most users create 5-10 Artifacts per session without issue.

หลายคนสามารถทำงานร่วมกันบน Artifact ได้หรือไม่?

Currently, Artifacts are created within a single user's การสนทนา. Shared artifact links allow others to view the rendered ผลลัพธ์, but collaborative editing of Artifacts is not yet a ฟีเจอร์. For team collaboration, the most practical approach is to export the โค้ด and use a standard เวอร์ชัน control system.

Artifacts ทำงานบนมือถือได้หรือไม่?

Artifacts render on มือถือ เบราว์เซอร์s at claude.ai, though the experience is ดีกว่า on เดสก์ท็อป where the การสนทนา and Artifacts panel can be viewed side by side. Interactive Artifacts with touch-based interactions typically work well on มือถือ; Artifacts designed for hover states or keyboard shortcuts may need adaptation.

ฉันสามารถใช้ Artifacts เพื่อสร้างรูปภาพหรือเสียงได้หรือไม่?

Claude cannot generate raster images (like JPEG or PNG) through Artifacts. SVG vector graphics can be generated as Artifacts, which includes many types of illustrations and diagrams. Audio generation is not currently รองรับ in Artifacts. For image and audio generation, other dedicated เครื่องมือs are จำเป็น.

ความแตกต่างระหว่าง Artifact กับ Claude โค้ด คืออะไร?

They serve different purposes. Claude โค้ด is a terminal-based coding ผู้ช่วย that directly reads and modifies ไฟล์s in your local การพัฒนา environment — it integrates into your actual กระบวนการทำงาน, editing real ไฟล์s in your project. Artifacts is a เว็บ-based ฟีเจอร์ that generates self-contained interactive ผลลัพธ์s rendered in the Claude อินเทอร์เฟซ — it is optimized for rapid creation and preview without any local setup. Developers typically use both: Claude โค้ด for working with their actual โค้ดbase, and Artifacts for quick prototypes and one-off เครื่องมือs.