The chatbot script is stored as a serialized JSON string. The root element is an array of objects representing the description of the instanced block.
Parameter | Data type | Description | Built-in | Custom | |
---|---|---|---|---|---|
n | Integer | Sequence number of the block in the script (ID) | |||
block | string | Block name (its type) | For example: "print" | The name is prefixed with "CUSTOM___" | |
params | String(JSON) | Block data object (block field values) | |||
out | String(JSON) | Sockets (connections to next blocks) |
You can get the block diagram using the bot.block.schema.get method, but you should pay attention to blocks with dynamic outputs (such as menus).