In the race setup screen, you can press the "add AI driver" button at the top left. Or you can use the command /ai to spawn one, and /spec name to spectate an AI driver called "name"-