You can generate an OTP using the OTP Manager node.
Name - This field contains the name of the node (if given).
Digit - Specify how many digits the OTP should contain.
Type - You can choose between number, alphabet, or alphanumeric OTPs.
The output of the OTP manager node will be in the property msg.payload.otp