To unlock the Artificial Intelligence trophy in Red Dead Redemption 2 you need to complete the three Stranger missions involving Marko Dragic, not a straight forward task as you rarely have cause to go anywhere near the mission spawn points. You won't get to meet him until Chapter 4, but don't worry -- he hangs around after the conclusion of the main story line.
First off you need to head to a park with a lake in Saint Denis, near the A of SAINT DENIS on your map. Approach the stranger with some equipment set up by the edge of the lake to start the mission, in which you need to destroy a bunch of toy boats with another toy boat.
After all that, you will have to head all the way up to the north of the map in a place called Dover Hill, north of Annesburg. Approach the house after night fall at least 24 hours after you finish the first mission and you should be able to enter the house. Dragic will task you with triangulating the best position for three lightning rods up on the hills. Those familiar with the Epsilon Program missions in GTA V will be at home here -- you have to follow a signal from the device in your hand to find the right spots. Place three and head back to Dragic, then head up the tower as instructed. Hit the right switch, then the left, then the middle.
After the conclusion of the second mission, you'll need to return after 48 hours in-game. This last sequence isn't a mission at all, you just discover an incident and claim the electric lantern as your reward. The trophy should pop immediately after you enter the house and witness what there is to witness.