Getting Applications location in Automator
Add an AppleScript step which contains:

on run {input, parameters}

    set p to POSIX path of (path to me)
    return {p}

    return input
end run


From there, you can use the "p" parameter.