The immune system sends helper T cells (CD4+ T cells) when it detects specific types of antigens on the surface of non-self-cells that have invaded the body.
Killer T cells (CD8+ cells) are activated to attack specific tumor cells and certain viruses and parasites whose surface antigens they recognize
Regulatory T cells perform a slightly different function, protecting against self-cells that mistakenly attack certain body tissues in autoimmune disease.
Having detaching the invader by its shape, it sends either the killer T cells or helper T cells to attack.
Helper T cells release cytokines to the rest of the immune system. So your body produces "weapons" to fight bacteria, viruses or parasites that have entered.
Killer T cells will kill virus-infected cells directly.