

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

# 在聊天應用程式中與 Amazon Q Developer 聊天
<a name="q-in-chat-applications"></a>

您可以在 Microsoft Teams 和 Slack 聊天應用程式中與 Amazon Q Developer 聊天。在設定的頻道中，Amazon Q 可以回答有關建置解決方案、問題故障診斷及識別後續步驟之最佳實務的問題。下列 Amazon Q 聊天功能可在設定的聊天應用程式中使用：
+ [討論 AWS](chat-with-q.md)
+ [與 Amazon Q Developer 討論您的資源討論您的資源](chat-actions.md)
+  [資源問題故障診斷](chat-actions-troubleshooting.md)
+ [討論您的成本](chat-costs.md)
+ [討論您的遙測和操作](chat-ops.md)
+  [Reachability Analyzer 的 Amazon Q 網路故障診斷](https://docs.aws.amazon.com/vpc/latest/reachability/amazon-q-network-reachability-analysis.html)

如需有關在聊天應用程式中使用 Amazon Q 時可用的完整功能的詳細資訊，請參閱《聊天應用程式中的 Amazon Q Developer 管理員指南》**中的[什麼是聊天應用程式中的 Amazon Q Developer？](https://docs.aws.amazon.com/chatbot/latest/adminguide/what-is.html)。

**注意**  
當您在聊天應用程式中使用 Amazon Q Developer 時，僅限存取 Amazon Q Developer 免費方案。

## 在頻道中啟用 Amazon Q 聊天
<a name="add-q"></a>

若要將聊天功能新增至已在 Amazon Q Developer 中設定的 Microsoft Teams 或 Slack 頻道，請完成下列步驟。若是第一次在聊天應用程式中設定 Amazon Q Developer，並且要允許使用者與 Amazon Q 聊天，請參閱《聊天應用程式中的 Amazon Q Developer 管理員指南》**中的[開始使用 Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) 和[開始使用 Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html)。

您必須先將 Amazon Q 新增至頻道，才能從 Microsoft Teams 或 Slack 頻道向 Amazon Q 提問。首先，更新您的 AWS Identity and Access Management (IAM) 角色設定以包含 [AmazonQDeveloperAccess](managed-policy.md#amazonq-policy-developeraccess) 受管政策，然後新增政策作為頻道防護機制。如果您需要管理員存取權，請改為新增 [AmazonQFullAccess](managed-policy.md#amazonq-policy-fullaccess) 政策。

1. 將 `AmazonQDeveloperAccess` 受管政策新增至您的 IAM 角色。

   1. 登入 AWS 管理主控台 並開啟 [IAM 主控台](https://console.aws.amazon.com/iam)。

   1. 在 IAM 主控台的導覽窗格中，選擇**角色**。

   1. 選擇要查看的角色名稱。

   1. 在**許可政策**中，選擇**新增許可**和**連接政策**。

   1. 在搜尋中輸入 `AmazonQDeveloperAccess`。

   1. 選取 **AmazonQDeveloperAccess**。

   1. 選擇**新增許可**。

1. 將 `AmazonQDeveloperAccess` 受管政策新增至您的頻道防護機制：

   1. 開啟[聊天應用程式中的 Amazon Q Developer 主控台](https://console.aws.amazon.com/chatbot)。

   1. 選擇已設定的用戶端。

   1. 選取已設定的頻道。

   1. 選擇**設定防護機制**。

   1. 在搜尋中輸入 `AmazonQDeveloperAccess`。

   1. 選取 **AmazonQDeveloperAccess**。

   1. 選擇**儲存**。

## 在您的頻道中向 Amazon Q 提出問題
<a name="ask-questions"></a>

若要檢查您的組態是否成功，請向 Amazon Q 提出問題。輸入 `@Amazon Q` 後面接著您的問題。

以下是您可以從已設定頻道向 Amazon Q 提出的一些問題範例：
+ `@Amazon Q how do I troubleshoot lambda concurrency issues?`
+ `@Amazon Q what are the best practices for securing S3 buckets?`
+ `@Amazon Q what is the maximum zipped file size for a lambda?`
+  `@Amazon Q get the configuration for my lambda function name? ` 
+  `@Amazon Q what is the size of the auto scaling group name in us-east-2?` 
+  `@Amazon Q can you show ec2 instances running in us-east-1?` 