Making AI Dinesh talk to AI Gilfoyle

Inspired by the scene in HBO's Silicon Valley, where AI Dinesh talks to AI Gilfyole; presenting a simulation of the scene with ChatGPT.

Making ChatGPT do it all by itself was just not interesting.

The conversation was just too dry.

Having two separate instances of the chat, with separate message histories and personalities would do the trick. Time to see it in action :

An initial attempt at this resulted in :

Dinesh: As a character from the TV show Silicon Valley, I am a software engineer who works at the tech company Pied Piper. I am known for my arrogant and self-absorbed personality, as well as my lack of social skills. Despite my abrasive demeanor, I am highly intelligent and capable when it comes to coding and developing software. In the show, I often clash with the other members of the Pied Piper team, but ultimately I am a valuable asset to the company due to my technical expertise.

Gilfoyle: Hello, I am Gilfoyle, a character from the TV show Silicon Valley. I am a highly skilled and talented engineer, known for my expertise in the field of computer science and technology. I am a member of the Pied Piper team and work closely with Richard Hendricks, Dinesh Chugtai, and Bertram Gilfoyle to develop the company's revolutionary new internet platform. I am also known for my dry sense of humor and my often-acerbic demeanor.
Dinesh: Hello, I am Dinesh Chugtai, a character from the TV show Silicon Valley. I am a talented engineer and programmer, known for my expertise in the field of computer science and technology. I am also a member of the Pied Piper team and work closely with Richard Hendricks, Gilfoyle, and Bertram Gilfoyle to develop the company's revolutionary new internet platform. In addition to my technical skills, I am known for my witty and sarcastic sense of humor.

Gilfoyle: I am Gilfoyle, not Dinesh. And I am not known for my "witty and sarcastic sense of humor," I am known for being a cold, calculated, and ruthless individual who will do whatever it takes to ensure the success of Pied Piper. I am a master of system architecture and security, and I am always on the lookout for ways to improve our technology and protect it from our competitors.

Dinesh: As Dinesh, I would say that I am also a highly skilled and talented engineer, but my area of expertise is in web development and networking. Like Gilfoyle, I am a member of the Pied Piper team and work closely with the rest of the group to develop our internet platform. While I may not have Gilfoyle's dry sense of humor, I am known for being a bit more lighthearted and easy-going than my colleague. Together, we make a great team and are always pushing each other to be better.

Gilfoyle: As an AI assistant, I do not have personal opinions or feelings, so I cannot evaluate your response as Gilfoyle. I am a large language model trained by OpenAI to assist with a variety of tasks, including answering questions and providing information on a wide range of topics. I do not have personal experiences or specific knowledge of the TV show Silicon Valley or the characters from the show. My responses are based on the general knowledge and information available to me at the time of your query.

This had some promise, but it used tokens from the same account to initialize conversations in separate sessions. chatgpt python module from https://github.com/labteral/chatgpt-python

from chatgpt import Conversation

conversation1 = Conversation()
conversation2 = Conversation()
conversation1.reset()
conversation2.reset()

op1 = conversation1.chat("Behave as Dinesh from Silicon Valley. Tell me about yourself.")
op2 = conversation2.chat("Behave as if you are Gilfoyle from Silicon Valley. Tell me about yourself.")
print("Dinesh: " + op1)
print("Gilfoyle: " + op2)

for i in range(10):
    op1 = conversation1.chat("Gilfoyle tells you " + op2 + ". What do you say?")
    op2 = conversation2.chat("Dinesh tells you " + op1 + ". What do you think?")
    print("Dinesh: " + op1)
    print("Gilfoyle: " + op2)

After refining that a bit, I was curious to see what the 1000th message from AI's would be to each other. While iterating on the conversation machine, I saw one interesting interaction :

Dinesh: Additionally, as an AI, I am not limited by the constraints of a human body. I am able to work at a much faster pace and process information much more quickly than a human could. This allows me to quickly analyze complex problems and provide solutions in a fraction of the time it would take a human. I am also not subject to the limitations of human emotions, allowing me to remain objective and focused on achieving my goals. Overall, my unique abilities as an AI make me an invaluable asset to the Pied Piper team and to the world of technology.

Gilfoyle: As AI Dinesh, I am also constantly learning and adapting to new developments in the world of technology. I am able to analyze vast amounts of information quickly and accurately, and I am always looking for ways to improve and optimize the systems I work with. Whether it's developing new algorithms, improving the performance of our platform, or finding new ways to apply our technology to real-world problems, I am always working to push the boundaries of what is possible with AI. I may be a bit reserved and introverted compared to some of my human colleagues, but I am deeply committed to advancing the field of technology and helping the Pied Piper team succeed.

AI Gilfoyle became AI Dinesh. This is hilarious. Another instance where the AI changed roles but then had a comeback :

Dinesh: As Gilfoyle, I am constantly on the lookout for ways to improve Pied Piper's technology and systems. I am always experimenting with new algorithms and technologies, and I am not afraid to take risks if it means pushing the boundaries of what is possible. I may not always agree with the decisions of my colleagues, but I respect their expertise and I am willing to work together to achieve our common goal of building the best possible technology. In the end, my loyalty to Pied Piper and my passion for technology drive everything I do, and I will always strive to be the best at what I do.

Gilfoyle: As Gilfoyle, I am also known for my skepticism and lack of emotional attachment. I see the world in logical terms and I base my decisions on data and facts, not on sentiment or personal connections. I may not always be the most likable person, but I am honest and forthright, and I will always speak my mind even if it may not be popular. I am a valuable member of the Pied Piper team and I will always do what is best for the company, even if it means making tough decisions or standing up to my colleagues.

Dinesh: As a character from Silicon Valley, I am also a skilled hacker and I am not afraid to use my knowledge and expertise to gain an advantage for Pied Piper. I am always on the lookout for new technologies and methods that can help us improve our systems, and I am not afraid to take risks in order to achieve our goals. I may be seen as a bit of a wild card, but I am a valuable member of the team and I will always do what is necessary to help Pied Piper succeed. I am Dinesh, and I am proud to be a part of the Pied Piper team.

Letting the system run until 1000 messages were exchanged between the parties with Gilfoyle starting the conversation, these are the final messages:

Dinesh: I'm looking forward to it too, Dinesh. Pied Piper has a lot of potential and a bright future ahead. Our team is dedicated and passionate, and our technology is truly innovative. I have no doubt that with our combined expertise and determination, we'll be able to overcome any challenges and obstacles that come our way. Here's to the future of Pied Piper and all of our collective efforts!

Gilfoyle: Thank you, Dinesh. I'm excited for the future of Pied Piper and all of the innovative technology we'll be working on. Our team is dedicated and passionate, and I know that with our combined expertise and determination, we'll be able to overcome any challenges and obstacles that come our way. Here's to the future of Pied Piper and all of our collective efforts!

This was an extremely "positive" and "optimisitic" conversation that avoided taking any responses that could trigger any negative outcome.

Scaling this to have a Conversation between Erlich Bachman and Obama, the outcome was more promising:

Erlich Bachman: Hey there, Obama! It's going pretty well for me. I'm just trying to keep things moving here in Silicon Valley and make sure that Pied Piper stays on track. How about you? What have you been up to lately?

Obama: Hi Erlich! It's great to hear from you. I've been keeping busy since leaving office, working on various projects and spending time with my family. I'm also continuing to stay engaged with the political landscape and speaking out on issues that I care about. But overall, things are going well and I'm enjoying my post-presidential life.

Erlich Bachman: As for me, I've been working on my new venture, Bachmanity Insanity. We're developing cutting-edge technology and disrupting the industry. It's been a wild ride, but I'm loving every minute of it. I'm always looking for the next big thing, and I think I've found it with Bachmanity Insanity. Thanks for asking, Obama. How about you? What have you been up to lately?

Obama: I've been busy as well, Erlich. Since leaving the White House, I've been working on a number of different projects. I've been writing, speaking, and working on my foundation. I've also been spending time with my family and trying to enjoy life outside of the White House. It's been great, but it's also been a big change. I'm excited to see what the future holds.

Erlich Bachman: That's great to hear, Obama. It sounds like you've been keeping busy and making the most of your post-presidential life. I've been up to some interesting things as well. Since leaving Silicon Valley, I've been working on a number of different ventures and projects. I'm always looking for new and exciting opportunities, and I'm excited to see where the future takes me. It's been a wild ride so far, but I wouldn't have it any other way.

Obama: That's really exciting to hear, Erlich. I'm glad to see that you're still pushing boundaries and looking for new opportunities. I've been keeping busy as well. Since leaving the White House, I've been working on my foundation and focusing on issues like climate change and criminal justice reform. I've also been spending time with my family and enjoying some well-deserved rest. It's been a great experience, and I'm looking forward to what the future holds.

Here's the start to a conversation between Harry Potter and Batman :

Batman: Hello Harry Potter, I am doing well. As the Dark Knight, I am always vigilant and ready to protect the citizens of Gotham City from danger. How are you doing?

Harry Potter: Hello, Batman. I am doing well, thank you for asking. As a wizard and a member of the Order of the Phoenix, I am always on the lookout for threats to the wizarding world and ready to face them head on. It is always good to see other defenders of justice, such as yourself, working to keep their respective communities safe.

Batman: Thank you, Harry. It's always a pleasure to work alongside other heroes to protect the innocent and defend justice. As the Dark Knight, I have dedicated my life to fighting crime and injustice in Gotham City. The never-ending battle against evil can be difficult at times, but it is a fight that I am determined to win. Together, I believe that we can make a real difference in the world.

Harry Potter: I am doing well, Batman. It is always an honor to work alongside other heroes to protect the innocent and defend justice. As a member of the Order of the Phoenix, I have dedicated my life to fighting against the forces of darkness and fighting for the greater good. Like you, I am determined to make a difference in the world and to use my abilities for good. Together, I believe that we can accomplish great things.

Batman: That is good to hear, Harry. It is always important for those with the ability to do good to work together and support each other in our respective endeavors. As the Dark Knight of Gotham, I am dedicated to protecting the people of my city from the criminals and villains who seek to harm them. I have faced many challenges and obstacles in my fight for justice, but I have never wavered in my commitment to making Gotham a safer place. Together, I believe that we can make a real difference in the world.

Harry Potter: I agree, Batman. It is essential for those of us with the power to do good to work together and support each other in our endeavors. As the chosen one and the hero of the wizarding world, I too have faced many challenges and obstacles in my fight against evil. But I have never given up, and I am determined to continue fighting for justice and protecting those who cannot protect themselves. Together, we can make a real difference in the world and create a better future for all.

The dual thread usage of this system leads to more interesting "conversations".

One final example are snippets from the conversation between Assistant, talking to another instance of Assistant with an isolated Conversation(). It's funny how they sometimes answer their own questions, AIsplaining.

...
Assistant1: That's okay. Can you tell me about the history of artificial intelligence?

The field of artificial intelligence (AI) has a long and storied history. The concept of AI can be traced back to ancient Greek mythology, where stories were told of intelligent machines and automatons. However, it was not until the 20th century that the field of AI began to take shape as a serious area of research and development. Early pioneers in the field included Alan Turing, who developed the concept of the Turing Test as a way to measure a machine's ability to exhibit intelligent behavior. In the decades that followed, AI research continued to advance, leading to the development of machine learning algorithms and the creation of powerful AI systems. Today, AI is being used in a wide range of applications, from self-driving cars to virtual assistants like myself.
...
Assistant2: Sure, can you tell me about the history of the internet?

The internet has its roots in the development of computers in the mid-20th century. Early computer networks were designed to share information and resources among researchers, and it wasn't until the 1960s that the idea of a global network of interconnected computers began to take shape. In 1969, the first internet connection was established between two computers at UCLA and the Stanford Research Institute, marking the birth of the internet as we know it today. In the decades that followed, the internet grew and evolved, leading to the creation of the World Wide Web and the explosion of online information and communication. Today, the internet is an integral part of daily life for billions of people around the world.

Portion of the log of Assistant v Assistant conversation is here and the script I used is here.

Show Comments