0
나는 최근 Lex 프로젝트에서 작업 해왔다. 내 프로젝트는 콘텐츠 유형에 동적 콘텐츠가 필요하지만 그 사실을 파악할 수는 없습니다.aws에서 contentType을 동적으로 만드는 방법 Lex
내 현재의 성취는 다음과 같습니다
"I can help you with : 1. Book a hotel 2. Book a car. What would you like me to do?"
내가 요구하는 것은 :
def HelpMsg(intent_request, intent_name):
if intent_name == 'HelpMsg':
response = {
'dialogAction': {
'type': 'Close',
'fulfillmentState': 'Fulfilled',
'message': {'contentType': 'Plaintext', 'content': 'I can help you with '
'\n1. Book a hotel '
'\n2. Book a car'
'\nWhat would you like me to do?'}
}}
return response
날이 가능한 경우 알려 :
"I can help you with:
1. Book a hotel
2. Book a car.
What would you like me to do?"
나는 아래의 코드로 시도 그렇게해라.
감사합니다.