We need to make the nodeFuntionId optional, to reference a flow input, and we also need add a parameterIndex and inputIndex