Creating a New AI Agent
Creating a New AI Agent
Set Up Your Repository
Create a new repository on GitHub (public or private).
Clone the official AIFlow repository to your local machine:
git clone https://github.com/YourUsername/aiflow.git[folder_name]
cd [folder_name]
Configure Remotes
Add your new repository as the origin remote.
Add the AIFlow repository as the upstream remote.
git remote set-url origin https://github.com/AIFlowwork/YourNewRepo.git
git remote add upstream https://github.com/AIFlowwork/aiflow.git
Create a Character File
In the
characters/
folder, create a new JSON file (e.g.,my_character.json
).Use the following template to define your character (adjust fields based on your needs):
{ "name": "YourCharacterName", "description": "Brief character description", "personality_traits": ["trait1", "trait2"], "twitter_username": "@YourTwitterHandle" }
Set Environment Variables
Rename
.env.example
to.env
, and fill in the required values.
CHARACTER_NAME_ID=your_character_name
Push Changes
Rename
.gitignore.example
to.gitignore
if necessary.Push your changes to your new repository:
git push -u origin main
Sync Updates
Keep your repository up to date by fetching updates from the AIFlow upstream:
git fetch upstream
git merge upstream/main
Last updated