步驟 3:新增自訂和內建意圖集區域集區域 - Amazon Lex V1

如果您使用的是 Amazon Lex V2,請參閱 Amazon Lex V2 指南

 

如果您使用的是 Amazon Lex V1,我們建議您將機器人升級到 Amazon Lex V2。我們不再向 V1 添加新功能,強烈建議所有新的機器人使用 V2。

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

步驟 3:新增自訂和內建意圖集區域集區域

意圖表示呼叫中心代理希望機器人執行的動作。在這種情況下,代理程式會希望機器人根據客服與客戶的對話建議回應和有用的資源。

Amazon Lex 有兩種意圖類型:自訂意圖和內建意圖。 AMAZON.KendraSearchIntent是內建意圖。機器人會使用AMAZON.KendraSearchIntent意圖查詢索引,並顯示 Amazon Kendra 建議的回應。

此範例中的機器人不需要自訂意圖。不過,若要建置機器人,您必須至少建立一個具有至少一個範例語音的自訂意圖。只有在建置您的代理程式助理機器人時,才需要此目的。它不執行任何其他功能。意圖的話語不得回答客戶可能會提出的任何問題。這可確保呼AMAZON.KendraSearchIntent叫以回答客戶查詢。如需詳細資訊,請參閱AMAZON.KendraSearchIntent

建立所需的自訂意圖
  1. Getting started with your bot (開始使用您的機器人) 頁面上,選擇 Create intent (建立意圖)

  2. 針對 Add intent (新增意圖),選擇 Create intent (建立意圖)

  3. 在「建立意圖」對話方塊中,輸入意圖的描述性名稱,例如RequiredIntent

  4. 在「範例語音」中,輸入描述性語音,例如Required utterance

  5. 選擇 Save intent (儲存意圖)

要添加亞馬遜。 KendraSearchIntent 意圖和響應消息
  1. 在導覽窗格中,選擇「對應方式」旁邊的加號 (+)。

  2. 選擇 [搜尋現有的意圖]。

  3. 在「搜尋方式」方塊中輸入AMAZON.KendraSearchIntent,然後從清單中選擇。

  4. 為意圖指定描述性名稱,例如AgentAssistSearchIntent,然後選擇「新增」。

  5. 在意圖編輯器中,選擇 Amazon Kendra query (Amazon Kendra 查詢) 以開啟查詢選項。

  6. 選擇您想要搜索的索引,

  7. 在 [回應] 區段中,將下列三個訊息新增至訊息群組。

    I found an answer for the customer query: ((x-amz-lex:kendra-search-response-question_answer-question-1)) and the answer is ((x-amz-lex:kendra-search-response-question_answer-answer-1)). I found an excerpt from a helpful document: ((x-amz-lex:kendra-search-response-document-1)). I think this answer will help the customer: ((x-amz-lex:kendra-search-response-answer-1)).
  8. 選擇 Save intent (儲存意圖)

  9. 選擇「建置」以建置機器人。

下一步驟

步驟 4:設定 Amazon Cognito