这是我发送文本请求的 botium.json 的一部分
"SIMPLEREST_URL": "https://******************/messaging/api/widget/request",
"SIMPLEREST_METHOD": "POST",
"SIMPLEREST_HEADERS_TEMPLATE": {"Authorization" : "Basic *****************"},
"SIMPLEREST_BODY_TEMPLATE": {
"messageType" : "TEXT",
"mediaType" : "DIGITAL",
"messageContentType": "text/plain",
"language": "en",
"sessionID": "{{{context.sessionID}}}",
"messageContent": "{{msg.messageText}}",
"sequenceID": "{{{context.sequenceID}}}",
"company": "**********",
"connector": "demo_chatbot",
"service": "demo_chatbot",
"userContext":
{
"idTokenType": "LOGIN",
"idToken": "******************"
}
},
如果我想测试按钮部分,我需要将messageType更改为USER_CHOICE,所以我的问题是:如何确保将关键字BUTTON放入我的测试文件(.convo.txt)时messageType更改为USER_CHOICE ?
谢谢