There is a detailed guide.
How to create Windows 10 answer file
https://www.windowscentral.com/how-create-unattended-media-do-automated-installation-windows-10
Note the disk configuration part. If you have a computer using UEFI, move to the next part for UEFI answer file configuration
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Please
mark the reply as an answer if you find it is helpful.