Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a dynamic schema, name it, and include the fields “flowid”, “sessionid”, and “flowdata”. See, How do I create a schemaSchemas?

The following sample schema is a template that allows you to save data of a partially completed flow studio.

...

Sample URL (with flowid and sessionid): https://yourdomain.orbita.cloud:8443/oeapi/bot/myfirstchatbot?flowId=5c1190a401bc681000d6698b&sessionId=:5a158f6422d2ab0f0036df81:c6388e6b-c0f7-4b0e-828f-2c665557a4cf

...

Code Block
var _ = global.get('lodash');


if(_.get(msg, 'payload.originalDetectIntentRequest.payload.flowIDflowId', undefined)){
    msg.payload.flowId = _.get(msg, 'payload.originalDetectIntentRequest.payload.flowIDflowId', '');
}
else{
    msg.payload.flowId = ''; // Place your flow id here 
}
var sessionId = _.get(msg, 'payload.originalDetectIntentRequest.payload.sessionId', null)

if (sessionId){
    _.set(msg, 'payload.sessionId', sessionId);
}
return msg;

...

Code Block
var _ = global.get('lodash');

var flowContent = _.get(msg, 'data.dynamicData.result.0.flowdata', null);

if (flowContent && flowContent.flowInfo) {
 _.set(msg, 'orbita.session.flowInfo', flowContent.flowInfo)   
}

return msg;

Save partial Flow studio data

...

Filter by label (Content by label)
experience-designer flow-studio
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@130ff
showSpacefalse
sortmodified
typeshowSpacepagefalse
reversetruelabels
typepage
cqllabel in ( "experience-designer" , "flow-studio" ) and type = "page" and space = "OCS"
labelsexperience-designer flow-studio