Let $G$ be a Lie group. Recall the standard construction of a left invariant metric on $G$:
Let $\langle,\rangle_e$ be an (arbitrary) inner product on $T_eG$ and define, for $u,v \in T_xG$, $\langle u , v\rangle_x = \langle (dL_{x^{-1}})_xu , (dL_{x^{-1}})_xv\rangle_e $ , where $L_g$:$G\rightarrow G$ denotes left multiplication by $g$.
How to prove that this construction produces a smooth metric?
A natural approach is to show that the map $f(x,v)= (dL_{x^{-1}})_x(v)$ is smooth: The map $F:G\times G \to G$ given by $F(x,y)=xy$ satisfies $dF((x,u),(y,v))=(dL_{x})_y(v)+(dR_y)_x(u)$. Embed $TG$ in $T(G\times G)\cong TG \times TG$ via $(x,v)\mapsto ((x^{-1},0),(x,v))$. The composition $TG \hookrightarrow T(G \times G) \to TG$ is smooth and gives the desired map $$(x,v)\mapsto ((x^{-1},0),(x,v))\mapsto (dL_{x^{-1}})_x (v).$$
Now, given vector fields $X$ and $Y$, we have a smooth map $G \to \mathbb{R}$ given by $x\mapsto \langle X(x),Y(x)\rangle_x=\langle \phi\circ X(x), \phi \circ Y(x)\rangle_e$. (Note that restricting the codomain of the composition from $TG$ down to $T_e G$ results in a smooth map because $T_e G$ is an embedded submanifold of $TG$; see the comments below.)