이 기사를 통해 Apex Wrapper 클래스를 이용하여 Bot 대화에서 최종 사용자가 선택한 기사 답변을 저장하는 방법을 이해할 수 있습니다.
Answer Selected Result 개체는 다른 구조를 가지고 있으므로 Apex 클래스에 전달하거나 Knowledge_kav 개체에 매핑할 수 없습니다.
Answer Selected Result 개체의 구조는 다음과 같습니다.
{
"question": "abc",
"answer": "test",
"confidence": 0.817549,
"id": "kaQ1q0000008OJXEA2",
"title": "test",
"type": "FAQ"
}
개체 생성 및 Apex 클래스에 선택된 변수를 전달하는 방법을 설명하는 예시 :
클래스 예시 생성
public class objectArt {
public string question;
public string answer;
public double confidence;
public string id;
public string title;
public string type;
}
그리고 호출 가능한 변수에서 이 개체를 사용하는 예시:
public class Requests {
@InvocableVariable(label='Records for Input' description='yourDescription' required=true)
public objectArt article;
}
그러면 Answer Selected Result 개체가 성공적으로 매핑되고 선택된 Knowledge의 ID에 액세스할 수 있습니다.
호출 가능한 메서드는 입력으로 이 호출 가능한 변수를 받아야 합니다. 예를 들어,
@InvocableMethod(label='Get article')
public static List<Results> getSkillId(List<Requests> sobj) {....}
다음 관련 도움말 기사를 검토해 보세요.
Einstein Bots 시스템 제한 사항(Apex 작업 시간 제한 - 10초)
003789771

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.