# xAPI

**xAPI**（Experience API，亦稱 Tin Can API）是一種用於追蹤學習體驗的標準。Chamilo 可以產生並消費 xAPI 陳述。

## xAPI 的功能

xAPI 以 **陳述**（statements）的形式追蹤學習活動，格式為：「行為者對物件執行動詞。」例如：

* 「Jane 完成了模組 1」
* 「John 在期末考試中獲得 85% 分數」
* 「Maria 觀看了介紹影片」

這些陳述會儲存在 **學習記錄儲存庫（LRS）** 中，提供學習活動的完整記錄。

## 設定

1. 在平台設定中，設定 **LRS 端點**：
   * **LRS URL** — 您的學習記錄儲存庫位址
   * **LRS 驗證** — 用於將資料傳送至 LRS 的認證資訊
2. 為所需的活動啟用 xAPI 追蹤

## Chamilo 透過 xAPI 追蹤的內容

Chamilo 可以產生以下 xAPI 陳述：

* 課程存取與完成
* 練習嘗試與分數
* 學習路徑項目進度
* 作品集項目

其他工具（例如文件與論壇）目前不會由外掛程式發出 xAPI 事件。

## 使用案例

* **跨平台追蹤** — 在單一 LRS 中追蹤跨多個工具與平台的學習活動
* **進階分析** — 使用 LRS 分析工具產生超越 Chamilo 內建報表的洞察
* **合規報表** — 為法規要求產生訓練完成的審計軌跡


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chamilo.org/2.x-zh-tw/guan-li-zhi-nan/admin-guide/integrations/xapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
