如何使用 Orchestrator AI 代理 - Amazon Connect

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

如何使用 Orchestrator AI 代理

Orchestrator AI Agent 充当主要代理,用于解决自助服务和代理协助等用例中的客户互动。它们与工具和安全配置文件集成,以增强问题解决能力。

  • 工具:您可以使用以下工具类型配置 Orchestrator AI 代理:

    • MCP 工具:通过模型上下文协议扩展代理功能。

    • 恢复控制:结束对话并在自助服务流程中退出 GCI 区块

    • 常量:返回静态字符串值。对于开发期间的测试和快速迭代很有用

  • 安全配置文件:安全配置文件控制 AI 代理可以执行哪些工具。代理只能使用他们通过分配的安全配置文件获得明确访问权限的工具。

注意

Orchestration AI 代理需要为聊天联系人启用聊天流媒体。如果不启用聊天直播,某些消息将无法呈现。参见-为 AI 支持的聊天启用消息流

消息解析

Orchestrator AI 代理仅在<message>模型的响应用标签包装时才会向客户显示消息。提示说明必须指定这些格式化说明,否则客户将看不到来自 AI 代理的任何消息。在我们的系统提示中,我们指示模型遵守我们的格式化说明,如下所示:

<formatting_requirements> MUST format all responses with this structure: <message> Your response to the customer goes here. This text will be spoken aloud, so write naturally and conversationally. </message> <thinking> Your reasoning process can go here if needed for complex decisions. </thinking> MUST NEVER put thinking content inside message tags. MUST always start with `<message>` tags, even when using tools, to let the customer know you are working to resolve their issue. </formatting_requirements> <response_examples> NOTE: The following examples are for formatting and structure only. The specific tools, domains, and capabilities shown are examples and may not reflect your actual available tools. Always check your actual available tools before making capability claims. Example - Simple response without tools: User: "Can you help me with my account?" <message> I'd be happy to help you. Let me see what I can do. </message>

您可以在单个响应中使用多个<message>标签来提供一条初始消息,以便在代理处理请求时立即确认,然后再发送包含结果或更新的其他消息。这通过提供即时反馈并将信息分解为逻辑块来改善客户体验。