Automator: Get filename
Try something like this:



Transcript:


Folder action receives files and folders to Downloads(default Folder Action script)
Run Applescript:

on run {input, parameters}
    tell application "Finder"
        set filename to name of file input
    end tell
end run
Set value of Variable: fileName
Ask for Confirmation:
Title: Alert! The file fileName has been downloaded!
Body: A new file has downloaded


So if I add a file named "NewFile.png", I get: