

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Connect Customer Analytics 資料湖中的機器人分析資料
<a name="data-lake-botdata"></a>

本主題詳細說明 Connect Customer 資料湖機器人資料表中的內容。資料表列出內容的欄、類型和描述。

有兩種方式可存取分析資料湖並設定要共用的資料：
+ [選項 1：使用 Connect Customer 主控台](access-datalake.md#option1-configure-data-to-be-shared)
+ [選項 2：使用 CLI 或 CloudShell](access-datalake.md#option2-configure-data-to-be-shared)

如果您無法使用「選項 1」存取排程資料表，請嘗試使用「選項 2」。

**Topics**
+ [機器人對話](#data-lake-bot-conversations)
+ [機器人意圖](#data-lake-bot-intents)
+ [機器人插槽](#data-lake-bot-slots)

## 機器人對話
<a name="data-lake-bot-conversations"></a>

**資料表名稱：** `bot_conversations`

**描述：**記錄機器人對話工作階段，包括對話結果、轉彎計數，以及 Lex 機器人互動的相關流程和聯絡內容。

**主索引鍵：** `instance_id, event_id`

**分割區索引鍵：** `bot_conversation_start_timestamp` （每日）

**聯結金鑰：**
+ `instance_id` — 聯結至所有資料表
+ `contact_id` — 加入聯絡人記錄
+ `flow_resource_id` — 加入聯絡流程事件
+ `bot_originating_request_id`、 `bot_session_id` — 加入 bot\_intents


| 資料行 | Type | Nullable | 說明 | 
| --- | --- | --- | --- | 
| event\_id | String |  否  | 這是資料表的主索引鍵。這將是原始請求識別符和工作階段識別符的雜湊。 | 
| bot\_originating\_request\_id | String |  是  | 特定機器人請求的唯一識別符。 | 
| bot\_session\_id | String |  是  | 正在對話之使用者工作階段的識別符。 | 
| aws\_account\_id | String |  是  | 擁有該聯絡的 AWS 帳戶識別符。 | 
| instance\_arn | String |  是  | Connect Customer 執行個體的 ARN。 | 
| instance\_id | String |  否  | Connect Customer 執行個體的識別符。 | 
| invoking\_resource\_type | String |  是  | 可以是流程或模組。 | 
| flow\_resource\_id | String |  是  | 流程識別符。 | 
| module\_resource\_id | String |  是  | 模組識別符。 | 
| invoking\_resource\_start\_timestamp | 時間戳記 |  是  | 流程開始的時間。 | 
| parent\_flow\_resource\_id | String |  是  | 從中調用模組的流程 ID。此欄位只會針對模組填入。 | 
| contact\_id | String |  是  | 聯絡的識別符。 | 
| flow\_action\_id | String |  是  | 已執行動作的識別符。動作是流程執行的單一步驟。 | 
| invoking\_resource\_published\_timestamp | 時間戳記 |  是  | 流程本身的「建立」或「修訂」日期。 | 
| flow\_type | String |  是  | Connect Customer 包含一組九種流程類型。如需詳細資訊，請參閱[選擇流程類型](create-contact-flow.md#contact-flow-types)。 | 
| 通道 | String |  是  | 與聯絡中心聯絡所用的方法：VOICE、CHAT、TASK。 | 
| sub\_type | String |  是  | 聯絡的子類型。例如，connect:Guide 或 connect:SMS。 | 
| initiation\_method | String |  是  | 代表聯絡案例最初啟動的方式。 | 
| flow\_language\_version | String |  是  | 流程語言版本。 | 
| invoking\_resource\_version | String |  是  | 使用的聯絡流程版本。 | 
| bot\_id | String |  是  | 機器人的識別符。 | 
| bot\_alias\_id | String |  是  | 保留工作階段之機器人的別名識別符。 | 
| bot\_version | String |  是  | 保留工作階段之機器人的版本。 | 
| bot\_locale | String |  是  | 機器人的語言組態。 | 
| bot\_conversation\_start\_timestamp | 時間戳記 |  是  | 標示與機器人對話開始的時間戳記。 | 
| bot\_conversation\_end\_timestamp | 時間戳記 |  是  | 標示與機器人對話結束的時間戳記。 | 
| bot\_conversation\_outcome | String |  是  | 對話的最終狀態。值：成功 \| 失敗 \| 已捨棄 | 
| bot\_number\_of\_conversation\_turns | Number |  是  | 工作階段進行的輪數。 | 
| data\_lake\_last\_processed\_timestamp | 時間戳記 |  是  | 時間戳記，顯示資料湖上次處理記錄的時間。這可能包括轉換和回填。此欄位無法用來判斷可靠的資料新鮮度。 | 

## 機器人意圖
<a name="data-lake-bot-intents"></a>

**資料表名稱：** `bot_intents`

**描述：**記錄機器人對話的意圖層級結果、追蹤意圖名稱、層級和每個機器人互動回合的解決狀態。

**主索引鍵：** `instance_id, event_id`

**分割區索引鍵：** `bot_conversation_start_timestamp` （每日）

**聯結金鑰：**
+ `instance_id` — 聯結至所有資料表
+ `bot_originating_request_id`、 `bot_session_id` — 加入 bot\_conversations
+ `bot_originating_request_id`、`bot_session_id`、`bot_intent_name`、 `bot_intent_level` — 加入 bot\_slots
+ `contact_id` — 加入聯絡人記錄


| 資料行 | Type | Nullable | 說明 | 
| --- | --- | --- | --- | 
| event\_id | String |  否  | 這是資料表的主索引鍵。這將是原始請求識別符、工作階段識別符、意圖名稱和意圖層級的雜湊。 | 
| bot\_originating\_request\_id | String |  是  | 特定機器人請求的唯一識別符。 | 
| bot\_session\_id | String |  是  | 正在對話之使用者工作階段的識別符。 | 
| aws\_account\_id | String |  是  | 擁有該聯絡的 AWS 帳戶識別符。 | 
| instance\_arn | String |  是  | Connect Customer 執行個體的 ARN。 | 
| instance\_id | String |  否  | Connect Customer 執行個體的識別符。 | 
| invoking\_resource\_type | String |  是  | 可以是流程或模組。 | 
| flow\_resource\_id | String |  是  | 流程識別符。 | 
| module\_resource\_id | String |  是  | 模組識別符。 | 
| invoking\_resource\_start\_timestamp | 時間戳記 |  是  | 流程開始的時間。 | 
| parent\_flow\_resource\_id | String |  是  | 在其中調用模組的流程識別符。此欄位只會針對模組填入。 | 
| contact\_id | String |  是  | 聯絡的識別符。 | 
| flow\_action\_id | String |  是  | 叫用機器人之流程區塊 （動作） 的識別符，其中動作是流程執行的單一步驟。 | 
| invoking\_resource\_published\_timestamp | 時間戳記 |  是  | 流程本身的「建立」或「修訂」日期。 | 
| flow\_type | String |  是  | 流程的類型。Connect Customer 包含一組九種流程類型。如需詳細資訊，請參閱[選擇流程類型](create-contact-flow.md#contact-flow-types)。 | 
| 通道 | String |  是  | 與聯絡中心聯絡所用的方法：VOICE、CHAT、TASK。 | 
| sub\_type | String |  是  | 聯絡的子類型。例如，connect:Guide 或 connect:SMS。 | 
| initiation\_method | String |  是  | 聯絡案例最初啟動的方式。 | 
| flow\_language\_version | String |  是  | 流程語言版本。 | 
| invoking\_resource\_version | String |  是  | 使用的聯絡流程版本。 | 
| bot\_id | String |  是  | 機器人的識別符。 | 
| bot\_alias\_id | String |  是  | 保留工作階段之機器人的別名識別符。 | 
| bot\_version | String |  是  | 保留工作階段之機器人的版本。 | 
| bot\_locale | String |  是  | 機器人的語言組態。 | 
| bot\_conversation\_start\_timestamp | 時間戳記 |  是  | 標示與機器人對話開始的時間戳記。 | 
| bot\_conversation\_end\_timestamp | 時間戳記 |  是  | 標示與機器人對話結束的時間戳記。 | 
| bot\_intent\_name | String |  是  | 意圖的名稱。 | 
| bot\_intent\_level | Number |  是  | 最多包含請求路徑的意圖數量。 | 
| bot\_intent\_outcome | String |  是  | 意圖的結束狀態。成功、失敗、已切換或已捨棄的值。 | 
| data\_lake\_last\_processed\_timestamp | 時間戳記 |  是  | 時間戳記，顯示資料湖上次處理記錄的時間。這可能包括轉換和回填。此欄位無法用來判斷可靠的資料新鮮度。 | 

## 機器人插槽
<a name="data-lake-bot-slots"></a>

**資料表名稱：** `bot_slots`

**描述：**記錄機器人意圖履行的槽層級結果、追蹤槽解析狀態，以及意圖中每個槽的重試計數。

**主索引鍵：** `instance_id, event_id`

**分割區索引鍵：** `bot_conversation_start_timestamp` （每日）

**聯結金鑰：**
+ `instance_id` — 聯結至所有資料表
+ `bot_originating_request_id`、`bot_session_id`、`bot_intent_name`、 `bot_intent_level` — 加入 bot\_intents
+ `bot_originating_request_id`、 `bot_session_id` — 加入 bot\_conversations
+ `contact_id` — 加入聯絡人記錄


| 資料行 | Type | Nullable | 說明 | 
| --- | --- | --- | --- | 
| event\_id | String |  否  | 這是資料表的主索引鍵。這將是原始請求識別符、工作階段識別符、意圖名稱、意圖層級、插槽名稱和插槽層級的雜湊。 | 
| bot\_originating\_request\_id | String |  是  | 特定機器人請求的唯一識別符 | 
| bot\_session\_id | String |  是  | 正在對話之使用者工作階段的識別符。 | 
| aws\_account\_id | String |  是  | 擁有該聯絡的 AWS 帳戶識別符。 | 
| instance\_arn | String |  是  | Connect Customer 執行個體的 ARN。 | 
| instance\_id | String |  否  | Connect Customer 執行個體的識別符。 | 
| invoking\_resource\_type | String |  是  | 可以是流程或模組。 | 
| flow\_resource\_id | String |  是  | 流程識別符。 | 
| module\_resource\_id | String |  是  | 模組識別符。 | 
| invoking\_resource\_start\_timestamp | 時間戳記 |  是  | 流程開始的時間。 | 
| parent\_flow\_resource\_id | String |  是  | 從中調用模組的流程識別符。此欄位只會針對模組填入。 | 
| contact\_id | String |  是  | 聯絡的識別符。 | 
| flow\_action\_id | String |  是  | 叫用機器人之流程區塊 （動作） 的識別符，其中動作是流程執行的單一步驟。 | 
| invoking\_resource\_published\_timestamp | 時間戳記 |  是  | 流程本身的「建立」或「修訂」日期。 | 
| flow\_type | String |  是  | Connect Customer 包含一組九種流程類型。如需詳細資訊，請參閱[選擇流程類型](create-contact-flow.md#contact-flow-types)。 | 
| 通道 | String |  是  | 與聯絡中心聯絡所用的方法：VOICE、CHAT、TASK。 | 
| sub\_type | String |  是  | 聯絡的子類型。例如，connect:Guide 或 connect:SMS。 | 
| initiation\_method | String |  是  | 代表聯絡案例最初啟動的方式。 | 
| flow\_language\_version | String |  是  | 流程語言版本。 | 
| invoking\_resource\_version | String |  是  | 使用的聯絡流程版本。 | 
| bot\_id | String |  是  | 機器人的識別符。 | 
| bot\_alias\_id | String |  是  | 保留工作階段之機器人的別名識別符。 | 
| bot\_version | String |  是  | 保留工作階段之機器人的版本。 | 
| bot\_locale | String |  是  | 機器人的語言組態。 | 
| bot\_conversation\_start\_timestamp | 時間戳記 |  是  | 標示與機器人對話開始的時間戳記。 | 
| bot\_conversation\_end\_timestamp | 時間戳記 |  是  | 標示與機器人對話結束的時間戳記。 | 
| bot\_intent\_name | String |  是  | 意圖的名稱。 | 
| bot\_intent\_level | Number |  是  | 最多包含請求路徑的意圖數量。 | 
| bot\_slot\_name | String |  是  | 位置的名稱。 | 
| bot\_slot\_level | Number |  是  | 最多包含請求路徑的插槽數量。 | 
| bot\_slot\_outcome | String |  是  | 插槽的結束狀態。成功、失敗、已捨棄或重試的值。 | 
| bot\_slot\_retry\_count | Number |  是  | 機器人嘗試從使用者引出插槽回應的次數。 | 
| data\_lake\_last\_processed\_timestamp | 時間戳記 |  是  | 時間戳記，顯示資料湖上次處理記錄的時間。這可能包括轉換和回填。此欄位無法用來判斷可靠的資料新鮮度。 | 