Dialogflow (이전 : API.AI)의 Small Talk를 사용하여 일반적인 요청에 대한 응답을 캐주얼로 만들자 #dialogflow
5404 단어 아피. 사랑dialogflow
API.AI의 Small Talk
API.AI에는 Small Talk라는 기능이 있습니다. Small Talk는 일반적인 질문에 대한 답변을 쉽게 사용자 정의할 수 있는 기능입니다. 예를 들어 "Who are you?"라는 질문의 대답에 대한 여러 단어를 준비할 수 있습니다. ※Small Talk로 준비하지 않은 경우는 API.AI의 디폴트의 것이 돌려주어집니다.
새로운 Agent 만들기
Small Talk
1. 왼쪽 메뉴에서 Small Talk를 선택합니다.

2.Enable을 체크합니다.
3. About agent를 엽니다.
4. "Who are you?"의 답변 후보에 "I'm small talk's test project."라고 넣습니다.

5. 끝나면 상단의 Save 버튼을 누릅니다.
6. 오른쪽의 시뮬레이터에 「Who are you?」라고 넣어, 「I'm small talk's test project.

JSON 데이터에도 제대로 기술되어 있습니다♪
response.json
{
"id": "6fc76197-8062-469b-a861-0c11dd71328e",
"timestamp": "2017-06-20T00:36:22.396Z",
"lang": "en",
"result": {
"source": "domains",
"resolvedQuery": "Who are you?",
"action": "smalltalk.agent.acquaintance",
"actionIncomplete": false,
"parameters": {},
"contexts": [],
"metadata": {},
"fulfillment": {
"speech": "I'm small talk's test project.",
"messages": [
{
"type": 0,
"speech": "I'm small talk's test project."
}
]
},
"score": 1
},
"status": {
"code": 200,
"errorType": "success"
},
"sessionId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
이렇게 일반적인 응답을 쉽게 만들 수 있습니다. 아직도 많은 응답 후보를 만들 수 있으므로 꼭 시험해보십시오 ♪
Reference
이 문제에 관하여(Dialogflow (이전 : API.AI)의 Small Talk를 사용하여 일반적인 요청에 대한 응답을 캐주얼로 만들자 #dialogflow), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/flatfisher/items/84cb8db1b6d2af71e98a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)