A Flask application that allows multiple chatbots to brainstorm and provide the best response to a user's question.
It's just an idea ! The code is certainly buggy: I need time and some API Keys of several AI ChatBots :-)
- Send a question to multiple chatbots.
- Collect responses from each chatbot.
- Evaluate responses and generate clarification questions.
- Select the best response based on evaluations from other chatbots.
- Python 3.6+
- Flask
- aiohttp
-
Clone the repository:
git clone https://github.com/yourusername/Chatbot-Brainstorming.git
-
Navigate to the project directory:
cd Chatbot-Brainstorming
-
Install the required dependencies:
pip install Flask aiohttp
-
Create a
config.py
file with your API keys and chatbot URLs:# config.py CHATBOT_APIS = { "gpt-4": "https://api.openai.com/v1/engines/davinci-codex/completions", "dialogflow": "https://dialogflow.googleapis.com/v2/projects/project-id/agent/sessions/session-id:detectIntent" } API_KEYS = { "gpt-4": "YOUR_OPENAI_API_KEY", "dialogflow": "YOUR_DIALOGFLOW_API_KEY" }
-
Add
config.py
to your.gitignore
file:echo "config.py" >> .gitignore
-
Run the Flask application:
python app.py
-
Open your web browser and go to
http://127.0.0.1:5000/
. -
Enter a question in the form and submit it to receive the best response from the chatbots.
Feel free to submit issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.