SAP Conversational AI Webhook列表响应

2020-08-15 20:52发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)专家您好, 我是SAP对话AI...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


专家您好,

我是SAP对话AI的新手。 但是我为我的第一个机器人感到非常兴奋。

我有一个Webhook,应该将列表返回给机器人。 据我从文件中了解到,我应该返回类似的内容。 {

"回复":[
     {
       " Type":"列表",
       "内容":{
         "元素":[
           {
             " title":" CreatedBy",
             " imageUrl":"链接到这里",
             "副标题":"巴塞尔",
             "纽扣": []
           }
         ],
         "纽扣": []
       }
     }
   ]
 }
 

但是我在机器人上遇到了这个问题

,内存为:

 {
   " nlp":{
     " uuid":" 729bf813-4dc9-42cf-95c1-518bc3a1774b",
     "意图":[
       {
         " slug":" queryticket",
         "信心":0.99,
         " description":"询问特定票证"
       }
     ],
     "实体":{
       "提示":[
         {
           "值":" 1575088166542",
           " raw":" 1575088166542",
           "信心":0.64
         }
       ]
     },
     " language":" en",
     " processing_language":" zh",
     " version":" 1909.0.3",
     " timestamp":" 2019-11-11T19:35:21.473540 + 00:00",
     "状态":200,
     "来源":"搜索票1575088166542",
     " act":" command",
     "类型":null,
     "感悟":"中立"
   },
   " qna":{},
   "消息":[
     {
       " Type":"列表",
       "内容":{
         "元素":[
           {
             " title":" U_CreatedBy",
             " imageUrl":" https://image.shutterstock.com/image-photo/colorful-flower-on-dark-tropical-260nw-721703848.jpg",
             "副标题":"巴塞尔",
             "纽扣": []
           }
         ],
         "纽扣": []
       }
     }
   ],
   "会话":{
     " id":" test-1573500875239",
     " language":" en",
     "内存":{
       "票号": {
         "值":" 1575088166542",
         " raw":" 1575088166542",
         "信心":0.64
       }
     },
     " skill":" searchticket",
     " skill_occurences":1
   },
   "日志":{
     " input":" search ticket 1575088166542",
     "日志":[
       {
         " level":" info",
         " code":" I_SKILL_TRIGGERED",
         "数据":{
           " skill_id":" 09357818-14e8-48a3-b881-dad2df48b567",
           " reason":" TRIGGERS_OK",
           " message":"技能searchTicket已被触发"
         },
         "时间戳":" 2019-11-11T19:35:21.000Z"
       },
       {
         " level":" info",
         " code":" I_REQUIREMENT_FULFILLED",
         "数据":{
           " requirement_id":" 6440f0bd-9278-4c4a-bb9a-0dc3d40c7c21",
           " requirement_name":"票号",
           "值":{
             "值":" 1575088166542",
             " raw":" 1575088166542",
             "信心":0.64
           },
           " message":"要求TicketNumber已通过{\" value \" => \" 1575088166542 \",\" raw \" => \" 1575088166542 \",\" confidence \" => 0.64}来满足
         },
         "时间戳":" 2019-11-11T19:35:21.000Z"
       },
       {
         " level":" info",
         " code":" I_REQUIREMENTS_OK",
         "数据":{
           " skill_id":" 09357818-14e8-48a3-b881-dad2df48b567",
           " message":"技能搜索要求已通过票证,正在执行操作"
         },
         "时间戳":" 2019-11-11T19:35:21.000Z"
       },
       {
         " level":" info",
         "代码":" I_EXECUTE_ACTION",
         "数据":{
           " type":" http",
           "值":{
             "消息":[
               {
                 " Type":"列表",
                 "内容":{
                   "元素":[
                     {
                       " title":" U_CreatedBy",
                       " imageUrl":" https://image.shutterstock.com/image-photo/colorful-flower-on-dark-tropical-260nw-721703848.jpg",
                       "副标题":"巴塞尔",
                       "纽扣": []
                     }
                   ],
                   "纽扣": []
                 }
               }
             ],
             "后备":空
           }
         },
         "时间戳记":" 2019-11-11T19:35:26.000Z"
       }
     ]
   },
   " hasDelay":是的,
   " hasNextMessage":false
 } 

有人可以告诉我我在做什么错吗?

提前谢谢。

(9.5 kB)
8条回答
Climb_Ma
2020-08-15 21:16

您是否尝试过编写"类型"而不是"类型"? 我认为这段代码区分大小写。

一周热门 更多>