Flow Action Summarize is not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
18 hours ago
We got OOB - 'Summarize' flow action which just takes the string input and expected to return summary of the string as output. But for some reason the action is not working and always returning error:
Error: Cannot read property "provider" from undefined,Detail: Cannot read property "provider" from undefined
Here is the script within action:
(function execute(inputs, outputs) {
// ... code ...
var request = {
"executionRequests": [
{
"payload": {
"textToSummarize" : inputs['textToSummarize']
},
"capabilityId": "02def939533121106b38ddeeff7b1237"
}
]
};
var output = sn_one_extend.OneExtendUtil.execute(request);
var capabilityResponse = output["capabilities"]["02def939533121106b38ddeeff7b1237"];
outputs['provider'] = capabilityResponse["provider"];
outputs['error'] = capabilityResponse["error"];
outputs['response'] = capabilityResponse["response"];
outputs['status'] = capabilityResponse["status"];
})(inputs, outputs);
I have also added the log statement to see what is being returned as output. Here is that:
{"requestPayload":{},"meta":null,"status":"error","completedAt":null,"planId":null,"transactionId":null,"capabilities":{},"startedAt":null,"message":"Plan invalid or not created."}
Could someone help me with what does this error say and how to troubleshoot it further.
FYI., we have the capability (Summarize) with mentioned sys_id, i.e., 02def939533121106b38ddeeff7b1237.
I have also added the log statement to see what is being returned as output. Here is that:
{"requestPayload":{},"meta":null,"status":"error","completedAt":null,"planId":null,"transactionId":null,"capabilities":{},"startedAt":null,"message":"Plan invalid or not created."}
Could someone help me with what does this error say and how to troubleshoot it further.
FYI., we have the capability (Summarize) with mentioned sys_id, i.e., 02def939533121106b38ddeeff7b1237.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Wahidb
Refer this KB for Resolution. STEPS are given in KB-> KB2460400.
Issue
Flow action "Summarize" is throwing error "Error: Cannot read property "provider" from undefined".
Regards
RP