Data types
There are different data types and structures used in the workflow editor that builders should be aware of. A node's inputs will often expect data of a specific type or structure. Sometimes the workflow runtime is able to convert types gracefully however, it may error or not work as expected if the wrong data type is provided as input.
The documentation page for each node shows the expected data types for each of its inputs and outputs. If the node can accept any data type, it will say Any
.
Your workflow may have errors or not work as expected if you provide an input of incorrect data type to a node.
Primitive Data Types
Text
A string of text data, can be markdown formatted, by using the Text node and AI Write operation, or simply raw text by using the Plain Text node.
Number
Used in numerical operations such as with formula nodes as well as for list indexing.
Boolean
A true
or false
value. Used in logical operations like comparisons, and for branching with the If node.
Data structures
List
An ordered list of elements, elements can be of any type. You can iterate over a list with the For Each node,
where key
is the list index and element
is the list item. There a number of nodes providing common list operations.
Dictionary
A data structure composed of key value pairs. Keys must be unique.
File
Contains a reference to a file from your Library. For example, Find Library Files will output a list of File references. A File Reference can be passed into any document reading nodes.
{
"id": "library-file-id",
"name" : "library-file-name"
}