The draggable canvas

Updated at:

The draggable canvas is a visual tool for designing conversation flows. It clearly displays the business logic and provides a flexible, readable, and organized structure.

Connection definition

A connection represents a transition in the conversation flow. The conversation flow proceeds along a connection when the conditions of the upstream node are met.

How to connect nodes

To create a connection, click the blue point on a node and drag it to the blue point on another node.

  • Sequential connections

The conversation flow follows the connections sequentially.

QQ20180831-113401-HD.gif | center | 409x506

  • Loopback connections

As shown in the figure, this connection enables a user to repeatedly state their intent and change the fruit parameter.

7.gif | center | 533x575

  • Branching connections

As shown in the figure, the conversation flow branches at this point. The conditions defined for each branch determine which path the flow takes.

8.gif | center | 423x487

Connection rules

  • User input node

A user input node can have multiple incoming connections but only one outgoing connection.

Upstream: Can be connected from a response node only.

Downstream: Can connect to a response node, slot filling node, or function node. Cannot connect to a user input node.

  • Slot filling node

A slot filling node can have multiple incoming and outgoing connections.

Upstream: Can be connected from a user input node, function node, or slot filling node. Cannot be connected from a response node.

Downstream: Can connect to a function node, response node, or slot filling node. Cannot connect to a user input node.

  • Function node

A function node can have multiple incoming and outgoing connections.

Upstream: Can be connected from a user input node, function node, or slot filling node. Cannot be connected from a response node.

Downstream: Can connect to a function node, response node, or slot filling node. Cannot connect to a user input node.

  • Response node

A response node can have multiple incoming and outgoing connections.

Upstream: Can be connected from a user input node, function node, or slot filling node. Cannot be connected from a response node.

Downstream: Connects to user input nodes. Does not connect to response nodes, function nodes, or slot filling nodes.