The Assign Ticket to the First Responder default workflow automator under Admin > Automation & Productivity > Automation > Workflow Automator ensures that the most recent responding agent is automatically assigned to the ticket.
How can I assign a ticket to the last responding agent automatically?