Recording player driven character animation for playback by NPC

I’d like to be able to populate our game world with NPC characters who look like they’re doing similar actions to the player controlled character but are purely animation driven. Is there a way to record our input on a player driven character, save that out and then apply that to NPC’s as a quick and inexpensive way of achieving this?

Thanks.