Interactions in Abelian and Yang-Mills theories