Versions Compared

Key

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

Flow Manager Node

You must set up the Experience Designer to invoke Flow Studio Flows using the Flow Manager node. This is a one-time setup.

The following image contains a flow in Experience Designer, which uses the flow from Flow Studio. The Flow Manager node calls the flow in the previous image from the Flow Studio. A Hook Data node to call on Hook event functions.

...

Repeat

AMAZON.RepeatIntent

Will cause a question to be repeated. Note if you want to interrupt a question being asked to the Flow Manager, for example asking a question that Orbita Answer can answer. Then passing the question in a session back within a session. Set the msg.payload.request.intent.name = ‘AMAZON'AMAZON.RepeatIntent’ RepeatIntent' and the question that was being asked will be repeated.

...

Code Block
{{msg.orbita.session.injectedMessageVoice}}
{{msg.payload.multiagent.voice.sayText}}

Previous

AMAZON.PreviousIntent

Will This will cause the Flow Manager to backup go back to the previous question.
A chatbot user can go to the previously answered question by saying utterances such as go back, skip back, and so on which will invoke the Inbuilt Previous Intent. Refer, https://orbita.atlassian.net/wiki/spaces/OCS/pages/1727987713/How%2Bto%2Benable%2Bgo%2Bback%2Bfeature%2Bin%2Bflow%2Bstudio

Getting started

To get started, download this JSON file, copy it to your clipboard, then import it into your project's Experience Designer using the hamburger menu in the top right corner.

...

  1. Copy the Flow ID from Flow Studio.

  2. Paste the Flow Id in the Edit Flow Manager node settings tab.

    Best practice: Use {{msg.payload.flowId}} (that is, a mustache tag), so you can dynamically load the flow. In most cases, you have only one flow manager in a project, but there is no restriction on the number of flow managers.

  3. Enable No Save to not save data to the Orbita database. Disable No Save to send the data to the Orbita database. By default, Orbita saves the flow result data.
    To access the data that is saved to Orbita,

    1. Go to the flow Studio list.

    2. Click on the vertical ellipses button against the preferred flow studio.

    3. Click Flow Data. The saved flow result data for this Flow Studio appears.

  4. In the Options(Single) field, specify the template to read out the choices to the user.

Programmatically jumping to anywhere in the flow

When you do not want to start at the beginning, you can jump to any control in the flow. Or you can jump to an external event that captured more information.

...

Code Block
// Control ID
case "520495394870413630": // return back to flow A from flow B
    msg.orbita.session.flowInfo = msg.orbita.session.saveFlowInfo;

Sample Flow

The following image shows a sample Flow studio flow.

...

 

File

Modified

File flow_manager_setup.json

Nov 11, 2019 by Rajkiran Alla

Video Content

https://cdn.orbita.cloud/assets/orbita/flowstudio/Evaluatenode.mp4

Video Key Messages

...

The evaluate function takes a value calculated from a hook event and uses mustache tags to transform it into a number.  

...

http://orbita.ai

Related Content

3.3.6 Changing Flows