Robin Williams is set to star in a new US television sitcom Crazy Ones.

CBS has ordered a pilot episode of the show which will focus on a father and daughter who work together at an advertising firm.

If picked up to series, the show will mark Williams' first regular small-screen role 30 years after he starred for four seasons on ABC's Mork & Mindy.

The comedy has been created by Ally McBeal's David E Kelly and Modern Family's Jason Wioner will direct the pilot episode.