adding variable to name of Devonthink appleScript

I am VERY new to, AS but have had luck in general modifying existing scripts to do what I need to. Right now, I am trying to exert a file to devonthink (which I have a script that works to do that), but hoping I can alter the name of the script based on a tag that I have added to the file.
I can't figure out if this is possible or not.
Where it says "create location" . .. . {input attributes} would ideally be the name of the (first?) tag in the file name.
tell application id "com.devon-technologies.thinkpro2"
launch
set theDatabase to open database "/Users/russell/Docs-DO NOT SYNC/Devon Think/Statements (locked).dtBase2"
set theGroup to create location "Statements (locked)/{inputAttributes}" in theDatabase
import theFile to theGroup
end tell
Obviously this will just create a folder called "Statements (locked)/{inputAttributes}", as opposed to using the variable, which isn't helpful
I did click the "Add any attributes to be imported into this script" and selected "Tags", I just can't figure out how to actually get the tag into the script, particularly into the correct section of the script.
I can't figure out if this is possible or not.
Where it says "create location" . .. . {input attributes} would ideally be the name of the (first?) tag in the file name.
tell application id "com.devon-technologies.thinkpro2"
launch
set theDatabase to open database "/Users/russell/Docs-DO NOT SYNC/Devon Think/Statements (locked).dtBase2"
set theGroup to create location "Statements (locked)/{inputAttributes}" in theDatabase
import theFile to theGroup
end tell
Obviously this will just create a folder called "Statements (locked)/{inputAttributes}", as opposed to using the variable, which isn't helpful

I did click the "Add any attributes to be imported into this script" and selected "Tags", I just can't figure out how to actually get the tag into the script, particularly into the correct section of the script.