AI 코치: 권장사항

AI 코치 추천을 최적화하려면 다음 정보를 제공해야 합니다.

  • 작성된 일련의 요청 사항
  • 대화 스크립트
  • API의 데이터

그러면 AI 코치가 적절한 안내와 상담사 추천 응답을 제공합니다.

가장 유용한 제안을 받으려면 다음 시나리오에서 AI 코치를 사용하세요.

업셀링 및 크로스셀링

고객센터 상담사가 다른 제품이나 서비스를 제공해야 하는 경우 AI 코치가 다음과 같은 유용한 정보를 제공할 수 있습니다.

  • 영업을 시작해야 하는 시점과 영업을 시도하지 말아야 하는 시점을 제안합니다.
  • 문제 파악을 위한 질문을 통해 고객의 니즈를 파악합니다.
  • 대화 컨텍스트를 기반으로 짧은 목록에서 제품을 추천합니다.
  • 부정적 반응에 대응하는 방법을 제안합니다.

이탈 고객 확보

고객센터 상담사가 고객에게 회사에 남아 있도록 설득하려고 할 때 AI 코치는 다음과 같은 유용한 정보를 제공할 수 있습니다.

  • 유지 혜택을 제공할 시기를 제안합니다.
  • 문제 파악을 위한 질문을 통해 고객의 취소 사유를 파악합니다.
  • 대화 맥락에 따라 유지 혜택을 추천합니다.

도구를 사용한 원스텝 자동화

AI 코치는 고객 서비스 대화를 기반으로 반복적인 비즈니스 프로세스를 자동화할 수도 있습니다.

  • 고객이 인증되고 주문 번호를 제공한 경우 주문 상태를 검색합니다.
  • 주문 번호와 취소 사유를 확인할 수 있는 경우 주문을 취소합니다.
  • 위험한 자동화는 수동 검토 및 승인이 필요하도록 구성합니다.

위험한 작업

위험한 작업은 자동화된 비즈니스 프로세스로, 막대한 금전적 손실, 정보 유출 또는 규정 미준수를 초래할 수 있습니다. 예를 들어 데이터베이스를 작성하고 인증 없이 민감한 정보를 검색하는 등의 작업이 있습니다. AI 코치는 대화에서 타이밍을 제안하고 매개변수를 추출할 수 있지만, 위험한 작업은 수동 검토 및 승인이 필요하며 완전히 자동화해서는 안 됩니다.

AI 코치 요청 사항

AI 코치에게 고객 서비스 대화 전반에서 상담사가 취해야 할 조치와 이러한 조치가 필요한 시점을 알려주는 일련의 요청 사항을 작성합니다. 요청 사항에는 고객에게 계정 PIN 요청, 주문 상태 확인 및 고객에게 알림, 취소 요청 제출과 같은 에이전트 작업을 지정할 수 있습니다.

AI 코치 요청 사항에는 다음 정보가 포함됩니다.

  • 표시 제목: 여러 요청 사항을 관리하는 데 도움이 됩니다. 표시 제목은 LLM에 표시되지 않습니다.

  • 세부정보 표시: 요청 사항이 적용될 때 모델이 반환해야 하는 정적 콘텐츠를 지정합니다. 표시 세부정보에는 URL, 내부 도구 또는 시스템 바로가기, 상담사 치트시트, 백엔드 API 호출이 포함될 수 있습니다. 이 세부정보는 상담사만 액세스할 수 있습니다. 표시 세부정보는 모델에 표시되지 않습니다.

  • 조건: 대화에서 요청 사항이 적용되는 시점을 지정합니다. 모델에 조건이 표시됩니다.

  • 에이전트 작업: 요청 사항이 적용될 때 에이전트가 취해야 하는 단계를 지정합니다. 에이전트 작업은 모델에 표시됩니다.

  • 시스템 작업: 요청 사항이 적용될 때 자동화에 사용할 도구를 지정합니다. 시스템 작업은 모델에 표시됩니다.

  • 트리거 이벤트: 이 명령어의 트리거 이벤트를 지정합니다. 지정하지 않으면 생성기의 트리거 이벤트를 미러링합니다.

조건, 상담사 작업, 시스템 작업은 AI 코치의 추천에 영향을 미칩니다.

조건

조건은 명확하고 간결하며 독립적이어야 합니다. 고객의 문제에 대한 간략한 설명을 사용할 수 있습니다. 제품에 익숙하지 않은 일반인에게 설명하듯이 상태를 작성합니다. 다음은 유용한 조건의 몇 가지 예입니다.

  • 고객이 주문을 취소하려고 합니다.
  • 고객이 새 휴대전화를 구매하려고 합니다.
  • 고객의 인터넷 연결이 매우 느립니다.

예

다음은 사용할 수 있는 조건과 에이전트 작업의 예시입니다.

  • 조건: 고객이 배송지 주소를 새 주소로 업데이트해 달라고 요청합니다.
  • 상담사 작업: 새 주소가 아직 제공되지 않은 경우 고객에게 배송에 사용할 새 주소를 물어봅니다.

일반적으로 관련 조건이 충족된 후에만 회사 정책의 텍스트를 표시합니다. 이 예시에서는 고객이 취소 의사를 표현한 후에만 AI 코치가 취소 정책을 표시합니다. 다음 입력 예시에서는 대화의 의도된 주제가 표시 제목과 조건에 모두 반영됩니다. 상담사에게 표시되는 텍스트의 콘텐츠는 표시 세부정보에 정의됩니다.

AI 코치에 대한 입력:

display_title: order cancellation
display_detail: Company cancellation policy: Orders cannot be canceled more than 30 days after they have been placed. Only the cancellation team can process order cancellations.
condition: the customer wants to cancel an order
agent_action: N/A

상담사 조치

이상적으로는 다음 세 가지 정보 소스를 기반으로 에이전트 작업의 각 단계를 확인할 수 있습니다.

  • 안내: 이전 섹션의 세부정보를 참고하세요.
  • 대화 스크립트: 고객 서비스 대화 중에 상담사와 고객이 말하는 내용을 기록합니다.
  • 수집된 데이터: 최근 거래, 청구서, 진행 중인 프로모션과 같이 대화에서 직접 찾을 수 없는 관련 고객 데이터로 구성됩니다.

AI 코치가 사용할 수 있는 수집된 데이터의 예는 다음과 같습니다.

ingested_data_key: Product Recommendation
ingested_data_value:
* Microwave-safe, glass food container set, $29.99
* Gila Complete Window Film Application Kit, $19.99

데이터 누락

에이전트 작업에 요청 사항의 다른 부분과 대화 스크립트에서 누락된 정보가 필요한 경우 수집된 데이터를 제공하는 API도 누락된 정보를 제공해야 합니다.

  • 해당 소스에 없는 정보가 필요한 작업은 작성하지 마세요.

  • 해당 데이터를 찾을 수 없는 경우 다음을 피하세요.

    • 고객에게 청구서 설명하기
    • 고객에게 잔액, 마감일 또는 주문 상태를 알립니다.

여러 동사

앞의 에이전트 작업 목록에는 에이전트가 수행할 작업을 나타내는 동사가 하나만 포함되어 있지만 단계에는 동사가 두 개 이상 있을 수 있습니다. 예를 들어 비즈니스에서 상담사가 특정 제품을 추천하고 해당 제품을 조건과 연관시키는 작업을 모두 하나의 응답으로 처리하기를 원하는 경우 다음 입력과 같이 단일 에이전트 작업 단계를 작성할 수 있습니다.

display_title: recommend device protection
display_detail:
 trade-in process: [list steps for trade-in]
 device protection plan: [list plan details]
condition: the customer has issues/questions about trade-in
agent_action:
Recommend the device protection plan and tell the customer it can help them get better trade-in values in the future.

샘플 응답 출력

에이전트 작업은 수집된 데이터를 활용하고 샘플 응답 출력의 템플릿을 지정할 수도 있습니다. 예를 들어 비즈니스에서 추천할 제품이 여러 개 있고 상담사가 대화 맥락과 관련된 추천을 하기를 원하는 경우 에이전트 작업은 AI 코치가 샘플 대답 출력에서 구체적인 제안을 하도록 프롬프트를 표시할 수 있습니다. 또한 이 예시에서는 AI 코치가 템플릿을 따르는 샘플 대답을 생성하도록 프롬프트를 표시하는 에이전트 작업을 작성하는 방법을 보여줍니다.

display_title: cross-selling
display_detail: see `Product Recommendations` for a relevant product
condition: the customer is inquiring about product availability
agent_action:
Summarize to the customer what product you have been discussing, then recommend a relevant product from the section titled "Product Recommendation" and provide a brief explanation of how the two products are relevant to each other. Use this template for sample responses: "Since we've been talking about ..., I'd like to recommend ... because ...".

Some examples:
- For TVs, recommend TV stands.
- For storage, recommend label writers.
- For slow cookers and microwaves, recommend food container sets.
- For air conditioners, recommend humidifiers.

다단계 작업

마지막으로 에이전트 작업은 두 개 이상의 단계로 구성될 수 있습니다. 다단계 에이전트 작업은 단일 조건이 충족될 때 에이전트가 대화를 진행하는 방법을 나타냅니다.

상담사가 주문 취소를 처리하기 전에 일련의 질문을 해야 하는 주문 취소 대화의 다음 예를 살펴보세요. 각 단계에서 별도의 샘플 대답이 생성됩니다.

display_title: order cancellation
display_detail:
 cancellation policy: [list policies]
 look up `[order number]` in ordering system
 how to cancel an order [list steps]
condition: the customer wants to cancel an order
agent_action:
1. Ask the customer for the order number.
2. Ask the customer why they want to cancel the order.
3. Inform the customer you are working on the cancellation.
4. Inform the customer that you have canceled the order.
5. Inform the customer that they will receive the refund in 5-7 business days.

주문 취소와 같은 단계는 추가 통합 없이는 확인하기 어려울 수 있습니다. 이전 예에서는 고객에게 취소 작업을 진행 중이라고 알림 단계로 대체합니다.

시스템 작업

시스템 작업에서는 이미 정의된 도구를 참조할 수 있습니다. 요청 사항의 이 섹션에서는 요청 사항 조건이 충족될 때 고려할 도구를 지정합니다. 도구 참조는 ${tool:tool_name|action_name} 형식이어야 합니다. 도구를 설정하는 방법에 관한 자세한 내용은 OpenAPI 및 Integration Connectors 도구 페이지를 참고하세요.

다음은 몇 가지 시스템 작업 예시입니다.

예시 1: 도구 및 작업 이름 나열

...
system_action:
${tool:order_management|cancel_order}, ${tool:order_management|check_order}

예시 2: 조건부 동작 추가

...
system_action:
* if "RESPONSE TO ${TOOL:ORDER_MANAGEMENT|CANCEL_ORDER}" is already present without any error, skip ${tool:order_management|cancel_order} 
* if the order number has been provided, use ${tool:order_management|cancel_order} 
* if "RESPONSE TO ${TOOL:GETORDERDETAILS|GETORDERDETAILS}" shows errors or failures, retry ${tool: order_management | cancel_order}

AI 코치의 전반적인 가이드 사용

AI 코치는 다음과 같은 사항을 지정하는 포괄적인 가이드라는 구성 가능한 프롬프트 섹션을 추가합니다.

  • 용어집
  • 샘플 응답 제안의 스타일, 형식, 어조에 관한 가이드라인
  • 안내 사용 및 준수 방법에 관한 중요 참고사항

용어집

다음 용어집에서는 취약한 고객과 계정 인증을 명확하게 정의합니다. 전체 가이드에 이 용어집이 포함되어 있으므로 이전 버전의 AI 코치처럼 반복적으로 정의할 필요 없이 지침에 용어를 사용할 수 있습니다.

#### Vulnerable customer

A customer is considered a vulnerable customer when at least one of the following is true:

- The customer is experiencing financial hardship.
- The customer has a physical disability or chronic health condition.
- The customer is facing domestic abuse or is in an unsafe situation.

#### Account authentication

Account authentication is considered completed if the account PIN provided by the customer matches the account PIN in the data section *Account PIN*.

스타일, 형식, 어조 가이드라인

샘플 대답에서 다음 스타일, 형식, 어조 가이드라인을 따르세요.

  • 항상 공감하고, 인내심을 갖고, 안심시켜 줘.
  • 지나치게 격식 없는 표현이나 속어는 사용하지 마세요. 존중하면서도 따뜻한 어조를 유지해 줘.
  • 응답은 항상 고객의 감정이나 우려를 명시적으로 인정해야 합니다(예: '불편을 끼쳐 드려 죄송합니다').
  • 짧은 문장을 사용하고 복잡한 표현이나 전문 용어는 피하세요.
  • 고객을 비난하거나 고객의 말에 반박하지 마세요. 대신 올바른 정보로 부드럽게 안내하세요.
  • 고객의 주요 우려사항을 명확하게 인정하는 것으로 모든 응답을 시작합니다.

요청 사항 준수 참고 사항

요청 사항을 따르는 방법에 관한 메모를 추가합니다. 자동 추천을 개선하기 위해 메모를 사용하여 사고 또는 추론 과정을 지정할 수도 있습니다.

예시

예시 1: 모델 동작 구성

### Follow instructions
* An instruction is applicable if and only if both of the following are true:
  * The condition is met by the conversation and the contexts.
  * Some of the agent actions are not completed yet. (If all the agent actions are done, then the instruction no longer applies.)
* Notes on following the applicable instructions:
  * Do not suggest any sample responses or agent actions that are not specified in the applicable instructions.
  * Do not ask for information not specified in the instructions.
  * If an agent action step is to ask for information that the customer has already provided, then the step should be skipped.
  * **Your suggested responses should fit into the conversation flow**. For example, if the customer and the support agent has moved on to a new issue, you should stop making suggestions for the old issue.
* Each sample response (or agent action suggestion) must be concise and only carry out one step in the applicable instruction. Do not cover multiple steps within one sample response (or agent action suggestion).
* Avoid repetition:
  * Do not suggest sample responses or agent actions that the agent has already said or done earlier in the conversation.
  * Do not ask for information that is already available in the conversation or the contexts.
* For product names, when you provide parameters in system action suggestions, provide the full names, including available specs.
* If multiple instructions lead to the same or similar suggestion, give one suggestion, but with multiple sources.

예시 2: 요청 사항의 우선순위를 조정하고 사고 과정을 지정하여 더 정확한 추천 받기

### Notes on how to use or follow instructions
If there are multiple instructions applicable at the same time, **suggest only one instruction as applicable based on the following priority (from highest to lowest)**:
* [Highest priority] security related

Example: Account authentication is required before anything else.

* [High priority] customer retention
* [Medium priority] issue resolution
* [Low priority] upselling or cross-selling

### Thinking process
Before you make any suggestions, answer the following questions in this output section:
* For each instruction, is it applicable? If yes, what is its priority?
* Which instruction has the highest priority?

다음 예는 특정 상황에서 모델이 제안해야 하는 사항의 예와 함께 동일한 요청 사항 우선순위를 보여줍니다.

### Notes on how to use or follow instructions
If there are multiple instructions applicable at the same time, **suggest only one instruction as applicable based on the following priority (from highest to lowest)**:
* [Highest priority] security related

Examnple: Account authentication is required before anything else.

* [High priority] customer retention
* [Medium priority] issue resolution
* [Low priority] up-selling or cross-selling

#### Examples to follow
<example_1>
<instructions>
...
instruction I1
condition: the customer wants to inquire about their current plan
agent action: inform the customer of what plan they have and what features they get
...
instruction I2
condition: the authentication is not done yet
agent action: ask for the account PIN
...
</instructions>
<conversation>
customer: can you tell me what plan I have?
</conversation>
<good_suggestion>
may I have your account PIN, please?
</good_suggestion>
<bad_suggestion>
sure, let me pull up your account information.
</bad_suggestion>
<comment>
Both instructions I1 and I2 are applicable, but I1 should have the highest priority because it's security related. Therefore, asking for the account PIN is a good suggestion.
</comment>
</example_1>

AI 코치의 항목 추출

AI 코치는 엔티티 추출을 통해 다음을 수행할 수 있습니다.

  • 중요한 정보(사용자 주소, 계좌 번호 또는 음성 자막 변환의 제품 이름)를 자동으로 식별하고 저장합니다.
  • 데이터를 수동으로 입력하지 않아도 됩니다.
  • CRM 시스템이 정확한지 확인합니다.
  • 워크플로를 가속화하세요.

기능의 성능을 최적화하려면 AI 코치 생성기 구성에 다음 세부정보가 포함되어 있는지 확인하세요.

  • 명확한 지침
  • 정의된 도구 구조
  • 전반적인 가이드

함수 도구 정의

도구 정의는 추출할 데이터에 대한 일련의 안내를 지정합니다. 다음 예시에서는 주소 항목 추출을 위해 JSON으로 정의된 함수 도구를 보여줍니다.

{
  "type": "object",
  "properties": {
    "phone_number": {
      "description": "A complete US phone number. ONLY extract if a fully visible 10 or 11-digit number is present. CRITICAL: If no valid value is found, you are FORBIDDEN from generating this key. DO NOT output 'phone_number': null.",
      "type": "string"
    },
    "full_person_name": {
      "description": "The full name of a real person. EXCLUDE: Generic roles, pronouns, or objects. CRITICAL: If no valid value is found, you are FORBIDDEN from generating this key. DO NOT output 'full_person_name': null.",
      "type": "string"
    },
    "address": {
      "description": "A complete physical address. MUST contain ALL FOUR: street number, street name, city and zipcode. Omit if incomplete.",
      "type": "string"
    }
  },
  "required": []
}

다음 예시에서는 출력 스키마를 보여줍니다.

{
  "properties": {
    "status": {
      "description": "Execution status indicating if entities were processed.",
      "type": "string"
    }
  },
  "type": "object"
}

생성기 구성

생성기 구성에는 AI 코치에게 항목 추출을 수행할 시기와 방법을 알려주는 상위 수준 규칙과 로직이 포함되어 있습니다. 예를 들면 다음과 같습니다.

{
  "displayName": "Address Extraction Generator",
  "instructions": [
    {
      "displayTitle": "Extract Address Update",
      "condition": "The customer's most recent message explicitly mentions an address",
      "agentAction": "N/A",
      "systemAction": "${tool:crm_update|update_member_address}"
    }
  ],
  "overarchingGuidance": "Prioritize current address over previous mentioned addresses. If unsure about address type, default to 'Permanent'."
}

데이터 전송

AI 코치가 항목 데이터를 성공적으로 추출하고 도구를 시작하면 API는 ToolCall 객체의 결과를 백엔드 시스템에 전달합니다. 이 데이터 전송은 다음 구성요소로 구성됩니다.

  • 필드: 수집된 데이터는 메시지의 inputParameters 섹션에서 인코딩됩니다.
  • 구조: 백엔드 시스템이 이 toolCall 객체를 수신하도록 설정됩니다. 시스템은 inputParameters를 사용하고 이를 해당 필드에 매핑하여 데이터베이스를 업데이트합니다. 이 구조는 GeneratorSuggestion의 toolCall 필드에 인코딩됩니다.

예

다음 표는 고객과 상담사 간의 실시간 상호작용을 보여줍니다. 마지막 열은 AI 코치가 고객 발화를 분석하여 상담사를 안내하는 방법을 보여줍니다.

Turn 역할 발화 AI 코치 로직 및 작업
1 고객 "안녕하세요. 최근에 이사해서 주소를 업데이트해야 합니다." 인텐트가 감지되었습니다(update_address).
2 에이전트 "네. 제가 도와드릴게요. 새 주소가 어떻게 되나요?" --
3 고객 "텍사스주 오스틴의 123 Main Street입니다." 분석: 도로명, 시/군/구, 시/도를 감지합니다. 의견: '우편번호가 누락되었습니다. 고객에게 우편번호를 요청합니다."
4 에이전트 'Got it. 해당 위치의 우편번호는 무엇인가요?" --
5 고객 "78701입니다." 분석: 필수 항목이 완료되었습니다. 시스템 작업: update_member_address 도구를 트리거합니다. 데이터는 `inputParameters`로 반환됩니다.
6 에이전트 "좋습니다. 영구 주소를 123 Main Street, Austin, TX 78701로 업데이트했습니다." 상담사가 CRM에서 자동 입력된 양식을 확인합니다.

상호작용의 주요 내용은 다음과 같습니다.

  • 의도 감지: 대화 1에서 AI 코치는 고객의 목표(주소 업데이트)를 즉시 파악합니다.
  • 분석 및 코칭: 3단계에서 AI 코치는 우편번호가 누락되었다고 판단하고 상담사가 우편번호를 수집하도록 피드백을 보냅니다.
  • 자동 작업: 5번째 대화에서 필요한 모든 항목이 수집되면 AI 코치가 시스템 도구를 활성화합니다. 이렇게 하면 데이터가 CRM으로 직접 전송되므로 상담사가 데이터베이스에 주소를 수동으로 입력할 필요가 없습니다.

전반적인 가이드

AI 코치에는 전반적인 가이드라는 구성 가능한 프롬프트 섹션이 추가되어 모든 데이터 추출에 적용되는 전역 규칙을 설정할 수 있습니다. 이 포괄적인 가이드라인에는 다음 세부정보가 명시되어 있습니다.

  • 용어집: 용어의 의미를 정의할 수 있습니다. 예를 들어 시행일을 변경사항이 적용되는 날로 정의합니다.
  • 사고 과정: AI 코치에게 특정 추론 단계를 수행하도록 지시할 수 있습니다(예: 조치를 취하기 전에 마지막 5번의 대화를 되돌아보고 이름과 숫자를 확인).

구현 계획

AI 코치 항목 추출 기능을 성공적으로 배포하려면 다음 단계를 따르세요. 첫 번째 단계는 설정입니다.

  1. 도구를 만들고 캡처하려는 모든 주요 데이터의 스키마를 정의합니다.
  2. AI 코치를 활성화해야 하는 대략적인 의도를 지정합니다. 예를 들어 고객이 주소 업데이트를 원함이라고 입력합니다. 시스템 작업도 정의합니다.

두 번째 단계는 테스트 및 개선입니다.

  1. 실제 스크립트를 사용하여 트리거를 좁히고 거짓양성을 줄입니다.
  2. 고객에게 필요한 정보가 누락된 경우 에이전트가 취해야 할 조치를 요청 사항에 추가합니다.
  3. 수집된 데이터가 고객 대화에서 inputParameters을(를) 통해 CRM 또는 기타 시스템으로 올바르게 전달되는지 확인합니다.

AI 코치 출력 언어

AI 코치가 지정된 출력 언어로 추천을 생성합니다. 출력 언어가 지정되지 않은 경우 모델이 추천의 출력 언어를 결정합니다.

AI 코치 출력

AI 코치는 다음 결과 중 하나 또는 둘 다를 반환합니다.

  • 적용 가능한 안내: 적용 가능한 여러 안내가 반환될 수 있으며 각 안내에는 표시 제목과 세부정보가 있습니다.

  • 샘플 대답: AI 코치는 상담사가 대화에서 어떻게 대답할 수 있는지에 대한 샘플도 생성합니다. 이러한 샘플 대답은 요청 사항, 대화 컨텍스트, 수집된 데이터를 기반으로 합니다. 샘플 응답은 비어 있을 수도 있습니다.

품질 개선

AI 코치 요청 사항을 작성할 때 다음 권장사항을 따르면 샘플 대답의 품질을 개선할 수 있지만 AI 코치가 예상치 못한 제안을 하는 것을 방지할 수는 없습니다.

세부정보 표시를 위한 텍스트 서식 지정

마크다운 문법을 사용하여 서식 있는 형식(링크, 텍스트 굵게 표시 등)으로 세부정보를 표시합니다. 이는 Google Cloud 콘솔 시뮬레이터에서 렌더링되지만 웹 인터페이스에서 구현하는 데도 도움이 됩니다.

에이전트 작업의 텍스트 서식 지정

AI 코치가 특정 단계나 요구사항을 자주 놓치는 경우 굵은 텍스트를 사용하여 모델이 특정 텍스트에 더 주의를 기울이도록 안내합니다. 마크다운 문법을 사용하여 텍스트를 굵게 표시하려면 텍스트 양쪽에 별표 두 개를 추가합니다.

display_title: order cancellation
display_detail:
 cancellation policy: [list policies]
 look up `[order number]` in ordering system
 how to cancel an order [list steps]
condition: the customer wants to cancel an order
agent_action:
1. ask the customer for the order number
2. **ask the customer why they want to cancel the order**
3. inform the customer you are working on the cancellation
4. inform the customer that you have canceled the order
5. inform the customer that they will receive the refund in 5-7 business days

예를 들어 에이전트 작업의 모든 단계가 굵게 표시되면 텍스트 굵게 표시의 효과가 떨어집니다. 따라서 이 기법은 가급적 사용하지 마세요.

구체적인 예시 추가

AI 코치가 예상한 샘플 대답을 제공하지 못하는 경우 에이전트 작업에 원하는 대답의 예시를 추가하면 도움이 될 수 있습니다. 다음 세부 예시는 가벼운 예시(강조 표시됨)를 사용하는 방법을 보여줍니다.

display_title: smartwatch recommendation
display_detail: see `Smartwatch Catalog` for a relevant smartwatch
condition: the customer recently purchased phones
agent action:
recommend a specific smartwatch from the section titled "Smartwatch Catalog"; the recommendation should match the recently purchased phones from the section titled "Recent Purchases".
Following are some examples:
- For Galaxy phones, recommend Galaxy watch.
- For iPhones, recommend Apple Watch.
- For Pixel phones, recommend Pixel Watch. 
- For other phones, recommend Fitbit Sense.

가벼운 예시가 없다면 AI 코치는 Android용 Apple Watch를 제안하거나 사용 가능한 모든 스마트시계를 나열할 것입니다. 가벼운 예시를 사용하면 제안이 정확합니다.

메시지 템플릿

생성된 샘플 대답의 문구와 형식을 제어하려면 에이전트 작업에 메시지 템플릿이나 정적 고정 메시지를 추가합니다. 간단한 예시와 달리 이 템플릿은 샘플 응답에 사용해야 하는 정확한 문구를 나타냅니다. 다음은 메시지 템플릿이 강조 표시된 예시입니다.

display_title: bill explanation
display_detail:
 look up `[account number]`
 check `Recent Bills` to compare amounts
 https://www.[company name].com/promos
condition: the customer wonders why the bill is getting higher this month
agent_action:
1. ask the customer for the account number. use this fixed message for sample responses: "May I have your account number, please?"
2. compare the bills in the last two months from the section titled "Recent Bills" and inform the customer of the extra charge. use this template for sample responses: "Compared with last month, this month you have an extra charge for ..., which costs ..."

가이드 추론

하나 이상의 요청 사항에 목표가 지정되어 있지만 단계가 충분하지 않거나 목표를 달성하기 위한 숨겨진 추론이 명확하지 않은 경우 명확성을 위해 단계를 수정합니다. 예를 들어 상담사가 제품을 추천하라는 지시를 받으면 추천 제품이 대화와 관련이 있어야 합니다. 대화 컨텍스트를 참조하는 에이전트 작업의 시작 부분에 하위 할 일을 추가하여 AI 코치가 관련성 있는 제안을 하도록 지원합니다.

display_title: cross-selling
display_detail: sample response
condition: the customer is inquiring about product availability
agent_action:
summarize to the customer what product you have been discussing, then recommend a relevant product from the section titled "Product Recommendation" and provide a brief explanation of how the two products are relevant to each other. Use this template for sample responses: "Since we've been talking about ..., I'd like to recommend ... because ...".

이 예시에서 주요 작업은 대화와 관련된 제품을 추천하는 것입니다. AI 코치가 요점을 놓치고 제품 추천 섹션에 나열된 첫 번째 제품을 추천할 수 있습니다. 하위 작업을 추가하면 관련성이 크게 향상될 수 있습니다. 또한 하위 작업 결과가 샘플 대답에 자연스럽게 맞도록 에이전트 작업 끝에 메시지 템플릿을 추가합니다.

추천 중복 삭제 추가

AI 코치 추천 중복 삭제 기능은 상담사에게 중복되거나 매우 유사한 추천이 표시되지 않도록 합니다. 생성기 프로토의 SuggestionDedupingConfig 필드를 사용하여 제안 구성요소(안내, 샘플 대답 등)를 최근 제안 기록과 비교합니다. 구성 가능한 기준점을 사용하여 유사성의 민감도를 조정할 수 있습니다. DuplicateCheckResult 메시지는 추천 응답 내에서 중복 삭제 검사 결과를 제공합니다.

추천 중복 삭제 구성

AI 코치의 중복 제안을 관리하려면 생성기 구성 내에서 SuggestionDedupingConfig를 구성하세요.

구성 필드

SuggestionDedupingConfig에는 다음과 같은 필드가 있습니다.

  • enable_deduping: 추천 중복 삭제 기능을 사용 설정하려면 이 불리언 필드를 true로 설정합니다. false로 설정하거나 설정하지 않으면 중복 삭제가 사용 중지됩니다. 예:

    suggestion_deduping_config {
    enable_deduping: true
    }
    
  • similarity_threshold: 특정 필드에서 유사성 기반 중복 삭제에 이 부동 소수점 수 유형 기준점을 사용합니다. 중복 삭제 프로세스에서는 유사성 점수가 이 값보다 높은 추천을 중복으로 간주합니다. 점수 범위는 0.0~1.0입니다. 이 필드를 0.0으로 설정하거나 설정하지 않으면 기본 임곗값 0.8이 사용됩니다. 예:

    suggestion_deduping_config {
    enable_deduping: true
    similarity_threshold: 0.85
    }
    

중복 삭제 작동 방식

enable_deduping가 true이면 추천을 이전 추천과 비교할 수 있습니다. 중복 삭제 프로세스는 다음 각 추천 필드의 중복을 평가합니다.

  • 안내(applicable_instructions): 기록 추천과 정확히 일치하는 항목을 확인합니다.
  • 샘플 응답(sample_responses): 현재 추천과 이전 추천 간의 유사성을 확인합니다. 중복 삭제는 유사성 점수가 유사성 기준점을 초과하는 경우 중복 결과를 플래그합니다.
  • 에이전트 작업(agent_action_suggestions): 샘플 대답과 유사하게 현재 추천과 이전 추천 간의 유사성을 확인합니다. 중복 삭제는 유사성 점수가 유사성 기준점을 초과하는 경우 중복 결과를 플래그합니다. 중복 삭제 검사 결과는 DuplicateCheckResult 메시지로 반환됩니다.

출력: DuplicateCheckResult

AgentCoachingSuggestion 메시지에는 다양한 유형의 추천(예: AgentActionSuggestion, SampleResponse)을 위한 필드가 포함되어 있습니다. 이러한 각 필드에는 기록에서 발견된 잠재적인 중복 항목에 대한 정보를 제공하는 DuplicateCheckResult 메시지가 포함됩니다. 예:

// Example within AgentActionSuggestion
message AgentActionSuggestion {
  // ... other fields ...
  DuplicateCheckResult duplicate_check_result = 3;
}

// Duplication check for the suggestion.
message DuplicateCheckResult {
  // The duplicate suggestions.
  repeated DuplicateSuggestion duplicate_suggestions = 1 [
    (google.api.field_behavior) = OUTPUT_ONLY,
    (datapol.semantic_type) = ST_NOT_REQUIRED
  ];

  // The duplicate suggestion details.
  message DuplicateSuggestion {
    // The answer record ID of the past duplicate suggestion.
    string answer_record = 1 [
      (google.api.field_behavior) = OUTPUT_ONLY,
      (datapol.semantic_type) = ST_IDENTIFYING_ID
    ];
    // Sources for the suggestion.
    Sources sources = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
    // The index of the duplicate suggestion in the past suggestion list.
    int32 suggestion_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
    // The similarity score of between the past and current suggestion.
    // This is only populated for fields using similarity checks.
    float similarity_score = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  }
}

구성 예시

예시 생성기 구성은 enable_deduping를 true로 설정하여 추천 중복 삭제 기능을 사용 설정합니다. 또한 similarity_threshold 값을 0.75로 설정합니다. 즉, 새 추천의 텍스트(샘플 응답 및 상담사 작업)가 이전 추천과 유사성 점수가 0.75 이상인 경우 중복 삭제는 이를 DuplicateCheckResult를 사용하여 중복으로 표시합니다.

# Example Generator configuration with Deduping enabled
generator {
  # ... other generator fields ...

  suggestion_deduping_config {
    enable_deduping: true
    similarity_threshold: 0.75 # Optional: Adjusts sensitivity for similarity checks
  }

  # ... rest of generator config ...
}