Add nodes
Add action and router nodes to a workflow, after existing nodes or after each other. Use list_nodes to find the IDs of the nodes to attach to, and router_edge_label to attach to a router branch. A new node is inserted right after the node it follows: the node that followed it there now follows the new node, still connected and with its settings, and is listed in shifted_nodes. To add a node before an existing one, set before_node_id to that node's ID: the new node takes its place, on the same branch or first in the same container, even when the workflow changed since list_nodes. Never delete and recreate a node to make room. A new router inserted before a node needs shifted_node_edge_label: the branch that node moves to, or 'default'. To add several nodes in a row, chain them by ref. A value that takes a formula is a formula when it looks like one (get(...), concat(...), ...), otherwise a literal; to store text that looks like a formula, send it as a quoted string such as 'Call now()'. A formula reads an earlier node with get('previous_node.<node id>...'), with a path list_nodes shows for that node, and a node defined earlier in the call can be named by its ref there. A valid formula is stored as written. An invalid one leaves that value empty and is returned in formula_errors with the reason: fix it with update_nodes. Nothing is written when a previous_node_ref, before_node_id or branch is unknown, before_node_id is the trigger, a ref is used twice, or a router inserted before a node has no shifted_node_edge_label.