Lyric discussion by irishfreakout 

The invisible friend is the savior mentioned in the song before. The dichotomy between the two songs (calling him a traitor vs. friend) reflects the name of the album: Friend and Foe. The title reflects the whole album's message: a struggle with understanding life and understanding god.

A "machine" is: "any mechanical or electrical device that transmits or modifies energy to perform or assist in the performance of human tasks". Being a machine is a metaphor for submitting to the will of his savior and act on behalf of him. By being a machine or tool of his savior, he gains meaning ("to be wanted, to be useful")

An error occured.