Versions Compared

Key

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

...

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.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 cause the Flow Manager to backup to the previous question

...

  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.  

  • Review this experience with a BMI Calculator hook event within an open-text chatbot.

http://orbita.ai

Related Content

3.3.6 Changing Flows