Welcome to the Agency Swarm Custom GPT Integration! This project is designed to integrate multi-agent frameworks into Custom GPTs, making them accessible and usable in the real world, regardless of technical expertise.
- Firebase account
- OpenAI API key
- Firebase Tools (if not already installed)
-
Create a project on Firebase.
-
Enable billing and firestore on your project.
-
Create a service account key and drop it into
functions
directory. -
Add path to your service account key in the
main.py
file. -
Add your keys:
Add your openai key inmain.py
. Then, generate a db token using this link and paste it into thedb_token
variable in themain.py
file. -
Replace your project id in the
.firebaserc
file. -
Navigate to the functions directory:
cd functions
-
Activate the virtual environment:
# macOS python3 -m venv venv source venv/bin/activate # Windows py -m venv venv venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Add your Agency:
Copy all your agents into the functions directory and import them according to an example in thehelpers.py
init_agency
method. Alternatively, you can create your agency directly inhelpers.py
if it's simple. -
Create settings and schema schema:
python schema.py
-
Install firebase CLI:
npm install -g firebase-tools
-
Login to firebase:
firebase login
-
Deploy:
firebase deploy --only functions
-
Replace server url:
Copy your function url from the terminal and paste it into theschema.py
file. Run this file locally again withpython schema.py
to update the schema. -
Setup Custom GPT:
Copy your CEO agent name, instructions and description into Custom GPT. Create an action with the schema fromschema.json
. Add Bearer authentication with yourdb_token
frommain.py
and you're good to go!
Join our Discord server to be part of a growing community that shapes the future of AI. Share your work, get help, and collaborate with fellow enthusiasts.
Don't forget to subscribe to our YouTube channel for the latest updates, tutorials, and discussions on AI and AGI.