You can use AI to generate plot ideas, there are no legal issues per se as long as you make something own out of it.
Only downside is, AI will not give you very original ideas, it will always copy from others, existing stuff.
Easier and maybe also better, get yourself a human being and talk...