With each external line one has to assoicate the following factors.
Spin 1/2: For each fermion or antifermion line entering the graph include the spinor
and for spin-1/2 particles leaving the graph, the spinor
Spin 0: For each boson assign a factor
Photons: For each photon entering the graph include a polarization vector
and for photons leaving the graph the vector