If the shaliach, he sent to accomplish his request was successful, he should first thank H'shem for granting him his request and only then thank his agent for being a good shaliach of the Boreh Olam. pg 425
Nefesh Hachaim
The correct kavana that one should aspire to in Shmoneh Esrei is to lift his body and mind above his worldly concerns and try to connect only with the Creator in the heavens having his Tefila "emanate from the depths of his soul"
Gate Two, Chapter 14 pg 97