Hello, It s not really a technical question, or not strictly one, but I am looking for a way to implement a proper way to have a 3/4 people conversation with 3 ai and 1 player.
So I recently tried some prototype for a game where the player would talk to 2 instances of ChatGPT with their own personality and their own background.
It turned into a mess, although it pretty funny, the AI get confused with who they are and who they talk to all the to. They very often switch role or try to answer to themselves.
I basically set it up this way
NPC 1 →
“system” prompt giving him the background and game instruction
“system” prompt giving it a personality and motive.
NPC 2 →
“system” prompt giving him the background and game instruction
“system” prompt giving it a personality and motive.
Player →
just talking with a “user” prompt
The system prompt basically say like write in who you are talking to alongside the background and the personality, name, etc… of that character.
Now each NPC hold their own list of messages of the whole conversion, starting with their 2 system message, their own message flagged as “assistant” and the message from the other users flagges as “user”
When NPC 2 talk, NPC 1 will receive the message with the role “user” and starting with “NPC 2 said message…”.
When NPC 1 talk, NPC 2 will receive the message with the role “user” and starting with “NPC 1 said message…”.
When Player talk NPC 1 and NPC 2 will receive the message with the role “user” and starting with “Player said message…”.
How would you do it ? Is there any proper way to do this ? It looks like openAi is strictly made for 1 on 1 conversation and there is no clear way to use it for conversation. Maybe there is some stuff in the doc or service to do it ?