inspired by ai sponge.
https://www.youtube.com/watch?v=XrYNB16SNQQ
create an empty game object and add the AIThing script to it.
insert the keys and stuff in the script's corresponding input boxes.
If you want the camera to follow the characters as they talk create a Cinemachine camera and call the characters gameobject's the same as they're called in the Generate method in AIThing.cs
for subtitles and video player to work create a canvas and add a textmeshpro and video player as children to the canvas. set the video player's render mode to Camera Near Plane and put the camera in the camera field.