adds text and agent name