You can often get a lot of node help by selecting the node in the flow, then clicking on the help button in the menu.
In the case of the SMB node, you can see from the following screen shot that you can dynamically set the file name by using the flow variable ‘filename’.