Menu Home

OutOfTheLoopAI Release

Everyone who has used an AI chatbot knows that it can be a very iterative process.  One approach to integrating AI into workflows is called “Human In The Loop”, which describes an approach that uses a human as part of the process to achieve better outcomes.  What if we could take the human out of the loop?  Why not replace the human in the loop with another AI?

To test out this theory, OutOfTheLoopAI was born.

What does it do?

OutOfTheLoopAI is a PHP script that creates a standalone webpage where you can setup conversations between different AI systems.  You can choose from the following services:

  • OpenAI ChatGPT
  • Anthropic Claude
  • Google Gemini
  • Local Ollama

You can then choose specific models from each of these, and mix and match to create the conversation.  You can also assign a role such as “visionary” or “skeptic” to each model.  Once you’ve queued up your parameters, hit the GO button and watch the systems talk to each other.  You may have a conversation where a skeptical Claude debates a visionary Gemini.  The conversation will stream in as though you are watching text messages flow back and forth between people.

How Does It Work?

To install, simply update the .env file with your API keys for whatever services you want to support.  Upload the script to your webserver that supports PHP and curl.  Thats it!

Note:  You must have either developer accounts with API keys at these services, or at least an instance of Ollama to use.  You do not have to fill in every service.  For example, if you only have OpenAI API keys, you could have 2 different OpenAI models converse with each other.  Leave all the other env variables empty.

Enter an initial prompt, which will be sent to AI #1 to start the conversation.  Enter a follow up prompt which will be appended to each response to prompt further conversation.  Set the iterations, which is how many times the AI goes back and forth.

Afterwards, you can download the conversation as a TXT file by clicking the “Downlaod Conversation” Button.

Try It Out!

Download the code from GitHub here: https://github.com/RickGouin/OutOfTheLoop

What do you think?  Did you try it out?  Get any interesting conversations or insights?  Let me know in the comments below!

Categories: AI PHP Site

Tagged as:

Rick Gouin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.