They can only be named in community levels. When making a community level, click "Change players" then click the "edit" button next to each AI and you'll see a box to type their name.
Before posting, please proofread to ensure your post uses proper grammar and is free of spelling mistakes or typos. If you're asking a question about a specific game, please provide a link to that game in your post.