Get agent name when raise ticket and closed ticket

I integrate the bot with salesforce live chat. However, I’m not sure how to get the agent name when raise ticket or when the ticket is closed. someone know where should I get the agent name?