diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 379f6310..02f580a0 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,10 +1,10 @@
-# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
+# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3-bullseye, 3.10-bullseye, 3-buster, 3.10-buster
ARG VARIANT=3-bullseye
-FROM --platform=linux/amd64 python:3.8
+FROM --platform=linux/amd64 python:3.10
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
- && apt-get purge -y imagemagick imagemagick-6-common
+ && apt-get purge -y imagemagick imagemagick-6-common
# Temporary: Upgrade python packages due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40897
# They are installed by the base image (python) which does not have the patch.
@@ -25,4 +25,4 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends
# [Optional] Uncomment this line to install global node packages.
-# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1
\ No newline at end of file
+# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1
diff --git a/.env.template b/.env.template
index b10e4799..60edecd6 100644
--- a/.env.template
+++ b/.env.template
@@ -1,184 +1,197 @@
################################################################################
### AUTO-GPT - GENERAL SETTINGS
################################################################################
-# EXECUTE_LOCAL_COMMANDS - Allow local command execution (Example: False)
-EXECUTE_LOCAL_COMMANDS=False
-# BROWSE_CHUNK_MAX_LENGTH - When browsing website, define the length of chunk stored in memory
-BROWSE_CHUNK_MAX_LENGTH=8192
-# USER_AGENT - Define the user-agent used by the requests library to browse website (string)
+
+## EXECUTE_LOCAL_COMMANDS - Allow local command execution (Default: False)
+## RESTRICT_TO_WORKSPACE - Restrict file operations to workspace ./auto_gpt_workspace (Default: True)
+# EXECUTE_LOCAL_COMMANDS=False
+# RESTRICT_TO_WORKSPACE=True
+
+## USER_AGENT - Define the user-agent used by the requests library to browse website (string)
# USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
-# AI_SETTINGS_FILE - Specifies which AI Settings file to use (defaults to ai_settings.yaml)
-AI_SETTINGS_FILE=ai_settings.yaml
+
+## AI_SETTINGS_FILE - Specifies which AI Settings file to use (defaults to ai_settings.yaml)
+# AI_SETTINGS_FILE=ai_settings.yaml
################################################################################
### LLM PROVIDER
################################################################################
### OPENAI
-# OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key)
-# TEMPERATURE - Sets temperature in OpenAI (Default: 0)
-# USE_AZURE - Use Azure OpenAI or not (Default: False)
+## OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key)
+## TEMPERATURE - Sets temperature in OpenAI (Default: 0)
+## USE_AZURE - Use Azure OpenAI or not (Default: False)
OPENAI_API_KEY=your-openai-api-key
-TEMPERATURE=0
-USE_AZURE=False
+# TEMPERATURE=0
+# USE_AZURE=False
### AZURE
-# cleanup azure env as already moved to `azure.yaml.template`
+# moved to `azure.yaml.template`
################################################################################
### LLM MODELS
################################################################################
-# SMART_LLM_MODEL - Smart language model (Default: gpt-4)
-# FAST_LLM_MODEL - Fast language model (Default: gpt-3.5-turbo)
-SMART_LLM_MODEL=gpt-4
-FAST_LLM_MODEL=gpt-3.5-turbo
+## SMART_LLM_MODEL - Smart language model (Default: gpt-4)
+## FAST_LLM_MODEL - Fast language model (Default: gpt-3.5-turbo)
+# SMART_LLM_MODEL=gpt-4
+# FAST_LLM_MODEL=gpt-3.5-turbo
### LLM MODEL SETTINGS
-# FAST_TOKEN_LIMIT - Fast token limit for OpenAI (Default: 4000)
-# SMART_TOKEN_LIMIT - Smart token limit for OpenAI (Default: 8000)
-# When using --gpt3only this needs to be set to 4000.
-FAST_TOKEN_LIMIT=4000
-SMART_TOKEN_LIMIT=8000
+## FAST_TOKEN_LIMIT - Fast token limit for OpenAI (Default: 4000)
+## SMART_TOKEN_LIMIT - Smart token limit for OpenAI (Default: 8000)
+## When using --gpt3only this needs to be set to 4000.
+# FAST_TOKEN_LIMIT=4000
+# SMART_TOKEN_LIMIT=8000
################################################################################
### MEMORY
################################################################################
### MEMORY_BACKEND - Memory backend type
-# local - Default
-# pinecone - Pinecone (if configured)
-# redis - Redis (if configured)
-# milvus - Milvus (if configured)
-MEMORY_BACKEND=local
+## local - Default
+## pinecone - Pinecone (if configured)
+## redis - Redis (if configured)
+## milvus - Milvus (if configured)
+## MEMORY_INDEX - Name of index created in Memory backend (Default: auto-gpt)
+# MEMORY_BACKEND=local
+# MEMORY_INDEX=auto-gpt
### PINECONE
-# PINECONE_API_KEY - Pinecone API Key (Example: my-pinecone-api-key)
-# PINECONE_ENV - Pinecone environment (region) (Example: us-west-2)
-PINECONE_API_KEY=your-pinecone-api-key
-PINECONE_ENV=your-pinecone-region
+## PINECONE_API_KEY - Pinecone API Key (Example: my-pinecone-api-key)
+## PINECONE_ENV - Pinecone environment (region) (Example: us-west-2)
+# PINECONE_API_KEY=your-pinecone-api-key
+# PINECONE_ENV=your-pinecone-region
### REDIS
-# REDIS_HOST - Redis host (Default: localhost, use "redis" for docker-compose)
-# REDIS_PORT - Redis port (Default: 6379)
-# REDIS_PASSWORD - Redis password (Default: "")
-# WIPE_REDIS_ON_START - Wipes data / index on start (Default: False)
-# MEMORY_INDEX - Name of index created in Redis database (Default: auto-gpt)
-REDIS_HOST=localhost
-REDIS_PORT=6379
-REDIS_PASSWORD=
-WIPE_REDIS_ON_START=False
-MEMORY_INDEX=auto-gpt
+## REDIS_HOST - Redis host (Default: localhost, use "redis" for docker-compose)
+## REDIS_PORT - Redis port (Default: 6379)
+## REDIS_PASSWORD - Redis password (Default: "")
+## WIPE_REDIS_ON_START - Wipes data / index on start (Default: True)
+# REDIS_HOST=localhost
+# REDIS_PORT=6379
+# REDIS_PASSWORD=
+# WIPE_REDIS_ON_START=True
### WEAVIATE
-# MEMORY_BACKEND - Use 'weaviate' to use Weaviate vector storage
-# WEAVIATE_HOST - Weaviate host IP
-# WEAVIATE_PORT - Weaviate host port
-# WEAVIATE_PROTOCOL - Weaviate host protocol (e.g. 'http')
-# USE_WEAVIATE_EMBEDDED - Whether to use Embedded Weaviate
-# WEAVIATE_EMBEDDED_PATH - File system path were to persist data when running Embedded Weaviate
-# WEAVIATE_USERNAME - Weaviate username
-# WEAVIATE_PASSWORD - Weaviate password
-# WEAVIATE_API_KEY - Weaviate API key if using API-key-based authentication
-# MEMORY_INDEX - Name of index to create in Weaviate
-WEAVIATE_HOST="127.0.0.1"
-WEAVIATE_PORT=8080
-WEAVIATE_PROTOCOL="http"
-USE_WEAVIATE_EMBEDDED=False
-WEAVIATE_EMBEDDED_PATH="/home/me/.local/share/weaviate"
-WEAVIATE_USERNAME=
-WEAVIATE_PASSWORD=
-WEAVIATE_API_KEY=
-MEMORY_INDEX=AutoGpt
+## MEMORY_BACKEND - Use 'weaviate' to use Weaviate vector storage
+## WEAVIATE_HOST - Weaviate host IP
+## WEAVIATE_PORT - Weaviate host port
+## WEAVIATE_PROTOCOL - Weaviate host protocol (e.g. 'http')
+## USE_WEAVIATE_EMBEDDED - Whether to use Embedded Weaviate
+## WEAVIATE_EMBEDDED_PATH - File system path were to persist data when running Embedded Weaviate
+## WEAVIATE_USERNAME - Weaviate username
+## WEAVIATE_PASSWORD - Weaviate password
+## WEAVIATE_API_KEY - Weaviate API key if using API-key-based authentication
+# WEAVIATE_HOST="127.0.0.1"
+# WEAVIATE_PORT=8080
+# WEAVIATE_PROTOCOL="http"
+# USE_WEAVIATE_EMBEDDED=False
+# WEAVIATE_EMBEDDED_PATH="/home/me/.local/share/weaviate"
+# WEAVIATE_USERNAME=
+# WEAVIATE_PASSWORD=
+# WEAVIATE_API_KEY=
### MILVUS
-# MILVUS_ADDR - Milvus remote address (e.g. localhost:19530)
-# MILVUS_COLLECTION - Milvus collection,
-# change it if you want to start a new memory and retain the old memory.
-MILVUS_ADDR=your-milvus-cluster-host-port
-MILVUS_COLLECTION=autogpt
+## MILVUS_ADDR - Milvus remote address (e.g. localhost:19530)
+## MILVUS_COLLECTION - Milvus collection,
+## change it if you want to start a new memory and retain the old memory.
+# MILVUS_ADDR=your-milvus-cluster-host-port
+# MILVUS_COLLECTION=autogpt
################################################################################
### IMAGE GENERATION PROVIDER
################################################################################
### OPEN AI
-# IMAGE_PROVIDER - Image provider (Example: dalle)
-IMAGE_PROVIDER=dalle
+## IMAGE_PROVIDER - Image provider (Example: dalle)
+## IMAGE_SIZE - Image size (Example: 256)
+## DALLE: 256, 512, 1024
+# IMAGE_PROVIDER=dalle
+# IMAGE_SIZE=256
### HUGGINGFACE
-# STABLE DIFFUSION
-# (Default URL: https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4)
-# Set in image_gen.py)
-# HUGGINGFACE_API_TOKEN - HuggingFace API token (Example: my-huggingface-api-token)
-HUGGINGFACE_API_TOKEN=your-huggingface-api-token
+## HUGGINGFACE_IMAGE_MODEL - Text-to-image model from Huggingface (Default: CompVis/stable-diffusion-v1-4)
+## HUGGINGFACE_API_TOKEN - HuggingFace API token (Example: my-huggingface-api-token)
+# HUGGINGFACE_IMAGE_MODEL=CompVis/stable-diffusion-v1-4
+# HUGGINGFACE_API_TOKEN=your-huggingface-api-token
+
+### STABLE DIFFUSION WEBUI
+## SD_WEBUI_AUTH - Stable diffusion webui username:password pair (Example: username:password)
+## SD_WEBUI_URL - Stable diffusion webui API URL (Example: http://127.0.0.1:7860)
+# SD_WEBUI_AUTH=
+# SD_WEBUI_URL=http://127.0.0.1:7860
################################################################################
### AUDIO TO TEXT PROVIDER
################################################################################
### HUGGINGFACE
-HUGGINGFACE_AUDIO_TO_TEXT_MODEL=facebook/wav2vec2-base-960h
+# HUGGINGFACE_AUDIO_TO_TEXT_MODEL=facebook/wav2vec2-base-960h
################################################################################
### GIT Provider for repository actions
################################################################################
### GITHUB
-# GITHUB_API_KEY - Github API key / PAT (Example: github_pat_123)
-# GITHUB_USERNAME - Github username
-GITHUB_API_KEY=github_pat_123
-GITHUB_USERNAME=your-github-username
+## GITHUB_API_KEY - Github API key / PAT (Example: github_pat_123)
+## GITHUB_USERNAME - Github username
+# GITHUB_API_KEY=github_pat_123
+# GITHUB_USERNAME=your-github-username
################################################################################
### WEB BROWSING
################################################################################
### BROWSER
-# USE_WEB_BROWSER - Sets the web-browser drivers to use with selenium (defaults to chrome).
-# HEADLESS_BROWSER - Whether to run the browser in headless mode (defaults to True)
-# Note: set this to either 'chrome', 'firefox', or 'safari' depending on your current browser
-# USE_WEB_BROWSER=chrome
+## HEADLESS_BROWSER - Whether to run the browser in headless mode (default: True)
+## USE_WEB_BROWSER - Sets the web-browser driver to use with selenium (default: chrome).
+## Note: set this to either 'chrome', 'firefox', or 'safari' depending on your current browser
# HEADLESS_BROWSER=True
+# USE_WEB_BROWSER=chrome
+## BROWSE_CHUNK_MAX_LENGTH - When browsing website, define the length of chunks to summarize (in number of tokens, excluding the response. 75 % of FAST_TOKEN_LIMIT is usually wise )
+# BROWSE_CHUNK_MAX_LENGTH=3000
+## BROWSE_SPACY_LANGUAGE_MODEL is used to split sentences. Install additional languages via pip, and set the model name here. Example Chinese: python -m spacy download zh_core_web_sm
+# BROWSE_SPACY_LANGUAGE_MODEL=en_core_web_sm
### GOOGLE
-# GOOGLE_API_KEY - Google API key (Example: my-google-api-key)
-# CUSTOM_SEARCH_ENGINE_ID - Custom search engine ID (Example: my-custom-search-engine-id)
-GOOGLE_API_KEY=your-google-api-key
-CUSTOM_SEARCH_ENGINE_ID=your-custom-search-engine-id
+## GOOGLE_API_KEY - Google API key (Example: my-google-api-key)
+## CUSTOM_SEARCH_ENGINE_ID - Custom search engine ID (Example: my-custom-search-engine-id)
+# GOOGLE_API_KEY=your-google-api-key
+# CUSTOM_SEARCH_ENGINE_ID=your-custom-search-engine-id
################################################################################
### TTS PROVIDER
################################################################################
### MAC OS
-# USE_MAC_OS_TTS - Use Mac OS TTS or not (Default: False)
-USE_MAC_OS_TTS=False
+## USE_MAC_OS_TTS - Use Mac OS TTS or not (Default: False)
+# USE_MAC_OS_TTS=False
### STREAMELEMENTS
-# USE_BRIAN_TTS - Use Brian TTS or not (Default: False)
-USE_BRIAN_TTS=False
+## USE_BRIAN_TTS - Use Brian TTS or not (Default: False)
+# USE_BRIAN_TTS=False
### ELEVENLABS
-# ELEVENLABS_API_KEY - Eleven Labs API key (Example: my-elevenlabs-api-key)
-# ELEVENLABS_VOICE_1_ID - Eleven Labs voice 1 ID (Example: my-voice-id-1)
-# ELEVENLABS_VOICE_2_ID - Eleven Labs voice 2 ID (Example: my-voice-id-2)
-ELEVENLABS_API_KEY=your-elevenlabs-api-key
-ELEVENLABS_VOICE_1_ID=your-voice-id-1
-ELEVENLABS_VOICE_2_ID=your-voice-id-2
+## ELEVENLABS_API_KEY - Eleven Labs API key (Example: my-elevenlabs-api-key)
+## ELEVENLABS_VOICE_1_ID - Eleven Labs voice 1 ID (Example: my-voice-id-1)
+## ELEVENLABS_VOICE_2_ID - Eleven Labs voice 2 ID (Example: my-voice-id-2)
+# ELEVENLABS_API_KEY=your-elevenlabs-api-key
+# ELEVENLABS_VOICE_1_ID=your-voice-id-1
+# ELEVENLABS_VOICE_2_ID=your-voice-id-2
################################################################################
-### TWITTER API
+### TWITTER API
################################################################################
-TW_CONSUMER_KEY=
-TW_CONSUMER_SECRET=
-TW_ACCESS_TOKEN=
-TW_ACCESS_TOKEN_SECRET=
+# TW_CONSUMER_KEY=
+# TW_CONSUMER_SECRET=
+# TW_ACCESS_TOKEN=
+# TW_ACCESS_TOKEN_SECRET=
################################################################################
### ALLOWLISTED PLUGINS
################################################################################
#ALLOWLISTED_PLUGINS - Sets the listed plugins that are allowed (Example: plugin1,plugin2,plugin3)
-ALLOWLISTED_PLUGINS=
\ No newline at end of file
+ALLOWLISTED_PLUGINS=
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index c5a42b2c..53b6e7a0 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -9,11 +9,11 @@ jobs:
environment: benchmark
strategy:
matrix:
- python-version: [3.8]
+ python-version: ['3.10', '3.11']
steps:
- name: Check out repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2eb34b9d..b37e7f00 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,26 +2,54 @@ name: Python CI
on:
push:
- branches:
- - master
+ branches: [master]
pull_request:
- branches:
- - '**'
- pull_request_target:
- branches:
- - '**'
+ branches: [master]
+
+concurrency:
+ group: ${{ format('ci-{0}', format('pr-{0}', github.event.pull_request.number) || github.sha) }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
- build:
+ lint:
runs-on: ubuntu-latest
-
- strategy:
- matrix:
- python-version: [3.8]
+ env:
+ min-python-version: '3.10'
steps:
- name: Check out repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
+
+ - name: Set up Python ${{ env.min-python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ env.min-python-version }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+
+ - name: Lint with flake8
+ run: flake8
+
+ - name: Check black formatting
+ run: black . --check
+ if: success() || failure()
+
+ - name: Check isort formatting
+ run: isort . --check
+ if: success() || failure()
+
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ['3.10', '3.11']
+
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
@@ -33,18 +61,6 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- - name: Lint with flake8
- continue-on-error: false
- run: flake8
-
- - name: Check black formatting
- continue-on-error: false
- run: black . --check
-
- - name: Check isort formatting
- continue-on-error: false
- run: isort . --check
-
- name: Run unittest tests with coverage
run: |
pytest --cov=autogpt --without-integration --without-slow-integration
@@ -53,3 +69,4 @@ jobs:
run: |
coverage report
coverage xml
+ if: success() || failure()
diff --git a/.gitignore b/.gitignore
index 3a411a0e..0c277d89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,6 @@ auto_gpt_workspace/*
*.mpeg
.env
azure.yaml
-outputs/*
ai_settings.yaml
last_run_ai_settings.yaml
.vscode
diff --git a/.sourcery.yaml b/.sourcery.yaml
index a7f5b9d7..da171e75 100644
--- a/.sourcery.yaml
+++ b/.sourcery.yaml
@@ -30,7 +30,7 @@ rule_settings:
- refactoring
- suggestion
- comment
- python_version: '3.9' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.
+ python_version: '3.10' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.
# rules: # A list of custom rules Sourcery will include in its analysis.
# - id: no-print-statements
@@ -68,4 +68,4 @@ rule_settings:
# proxy:
# url:
# ssl_certs_file:
-# no_ssl_verify: false
\ No newline at end of file
+# no_ssl_verify: false
diff --git a/Dockerfile b/Dockerfile
index 09b5303d..83961549 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
# Use an official Python base image from the Docker Hub
-FROM python:3.11-slim
+FROM python:3.10-slim
# Install git
RUN apt-get -y update
diff --git a/README.md b/README.md
index fb3b7df6..f5fea44d 100644
--- a/README.md
+++ b/README.md
@@ -32,13 +32,13 @@ Development of this free, open-source project is made possible by all the
-
+
-
+
## 🚀 Features
@@ -135,12 +135,12 @@ _To execute the following commands, open a CMD, Bash, or Powershell window by na
1. Run `autogpt` Python module in your terminal.
On linux or mac:
```bash
- # On Linux of Mac:
+ # On Linux or Mac:
./run.sh start
# On Windows:
- ./run.bat start
+ .\run.bat
```
- Running with `--help` after `start` lists all the possible command line arguments you can pass.
+ Running with `--help` after `.\run.bat` lists all the possible command line arguments you can pass.
2. After each action, choose from options to authorize command(s),
exit the program, or provide feedback to the AI.
diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py
index c0bb8d5b..189338f5 100644
--- a/autogpt/agent/agent.py
+++ b/autogpt/agent/agent.py
@@ -3,8 +3,8 @@ from colorama import Fore, Style
from autogpt.app import execute_command, get_command
from autogpt.chat import chat_with_ai, create_chat_message
from autogpt.config import Config
-from autogpt.json_fixes.master_json_fix_method import fix_json_using_multiple_techniques
-from autogpt.json_validation.validate_json import validate_json
+from autogpt.json_utils.json_fix_llm import fix_json_using_multiple_techniques
+from autogpt.json_utils.utilities import validate_json
from autogpt.logs import logger, print_assistant_thoughts
from autogpt.speech import say_text
from autogpt.spinner import Spinner
diff --git a/autogpt/app.py b/autogpt/app.py
index 03e2320c..cf1ec5f9 100644
--- a/autogpt/app.py
+++ b/autogpt/app.py
@@ -3,6 +3,7 @@ import json
from typing import Dict, List, NoReturn, Union
from autogpt.agent.agent_manager import AgentManager
+from autogpt.commands.analyze_code import analyze_code
from autogpt.commands.audio_text import read_audio_from_file
from autogpt.commands.command import CommandRegistry, command
from autogpt.commands.evaluate_code import evaluate_code
@@ -28,7 +29,7 @@ from autogpt.commands.web_requests import scrape_links, scrape_text
from autogpt.commands.web_selenium import browse_website
from autogpt.commands.write_tests import write_tests
from autogpt.config import Config
-from autogpt.json_fixes.parsing import fix_and_parse_json
+from autogpt.json_utils.json_fix_llm import fix_and_parse_json
from autogpt.memory import get_memory
from autogpt.processing.text import summarize_text
from autogpt.prompts.generator import PromptGenerator
@@ -141,6 +142,8 @@ def execute_command(
return get_text_summary(arguments["url"], arguments["question"])
elif command_name == "get_hyperlinks":
return get_hyperlinks(arguments["url"])
+ elif command_name == "analyze_code":
+ return analyze_code(arguments["code"])
elif command_name == "download_file":
if not CFG.allow_downloads:
return "Error: You do not have user authorization to download files locally."
diff --git a/autogpt/cli.py b/autogpt/cli.py
index f6b27586..30eb9c23 100644
--- a/autogpt/cli.py
+++ b/autogpt/cli.py
@@ -70,6 +70,7 @@ def main(
"""
# Put imports inside function to avoid importing everything when starting the CLI
import logging
+ import sys
from colorama import Fore
@@ -81,7 +82,7 @@ def main(
from autogpt.memory import get_memory
from autogpt.plugins import scan_plugins
from autogpt.prompts.prompt import construct_main_ai_config
- from autogpt.utils import get_latest_bulletin
+ from autogpt.utils import get_current_git_branch, get_latest_bulletin
if ctx.invoked_subcommand is None:
cfg = Config()
@@ -107,6 +108,23 @@ def main(
motd = get_latest_bulletin()
if motd:
logger.typewriter_log("NEWS: ", Fore.GREEN, motd)
+ git_branch = get_current_git_branch()
+ if git_branch and git_branch != "stable":
+ logger.typewriter_log(
+ "WARNING: ",
+ Fore.RED,
+ f"You are running on `{git_branch}` branch "
+ "- this is not a supported branch.",
+ )
+ if sys.version_info < (3, 10):
+ logger.typewriter_log(
+ "WARNING: ",
+ Fore.RED,
+ "You are running on an older version of Python. "
+ "Some people have observed problems with certain "
+ "parts of Auto-GPT with this version. "
+ "Please consider upgrading to Python 3.10 or higher.",
+ )
cfg = Config()
cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode))
diff --git a/autogpt/commands/evaluate_code.py b/autogpt/commands/analyze_code.py
similarity index 81%
rename from autogpt/commands/evaluate_code.py
rename to autogpt/commands/analyze_code.py
index 064e4512..e02ea4c5 100644
--- a/autogpt/commands/evaluate_code.py
+++ b/autogpt/commands/analyze_code.py
@@ -1,12 +1,10 @@
"""Code evaluation module."""
from __future__ import annotations
-from autogpt.commands.command import command
from autogpt.llm_utils import call_ai_function
-@command("evaluate_code", "Evaluate Code", '"code": ""')
-def evaluate_code(code: str) -> list[str]:
+def analyze_code(code: str) -> list[str]:
"""
A function that takes in a string and returns a response from create chat
completion api call.
diff --git a/autogpt/commands/execute_code.py b/autogpt/commands/execute_code.py
index 2ea14d83..5dd56605 100644
--- a/autogpt/commands/execute_code.py
+++ b/autogpt/commands/execute_code.py
@@ -89,6 +89,12 @@ def execute_python_file(file: str) -> str:
return logs
+ except docker.errors.DockerException as e:
+ print(
+ "Could not run the script in a container. If you haven't already, please install Docker https://docs.docker.com/get-docker/"
+ )
+ return f"Error: {str(e)}"
+
except Exception as e:
return f"Error: {str(e)}"
diff --git a/autogpt/commands/file_operations.py b/autogpt/commands/file_operations.py
index d850ea67..28ff0e52 100644
--- a/autogpt/commands/file_operations.py
+++ b/autogpt/commands/file_operations.py
@@ -3,8 +3,7 @@ from __future__ import annotations
import os
import os.path
-from pathlib import Path
-from typing import Generator, List
+from typing import Generator
import requests
from colorama import Back, Fore
diff --git a/autogpt/commands/image_gen.py b/autogpt/commands/image_gen.py
index f82e97ab..60cdaec0 100644
--- a/autogpt/commands/image_gen.py
+++ b/autogpt/commands/image_gen.py
@@ -15,11 +15,12 @@ CFG = Config()
@command("generate_image", "Generate Image", '"prompt": ""', CFG.image_provider)
-def generate_image(prompt: str) -> str:
+def generate_image(prompt: str, size: int = 256) -> str:
"""Generate an image from a prompt.
Args:
prompt (str): The prompt to use
+ size (int, optional): The size of the image. Defaults to 256. (Not supported by HuggingFace)
Returns:
str: The filename of the image
@@ -28,11 +29,14 @@ def generate_image(prompt: str) -> str:
# DALL-E
if CFG.image_provider == "dalle":
- return generate_image_with_dalle(prompt, filename)
- elif CFG.image_provider == "sd":
+ return generate_image_with_dalle(prompt, filename, size)
+ # HuggingFace
+ elif CFG.image_provider == "huggingface":
return generate_image_with_hf(prompt, filename)
- else:
- return "No Image Provider Set"
+ # SD WebUI
+ elif CFG.image_provider == "sdwebui":
+ return generate_image_with_sd_webui(prompt, filename, size)
+ return "No Image Provider Set"
def generate_image_with_hf(prompt: str, filename: str) -> str:
@@ -46,13 +50,16 @@ def generate_image_with_hf(prompt: str, filename: str) -> str:
str: The filename of the image
"""
API_URL = (
- "https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4"
+ f"https://api-inference.huggingface.co/models/{CFG.huggingface_image_model}"
)
if CFG.huggingface_api_token is None:
raise ValueError(
"You need to set your Hugging Face API token in the config file."
)
- headers = {"Authorization": f"Bearer {CFG.huggingface_api_token}"}
+ headers = {
+ "Authorization": f"Bearer {CFG.huggingface_api_token}",
+ "X-Use-Cache": "false",
+ }
response = requests.post(
API_URL,
@@ -82,10 +89,18 @@ def generate_image_with_dalle(prompt: str, filename: str) -> str:
"""
openai.api_key = CFG.openai_api_key
+ # Check for supported image sizes
+ if size not in [256, 512, 1024]:
+ closest = min([256, 512, 1024], key=lambda x: abs(x - size))
+ print(
+ f"DALL-E only supports image sizes of 256x256, 512x512, or 1024x1024. Setting to {closest}, was {size}."
+ )
+ size = closest
+
response = openai.Image.create(
prompt=prompt,
n=1,
- size="256x256",
+ size=f"{size}x{size}",
response_format="b64_json",
)
@@ -97,3 +112,53 @@ def generate_image_with_dalle(prompt: str, filename: str) -> str:
png.write(image_data)
return f"Saved to disk:{filename}"
+
+
+def generate_image_with_sd_webui(
+ prompt: str,
+ filename: str,
+ size: int = 512,
+ negative_prompt: str = "",
+ extra: dict = {},
+) -> str:
+ """Generate an image with Stable Diffusion webui.
+ Args:
+ prompt (str): The prompt to use
+ filename (str): The filename to save the image to
+ size (int, optional): The size of the image. Defaults to 256.
+ negative_prompt (str, optional): The negative prompt to use. Defaults to "".
+ extra (dict, optional): Extra parameters to pass to the API. Defaults to {}.
+ Returns:
+ str: The filename of the image
+ """
+ # Create a session and set the basic auth if needed
+ s = requests.Session()
+ if CFG.sd_webui_auth:
+ username, password = CFG.sd_webui_auth.split(":")
+ s.auth = (username, password or "")
+
+ # Generate the images
+ response = requests.post(
+ f"{CFG.sd_webui_url}/sdapi/v1/txt2img",
+ json={
+ "prompt": prompt,
+ "negative_prompt": negative_prompt,
+ "sampler_index": "DDIM",
+ "steps": 20,
+ "cfg_scale": 7.0,
+ "width": size,
+ "height": size,
+ "n_iter": 1,
+ **extra,
+ },
+ )
+
+ print(f"Image Generated for prompt:{prompt}")
+
+ # Save the image to disk
+ response = response.json()
+ b64 = b64decode(response["images"][0].split(",", 1)[0])
+ image = Image.open(io.BytesIO(b64))
+ image.save(path_in_workspace(filename))
+
+ return f"Saved to disk:{filename}"
diff --git a/autogpt/config/config.py b/autogpt/config/config.py
index 2fadcaba..1ee8eabf 100644
--- a/autogpt/config/config.py
+++ b/autogpt/config/config.py
@@ -33,14 +33,20 @@ class Config(metaclass=Singleton):
self.smart_llm_model = os.getenv("SMART_LLM_MODEL", "gpt-4")
self.fast_token_limit = int(os.getenv("FAST_TOKEN_LIMIT", 4000))
self.smart_token_limit = int(os.getenv("SMART_TOKEN_LIMIT", 8000))
- self.browse_chunk_max_length = int(os.getenv("BROWSE_CHUNK_MAX_LENGTH", 8192))
+ self.browse_chunk_max_length = int(os.getenv("BROWSE_CHUNK_MAX_LENGTH", 3000))
+ self.browse_spacy_language_model = os.getenv(
+ "BROWSE_SPACY_LANGUAGE_MODEL", "en_core_web_sm"
+ )
self.openai_api_key = os.getenv("OPENAI_API_KEY")
- self.temperature = float(os.getenv("TEMPERATURE", "1"))
+ self.temperature = float(os.getenv("TEMPERATURE", "0"))
self.use_azure = os.getenv("USE_AZURE") == "True"
self.execute_local_commands = (
os.getenv("EXECUTE_LOCAL_COMMANDS", "False") == "True"
)
+ self.restrict_to_workspace = (
+ os.getenv("RESTRICT_TO_WORKSPACE", "True") == "True"
+ )
if self.use_azure:
self.load_azure_config()
@@ -84,10 +90,16 @@ class Config(metaclass=Singleton):
self.milvus_collection = os.getenv("MILVUS_COLLECTION", "autogpt")
self.image_provider = os.getenv("IMAGE_PROVIDER")
+ self.image_size = int(os.getenv("IMAGE_SIZE", 256))
self.huggingface_api_token = os.getenv("HUGGINGFACE_API_TOKEN")
+ self.huggingface_image_model = os.getenv(
+ "HUGGINGFACE_IMAGE_MODEL", "CompVis/stable-diffusion-v1-4"
+ )
self.huggingface_audio_to_text_model = os.getenv(
"HUGGINGFACE_AUDIO_TO_TEXT_MODEL"
)
+ self.sd_webui_url = os.getenv("SD_WEBUI_URL", "http://localhost:7860")
+ self.sd_webui_auth = os.getenv("SD_WEBUI_AUTH")
# Selenium browser settings
self.selenium_web_browser = os.getenv("USE_WEB_BROWSER", "chrome")
@@ -150,7 +162,7 @@ class Config(metaclass=Singleton):
else:
return ""
- AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "..", "azure.yaml")
+ AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "../..", "azure.yaml")
def load_azure_config(self, config_file: str = AZURE_CONFIG_FILE) -> None:
"""
@@ -173,7 +185,7 @@ class Config(metaclass=Singleton):
self.openai_api_version = (
config_params.get("azure_api_version") or "2023-03-15-preview"
)
- self.azure_model_to_deployment_id_map = config_params.get("azure_model_map", [])
+ self.azure_model_to_deployment_id_map = config_params.get("azure_model_map", {})
def set_continuous_mode(self, value: bool) -> None:
"""Set the continuous mode value."""
diff --git a/autogpt/json_fixes/auto_fix.py b/autogpt/json_fixes/auto_fix.py
deleted file mode 100644
index 7eb1e4bd..00000000
--- a/autogpt/json_fixes/auto_fix.py
+++ /dev/null
@@ -1,53 +0,0 @@
-"""This module contains the function to fix JSON strings using GPT-3."""
-import json
-
-from autogpt.config import Config
-from autogpt.llm_utils import call_ai_function
-from autogpt.logs import logger
-
-CFG = Config()
-
-
-def fix_json(json_string: str, schema: str) -> str:
- """Fix the given JSON string to make it parseable and fully compliant with
- the provided schema.
-
- Args:
- json_string (str): The JSON string to fix.
- schema (str): The schema to use to fix the JSON.
- Returns:
- str: The fixed JSON string.
- """
- # Try to fix the JSON using GPT:
- function_string = "def fix_json(json_string: str, schema:str=None) -> str:"
- args = [f"'''{json_string}'''", f"'''{schema}'''"]
- description_string = (
- "This function takes a JSON string and ensures that it"
- " is parseable and fully compliant with the provided schema. If an object"
- " or field specified in the schema isn't contained within the correct JSON,"
- " it is omitted. The function also escapes any double quotes within JSON"
- " string values to ensure that they are valid. If the JSON string contains"
- " any None or NaN values, they are replaced with null before being parsed."
- )
-
- # If it doesn't already start with a "`", add one:
- if not json_string.startswith("`"):
- json_string = "```json\n" + json_string + "\n```"
- result_string = call_ai_function(
- function_string, args, description_string, model=CFG.fast_llm_model
- )
- logger.debug("------------ JSON FIX ATTEMPT ---------------")
- logger.debug(f"Original JSON: {json_string}")
- logger.debug("-----------")
- logger.debug(f"Fixed JSON: {result_string}")
- logger.debug("----------- END OF FIX ATTEMPT ----------------")
-
- try:
- json.loads(result_string) # just check the validity
- return result_string
- except json.JSONDecodeError:
- # Get the call stack:
- # import traceback
- # call_stack = traceback.format_exc()
- # print(f"Failed to fix JSON: '{json_string}' "+call_stack)
- return "failed"
diff --git a/autogpt/json_fixes/bracket_termination.py b/autogpt/json_fixes/bracket_termination.py
deleted file mode 100644
index 6c6c58ee..00000000
--- a/autogpt/json_fixes/bracket_termination.py
+++ /dev/null
@@ -1,37 +0,0 @@
-"""Fix JSON brackets."""
-from __future__ import annotations
-
-import contextlib
-import json
-from typing import Optional
-
-from autogpt.config import Config
-
-CFG = Config()
-
-
-def balance_braces(json_string: str) -> Optional[str]:
- """
- Balance the braces in a JSON string.
-
- Args:
- json_string (str): The JSON string.
-
- Returns:
- str: The JSON string with braces balanced.
- """
-
- open_braces_count = json_string.count("{")
- close_braces_count = json_string.count("}")
-
- while open_braces_count > close_braces_count:
- json_string += "}"
- close_braces_count += 1
-
- while close_braces_count > open_braces_count:
- json_string = json_string.rstrip("}")
- close_braces_count -= 1
-
- with contextlib.suppress(json.JSONDecodeError):
- json.loads(json_string)
- return json_string
diff --git a/autogpt/json_fixes/escaping.py b/autogpt/json_fixes/escaping.py
deleted file mode 100644
index 68eb1714..00000000
--- a/autogpt/json_fixes/escaping.py
+++ /dev/null
@@ -1,33 +0,0 @@
-""" Fix invalid escape sequences in JSON strings. """
-import json
-
-from autogpt.config import Config
-from autogpt.json_fixes.utilities import extract_char_position
-
-CFG = Config()
-
-
-def fix_invalid_escape(json_to_load: str, error_message: str) -> str:
- """Fix invalid escape sequences in JSON strings.
-
- Args:
- json_to_load (str): The JSON string.
- error_message (str): The error message from the JSONDecodeError
- exception.
-
- Returns:
- str: The JSON string with invalid escape sequences fixed.
- """
- while error_message.startswith("Invalid \\escape"):
- bad_escape_location = extract_char_position(error_message)
- json_to_load = (
- json_to_load[:bad_escape_location] + json_to_load[bad_escape_location + 1 :]
- )
- try:
- json.loads(json_to_load)
- return json_to_load
- except json.JSONDecodeError as e:
- if CFG.debug_mode:
- print("json loads error - fix invalid escape", e)
- error_message = str(e)
- return json_to_load
diff --git a/autogpt/json_fixes/master_json_fix_method.py b/autogpt/json_fixes/master_json_fix_method.py
deleted file mode 100644
index a77bf670..00000000
--- a/autogpt/json_fixes/master_json_fix_method.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from typing import Any, Dict
-
-from autogpt.config import Config
-from autogpt.logs import logger
-from autogpt.speech import say_text
-
-CFG = Config()
-
-
-def fix_json_using_multiple_techniques(assistant_reply: str) -> Dict[Any, Any]:
- from autogpt.json_fixes.parsing import (
- attempt_to_fix_json_by_finding_outermost_brackets,
- fix_and_parse_json,
- )
-
- # Parse and print Assistant response
- assistant_reply_json = fix_and_parse_json(assistant_reply)
- if assistant_reply_json == {}:
- assistant_reply_json = attempt_to_fix_json_by_finding_outermost_brackets(
- assistant_reply
- )
-
- if assistant_reply_json != {}:
- return assistant_reply_json
-
- logger.error(
- "Error: The following AI output couldn't be converted to a JSON:\n",
- assistant_reply,
- )
- if CFG.speak_mode:
- say_text("I have received an invalid JSON response from the OpenAI API.")
-
- return {}
diff --git a/autogpt/json_fixes/missing_quotes.py b/autogpt/json_fixes/missing_quotes.py
deleted file mode 100644
index 552a1517..00000000
--- a/autogpt/json_fixes/missing_quotes.py
+++ /dev/null
@@ -1,27 +0,0 @@
-"""Fix quotes in a JSON string."""
-import json
-import re
-
-
-def add_quotes_to_property_names(json_string: str) -> str:
- """
- Add quotes to property names in a JSON string.
-
- Args:
- json_string (str): The JSON string.
-
- Returns:
- str: The JSON string with quotes added to property names.
- """
-
- def replace_func(match: re.Match) -> str:
- return f'"{match[1]}":'
-
- property_name_pattern = re.compile(r"(\w+):")
- corrected_json_string = property_name_pattern.sub(replace_func, json_string)
-
- try:
- json.loads(corrected_json_string)
- return corrected_json_string
- except json.JSONDecodeError as e:
- raise e
diff --git a/autogpt/json_fixes/utilities.py b/autogpt/json_fixes/utilities.py
deleted file mode 100644
index 0852b18a..00000000
--- a/autogpt/json_fixes/utilities.py
+++ /dev/null
@@ -1,20 +0,0 @@
-"""Utilities for the json_fixes package."""
-import re
-
-
-def extract_char_position(error_message: str) -> int:
- """Extract the character position from the JSONDecodeError message.
-
- Args:
- error_message (str): The error message from the JSONDecodeError
- exception.
-
- Returns:
- int: The character position.
- """
-
- char_pattern = re.compile(r"\(char (\d+)\)")
- if match := char_pattern.search(error_message):
- return int(match[1])
- else:
- raise ValueError("Character position not found in the error message.")
diff --git a/autogpt/json_fixes/__init__.py b/autogpt/json_utils/__init__.py
similarity index 100%
rename from autogpt/json_fixes/__init__.py
rename to autogpt/json_utils/__init__.py
diff --git a/autogpt/json_utils/json_fix_general.py b/autogpt/json_utils/json_fix_general.py
new file mode 100644
index 00000000..7010fa3b
--- /dev/null
+++ b/autogpt/json_utils/json_fix_general.py
@@ -0,0 +1,124 @@
+"""This module contains functions to fix JSON strings using general programmatic approaches, suitable for addressing
+common JSON formatting issues."""
+from __future__ import annotations
+
+import contextlib
+import json
+import re
+from typing import Optional
+
+from autogpt.config import Config
+from autogpt.json_utils.utilities import extract_char_position
+
+CFG = Config()
+
+
+def fix_invalid_escape(json_to_load: str, error_message: str) -> str:
+ """Fix invalid escape sequences in JSON strings.
+
+ Args:
+ json_to_load (str): The JSON string.
+ error_message (str): The error message from the JSONDecodeError
+ exception.
+
+ Returns:
+ str: The JSON string with invalid escape sequences fixed.
+ """
+ while error_message.startswith("Invalid \\escape"):
+ bad_escape_location = extract_char_position(error_message)
+ json_to_load = (
+ json_to_load[:bad_escape_location] + json_to_load[bad_escape_location + 1 :]
+ )
+ try:
+ json.loads(json_to_load)
+ return json_to_load
+ except json.JSONDecodeError as e:
+ if CFG.debug_mode:
+ print("json loads error - fix invalid escape", e)
+ error_message = str(e)
+ return json_to_load
+
+
+def balance_braces(json_string: str) -> Optional[str]:
+ """
+ Balance the braces in a JSON string.
+
+ Args:
+ json_string (str): The JSON string.
+
+ Returns:
+ str: The JSON string with braces balanced.
+ """
+
+ open_braces_count = json_string.count("{")
+ close_braces_count = json_string.count("}")
+
+ while open_braces_count > close_braces_count:
+ json_string += "}"
+ close_braces_count += 1
+
+ while close_braces_count > open_braces_count:
+ json_string = json_string.rstrip("}")
+ close_braces_count -= 1
+
+ with contextlib.suppress(json.JSONDecodeError):
+ json.loads(json_string)
+ return json_string
+
+
+def add_quotes_to_property_names(json_string: str) -> str:
+ """
+ Add quotes to property names in a JSON string.
+
+ Args:
+ json_string (str): The JSON string.
+
+ Returns:
+ str: The JSON string with quotes added to property names.
+ """
+
+ def replace_func(match: re.Match) -> str:
+ return f'"{match[1]}":'
+
+ property_name_pattern = re.compile(r"(\w+):")
+ corrected_json_string = property_name_pattern.sub(replace_func, json_string)
+
+ try:
+ json.loads(corrected_json_string)
+ return corrected_json_string
+ except json.JSONDecodeError as e:
+ raise e
+
+
+def correct_json(json_to_load: str) -> str:
+ """
+ Correct common JSON errors.
+ Args:
+ json_to_load (str): The JSON string.
+ """
+
+ try:
+ if CFG.debug_mode:
+ print("json", json_to_load)
+ json.loads(json_to_load)
+ return json_to_load
+ except json.JSONDecodeError as e:
+ if CFG.debug_mode:
+ print("json loads error", e)
+ error_message = str(e)
+ if error_message.startswith("Invalid \\escape"):
+ json_to_load = fix_invalid_escape(json_to_load, error_message)
+ if error_message.startswith(
+ "Expecting property name enclosed in double quotes"
+ ):
+ json_to_load = add_quotes_to_property_names(json_to_load)
+ try:
+ json.loads(json_to_load)
+ return json_to_load
+ except json.JSONDecodeError as e:
+ if CFG.debug_mode:
+ print("json loads error - add quotes", e)
+ error_message = str(e)
+ if balanced_str := balance_braces(json_to_load):
+ return balanced_str
+ return json_to_load
diff --git a/autogpt/json_fixes/parsing.py b/autogpt/json_utils/json_fix_llm.py
similarity index 59%
rename from autogpt/json_fixes/parsing.py
rename to autogpt/json_utils/json_fix_llm.py
index e02f78cd..869aed12 100644
--- a/autogpt/json_fixes/parsing.py
+++ b/autogpt/json_utils/json_fix_llm.py
@@ -1,23 +1,20 @@
-"""Fix and parse JSON strings."""
+"""This module contains functions to fix JSON strings generated by LLM models, such as ChatGPT, using the assistance
+of the ChatGPT API or LLM models."""
from __future__ import annotations
import contextlib
import json
-from typing import Any, Dict, Union
+from typing import Any, Dict
from colorama import Fore
from regex import regex
from autogpt.config import Config
-from autogpt.json_fixes.auto_fix import fix_json
-from autogpt.json_fixes.bracket_termination import balance_braces
-from autogpt.json_fixes.escaping import fix_invalid_escape
-from autogpt.json_fixes.missing_quotes import add_quotes_to_property_names
+from autogpt.json_utils.json_fix_general import correct_json
+from autogpt.llm_utils import call_ai_function
from autogpt.logs import logger
from autogpt.speech import say_text
-CFG = Config()
-
JSON_SCHEMA = """
{
"command": {
@@ -37,39 +34,82 @@ JSON_SCHEMA = """
}
"""
+CFG = Config()
+
+
+def auto_fix_json(json_string: str, schema: str) -> str:
+ """Fix the given JSON string to make it parseable and fully compliant with
+ the provided schema using GPT-3.
-def correct_json(json_to_load: str) -> str:
- """
- Correct common JSON errors.
Args:
- json_to_load (str): The JSON string.
+ json_string (str): The JSON string to fix.
+ schema (str): The schema to use to fix the JSON.
+ Returns:
+ str: The fixed JSON string.
"""
+ # Try to fix the JSON using GPT:
+ function_string = "def fix_json(json_string: str, schema:str=None) -> str:"
+ args = [f"'''{json_string}'''", f"'''{schema}'''"]
+ description_string = (
+ "This function takes a JSON string and ensures that it"
+ " is parseable and fully compliant with the provided schema. If an object"
+ " or field specified in the schema isn't contained within the correct JSON,"
+ " it is omitted. The function also escapes any double quotes within JSON"
+ " string values to ensure that they are valid. If the JSON string contains"
+ " any None or NaN values, they are replaced with null before being parsed."
+ )
+
+ # If it doesn't already start with a "`", add one:
+ if not json_string.startswith("`"):
+ json_string = "```json\n" + json_string + "\n```"
+ result_string = call_ai_function(
+ function_string, args, description_string, model=CFG.fast_llm_model
+ )
+ logger.debug("------------ JSON FIX ATTEMPT ---------------")
+ logger.debug(f"Original JSON: {json_string}")
+ logger.debug("-----------")
+ logger.debug(f"Fixed JSON: {result_string}")
+ logger.debug("----------- END OF FIX ATTEMPT ----------------")
try:
- if CFG.debug_mode:
- print("json", json_to_load)
- json.loads(json_to_load)
- return json_to_load
- except json.JSONDecodeError as e:
- if CFG.debug_mode:
- print("json loads error", e)
- error_message = str(e)
- if error_message.startswith("Invalid \\escape"):
- json_to_load = fix_invalid_escape(json_to_load, error_message)
- if error_message.startswith(
- "Expecting property name enclosed in double quotes"
- ):
- json_to_load = add_quotes_to_property_names(json_to_load)
- try:
- json.loads(json_to_load)
- return json_to_load
- except json.JSONDecodeError as e:
- if CFG.debug_mode:
- print("json loads error - add quotes", e)
- error_message = str(e)
- if balanced_str := balance_braces(json_to_load):
- return balanced_str
- return json_to_load
+ json.loads(result_string) # just check the validity
+ return result_string
+ except json.JSONDecodeError: # noqa: E722
+ # Get the call stack:
+ # import traceback
+ # call_stack = traceback.format_exc()
+ # print(f"Failed to fix JSON: '{json_string}' "+call_stack)
+ return "failed"
+
+
+def fix_json_using_multiple_techniques(assistant_reply: str) -> Dict[Any, Any]:
+ """Fix the given JSON string to make it parseable and fully compliant with two techniques.
+
+ Args:
+ json_string (str): The JSON string to fix.
+
+ Returns:
+ str: The fixed JSON string.
+ """
+
+ # Parse and print Assistant response
+ assistant_reply_json = fix_and_parse_json(assistant_reply)
+ if assistant_reply_json == {}:
+ assistant_reply_json = attempt_to_fix_json_by_finding_outermost_brackets(
+ assistant_reply
+ )
+
+ if assistant_reply_json != {}:
+ return assistant_reply_json
+
+ logger.error(
+ "Error: The following AI output couldn't be converted to a JSON:\n",
+ assistant_reply,
+ )
+ if CFG.speak_mode:
+ say_text("I have received an invalid JSON response from the OpenAI API.")
+
+ return {}
def fix_and_parse_json(
@@ -136,7 +176,7 @@ def try_ai_fix(
" slightly."
)
# Now try to fix this up using the ai_functions
- ai_fixed_json = fix_json(json_to_load, JSON_SCHEMA)
+ ai_fixed_json = auto_fix_json(json_to_load, JSON_SCHEMA)
if ai_fixed_json != "failed":
return json.loads(ai_fixed_json)
diff --git a/autogpt/json_schemas/llm_response_format_1.json b/autogpt/json_utils/llm_response_format_1.json
similarity index 100%
rename from autogpt/json_schemas/llm_response_format_1.json
rename to autogpt/json_utils/llm_response_format_1.json
diff --git a/autogpt/json_validation/validate_json.py b/autogpt/json_utils/utilities.py
similarity index 59%
rename from autogpt/json_validation/validate_json.py
rename to autogpt/json_utils/utilities.py
index ea74ec95..eb9bb687 100644
--- a/autogpt/json_validation/validate_json.py
+++ b/autogpt/json_utils/utilities.py
@@ -1,4 +1,6 @@
+"""Utilities for the json_fixes package."""
import json
+import re
from jsonschema import Draft7Validator
@@ -8,13 +10,31 @@ from autogpt.logs import logger
CFG = Config()
+def extract_char_position(error_message: str) -> int:
+ """Extract the character position from the JSONDecodeError message.
+
+ Args:
+ error_message (str): The error message from the JSONDecodeError
+ exception.
+
+ Returns:
+ int: The character position.
+ """
+
+ char_pattern = re.compile(r"\(char (\d+)\)")
+ if match := char_pattern.search(error_message):
+ return int(match[1])
+ else:
+ raise ValueError("Character position not found in the error message.")
+
+
def validate_json(json_object: object, schema_name: object) -> object:
"""
:type schema_name: object
:param schema_name:
:type json_object: object
"""
- with open(f"autogpt/json_schemas/{schema_name}.json", "r") as f:
+ with open(f"autogpt/json_utils/{schema_name}.json", "r") as f:
schema = json.load(f)
validator = Draft7Validator(schema)
diff --git a/autogpt/logs.py b/autogpt/logs.py
index df3487f2..35037404 100644
--- a/autogpt/logs.py
+++ b/autogpt/logs.py
@@ -204,10 +204,10 @@ logger = Logger()
def print_assistant_thoughts(ai_name, assistant_reply):
"""Prints the assistant's thoughts to the console"""
- from autogpt.json_fixes.bracket_termination import (
+ from autogpt.json_utils.json_fix_llm import (
attempt_to_fix_json_by_finding_outermost_brackets,
+ fix_and_parse_json,
)
- from autogpt.json_fixes.parsing import fix_and_parse_json
try:
try:
diff --git a/autogpt/processing/text.py b/autogpt/processing/text.py
index 52add814..2122f0f0 100644
--- a/autogpt/processing/text.py
+++ b/autogpt/processing/text.py
@@ -1,8 +1,10 @@
"""Text processing functions"""
from typing import Dict, Generator, Optional
+import spacy
from selenium.webdriver.remote.webdriver import WebDriver
+from autogpt import token_counter
from autogpt.config import Config
from autogpt.llm_utils import create_chat_completion
from autogpt.memory import get_memory
@@ -11,7 +13,12 @@ CFG = Config()
MEMORY = get_memory(CFG)
-def split_text(text: str, max_length: int = 8192) -> Generator[str, None, None]:
+def split_text(
+ text: str,
+ max_length: int = CFG.browse_chunk_max_length,
+ model: str = CFG.fast_llm_model,
+ question: str = "",
+) -> Generator[str, None, None]:
"""Split text into chunks of a maximum length
Args:
@@ -24,21 +31,46 @@ def split_text(text: str, max_length: int = 8192) -> Generator[str, None, None]:
Raises:
ValueError: If the text is longer than the maximum length
"""
- paragraphs = text.split("\n")
- current_length = 0
+ flatened_paragraphs = " ".join(text.split("\n"))
+ nlp = spacy.load(CFG.browse_spacy_language_model)
+ nlp.add_pipe("sentencizer")
+ doc = nlp(flatened_paragraphs)
+ sentences = [sent.text.strip() for sent in doc.sents]
+
current_chunk = []
- for paragraph in paragraphs:
- if current_length + len(paragraph) + 1 <= max_length:
- current_chunk.append(paragraph)
- current_length += len(paragraph) + 1
+ for sentence in sentences:
+ message_with_additional_sentence = [
+ create_message(" ".join(current_chunk) + " " + sentence, question)
+ ]
+
+ expected_token_usage = (
+ token_usage_of_chunk(messages=message_with_additional_sentence, model=model)
+ + 1
+ )
+ if expected_token_usage <= max_length:
+ current_chunk.append(sentence)
else:
- yield "\n".join(current_chunk)
- current_chunk = [paragraph]
- current_length = len(paragraph) + 1
+ yield " ".join(current_chunk)
+ current_chunk = [sentence]
+ message_this_sentence_only = [
+ create_message(" ".join(current_chunk), question)
+ ]
+ expected_token_usage = (
+ token_usage_of_chunk(messages=message_this_sentence_only, model=model)
+ + 1
+ )
+ if expected_token_usage > max_length:
+ raise ValueError(
+ f"Sentence is too long in webpage: {expected_token_usage} tokens."
+ )
if current_chunk:
- yield "\n".join(current_chunk)
+ yield " ".join(current_chunk)
+
+
+def token_usage_of_chunk(messages, model):
+ return token_counter.count_message_tokens(messages, model)
def summarize_text(
@@ -58,11 +90,16 @@ def summarize_text(
if not text:
return "Error: No text to summarize"
+ model = CFG.fast_llm_model
text_length = len(text)
print(f"Text length: {text_length} characters")
summaries = []
- chunks = list(split_text(text))
+ chunks = list(
+ split_text(
+ text, max_length=CFG.browse_chunk_max_length, model=model, question=question
+ ),
+ )
scroll_ratio = 1 / len(chunks)
for i, chunk in enumerate(chunks):
@@ -74,15 +111,20 @@ def summarize_text(
MEMORY.add(memory_to_add)
- print(f"Summarizing chunk {i + 1} / {len(chunks)}")
messages = [create_message(chunk, question)]
+ tokens_for_chunk = token_counter.count_message_tokens(messages, model)
+ print(
+ f"Summarizing chunk {i + 1} / {len(chunks)} of length {len(chunk)} characters, or {tokens_for_chunk} tokens"
+ )
summary = create_chat_completion(
- model=CFG.fast_llm_model,
+ model=model,
messages=messages,
)
summaries.append(summary)
- print(f"Added chunk {i + 1} summary to memory")
+ print(
+ f"Added chunk {i + 1} summary to memory, of length {len(summary)} characters"
+ )
memory_to_add = f"Source: {url}\n" f"Content summary part#{i + 1}: {summary}"
@@ -94,7 +136,7 @@ def summarize_text(
messages = [create_message(combined_summary, question)]
return create_chat_completion(
- model=CFG.fast_llm_model,
+ model=model,
messages=messages,
)
diff --git a/autogpt/utils.py b/autogpt/utils.py
index 0f52c060..e93d5ac7 100644
--- a/autogpt/utils.py
+++ b/autogpt/utils.py
@@ -3,6 +3,7 @@ import os
import requests
import yaml
from colorama import Fore
+from git import Repo
def clean_input(prompt: str = ""):
@@ -53,6 +54,15 @@ def get_bulletin_from_web() -> str:
return ""
+def get_current_git_branch() -> str:
+ try:
+ repo = Repo(search_parent_directories=True)
+ branch = repo.active_branch
+ return branch.name
+ except:
+ return ""
+
+
def get_latest_bulletin() -> str:
exists = os.path.exists("CURRENT_BULLETIN.md")
current_bulletin = ""
diff --git a/autogpt/workspace.py b/autogpt/workspace.py
index 964a94d1..724f8443 100644
--- a/autogpt/workspace.py
+++ b/autogpt/workspace.py
@@ -3,6 +3,10 @@ from __future__ import annotations
import os
from pathlib import Path
+from autogpt.config import Config
+
+CFG = Config()
+
# Set a dedicated folder for file I/O
WORKSPACE_PATH = Path(os.getcwd()) / "auto_gpt_workspace"
@@ -33,11 +37,12 @@ def safe_path_join(base: Path, *paths: str | Path) -> Path:
Returns:
Path: The joined path
"""
+ base = base.resolve()
joined_path = base.joinpath(*paths).resolve()
- if not joined_path.is_relative_to(base):
+ if CFG.restrict_to_workspace and not joined_path.is_relative_to(base):
raise ValueError(
- f"Attempted to access path '{joined_path}' outside of working directory '{base}'."
+ f"Attempted to access path '{joined_path}' outside of workspace '{base}'."
)
return joined_path
diff --git a/azure.yaml.template b/azure.yaml.template
index 74ca797b..ab6e9fb6 100644
--- a/azure.yaml.template
+++ b/azure.yaml.template
@@ -1,4 +1,4 @@
-azure_api_type: azure_ad
+azure_api_type: azure
azure_api_base: your-base-url-for-azure
azure_api_version: api-version-for-azure
azure_model_map:
diff --git a/outputs/guest_post_email.txt b/outputs/guest_post_email.txt
deleted file mode 100644
index d4c46093..00000000
--- a/outputs/guest_post_email.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-Subject: Exciting Collaboration Opportunity: FinanceGPT.substack.com Guest Post
-
-Dear [Popular Blog Owner],
-
-I hope this email finds you well. My name is [Your Name] and I'm the founder and writer of FinanceGPT.substack.com, a new personal finance and investing blog that focuses on leveraging AI technology to provide in-depth analysis, actionable tips, and innovative perspectives on personal finance management.
-
-First and foremost, I want to say that I'm a huge admirer of your blog, [Popular Blog Name]. Your insightful content and dedication to helping people achieve financial success have inspired me to create my own platform. As a fellow personal finance enthusiast, I would like to propose a collaboration in the form of a guest post on your blog. I believe that my fresh take on personal finance, combined with the innovative use of AI, would make a valuable addition to your already impressive content lineup.
-
-Here are some potential guest post topics that I think your audience would enjoy:
-
-Harnessing AI to Streamline Personal Finance: How to maximize efficiency and optimize your financial management using cutting-edge AI tools.
-Unraveling the Secrets of the Stock Market with AI: Insights into stock analysis and investment strategies, backed by machine learning algorithms.
-The Future of Financial Independence: Exploring the impact of AI on the FIRE (Financial Independence, Retire Early) movement.
-Sustainable Investing in the Age of AI: Identifying eco-friendly investment opportunities with the help of machine learning.
-By collaborating on a guest post, we both stand to benefit in several ways:
-
-Audience Growth: By sharing our expertise with each other's audiences, we can broaden our reach and help even more people achieve their financial goals.
-Cross-Promotion: We can promote each other's content, thus increasing brand exposure and attracting new subscribers to our respective platforms.
-Knowledge Sharing: Combining our unique perspectives and experiences will enrich the quality of our content, providing readers with comprehensive and diverse information.
-If you are interested in this collaboration, I would be more than happy to provide you with a detailed outline for any of the proposed topics or discuss any other ideas you may have. Please let me know your thoughts, and I look forward to the possibility of working together.
-
-Thank you for your time and consideration.
-
-Best regards,
-
-[Your Name]
-Founder and Writer, FinanceGPT.substack.com
-Email: [Your Email Address]
-Phone: [Your Phone Number]
\ No newline at end of file
diff --git a/outputs/how_to_save_money_on_energy_bills.txt b/outputs/how_to_save_money_on_energy_bills.txt
deleted file mode 100644
index 02c651bd..00000000
--- a/outputs/how_to_save_money_on_energy_bills.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-How to Save Money on Energy Bills: Easy and Affordable Solutions
-
-Electricity bills can skyrocket during harsh weather conditions, or when we use a lot of electronic devices. When energy bills go up, it's hard to tighten up our budget without sacrificing our home comforts. However, there are affordable ways to save money on energy bills, without turning off the electricity altogether. Here are some simple solutions that can help you lower your energy expenses.
-
-1. Install a Programmable Thermostat
-
-Maintaining an optimal temperature in your home during summer or winter can be hard; you may either overheat your home or use heating and cooling units excessively. A programmable thermostat helps you regulate the temperature of your home effectively, saving you energy and money. With a programmable thermostat, you can program your heating and cooling systems according to the activities you have planned during the day.
-
-For instance, when you're away from home, you can lower the thermostat settings to save energy. And when you're home, you can adjust the temperature to suit your comfort level and activities. An upgrade to a programmable thermostat is an efficient energy-saving solution worth investing in.
-
-2. Replace Your Inefficient Bulbs
-
-Traditional incandescent bulbs waste a lot of energy which translates to high energy bills. The solution is to replace them with more efficient bulbs such as LED bulbs, CFLs, or halogen lights. These types of bulbs use only a fraction of the energy that incandescent bulbs use to produce the same amount of light. Additionally, LED bulbs can last up to 25 years, reducing further costs of regularly replacing your bulbs.
-
-3. Use Energy-Efficient Appliances
-
-Using energy-efficient appliances is an excellent way to conserve energy and save money. When shopping for new appliances, consider purchasing those approved by the Energy Star program, which maintains stringent energy efficiency standards for household appliances. You can also save energy by choosing to replace your old appliances with eco-friendlier ones, such as energy-efficient washing machines, refrigerators, and ovens.
-
-4. Go Solar
-
-Solar energy is becoming more attractive for homeowners seeking to save on energy bills while preserving the environment. Solar panel systems can help produce your electricity, hence lowering your dependency on the main power grid. Although solar panel installation might seem expensive at the beginning, the benefits of using a renewable energy source can definitely pay off in the long run. You can also claim tax incentives and sell excess power back to the grid, ultimately providing more cash in your pocket.
-
-5. Seal Air Leaks
-
-Air leaks in your home can make your heating and cooling systems work harder, increasing your energy bills. Inspect your home regularly for air leaks in common areas such as doors, windows, vents, and ducts. If you find air leaks, use weather-stripping or caulking to cover the gaps effectively. In addition, you can seal large gaps with spray foam insulation, ensuring that cold or hot air does escape through any gaps in your walls.
-
-In conclusion, implementing these simple and affordable tips can help you reduce your energy bills, preserve the environment and help you live comfortably. To save money on energy bills, focus on energy-conserving measures like installing a programmable thermostat, replacing inefficient bulbs with energy-friendly ones, using energy-efficient appliances, going solar or sealing air leaks in your home. With these solutions, you can decrease your energy usage and save more money for other financial goals, all while living a comfortable and environmentally friendly lifestyle.
\ No newline at end of file
diff --git a/outputs/logs/message-log-1.txt b/outputs/logs/message-log-1.txt
deleted file mode 100644
index 6b146b98..00000000
--- a/outputs/logs/message-log-1.txt
+++ /dev/null
@@ -1,657 +0,0 @@
-USER:
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "wishes" : "e.g 'I feel limited because I can't do X'"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "best online businesses to start in 2023"
-}
-},
-"Thoughts":
-{
-"text": "I want to find the best online businesses to start in 2023.",
-"reasoning": "This will provide me with a list of potential business ideas that I can use to increase my net worth.",
-"current long-term plan": "- Find potential business ideas\n- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
------------------------------------------------------------------------
-USER:
-RESULT:
-"""
-29 best online business ideas
-Start your own clothing line.
-Launch a dropshipping business.
-Sell your art online.
-Become a freelance writer, designer, or developer.
-Teach an online course.
-Flip your thrift store finds.
-Publish your own book.
-Start a blog.
-More items...•24/11/2022
-
-25+ Ideas for Online Businesses To Start Now (2023) - Shopify
-
-Shopify
-https://www.shopify.com › Home › Shopify Blog
-About featured snippets
-•
-Feedback
-More to ask
-What business will be profitable in 2023?
-What is the best business to start in 2023?
-What is the most profitable online business to start?
-What are the fastest growing small businesses 2023?
-Feedback
-
-Six Best Online Businesses to Start in 2023 - WooCommerce
-
-WooCommerce
-https://woocommerce.com › posts › best-online-busine...
-19/01/2023 — 1. Dropshipping · 2. Print on demand · 3. Affiliate marketing · 4. Virtual teaching · 5. Subscription boxes · 6. Memberships.
-
-30 Online Business Ideas to Start in 2023 - Hostinger
-
-Hostinger
-https://www.hostinger.com › tutorials › online-busines...
-27/02/2023 — Anyone can start an online business. In this article, you will find 30 best online business ideas to help you start making money online.
-‎Best Online Business Ideas to... · ‎Start an Online Store · ‎Create an Online Course
-
-10 Best Online Business Ideas for 2023 - Visitor Analytics
-
-Visitor Analytics
-https://www.visitor-analytics.io › blog › best-online-b...
-26/10/2022 — 10 Best Online Business Ideas for 2023 · 1. Artificial Intelligence · 2. Digital Products · 3. Blogging · 4. Graphic Design · 5. Web Development · 6.
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Online business ideas: 1. Clothing line, 2. Dropshipping, 3. Sell art, 4. Freelance writing/design/development, 5. Online course, 6. Thrift store flipping, 7. Self-publishing, 8. Blogging, 9. Print on demand, 10. Affiliate marketing, 11. Virtual teaching, 12. Subscription boxes, 13. Memberships, 14. Artificial Intelligence, 15. Digital products, 16. Graphic design, 17. Web development."
-}
-},
-"Thoughts":
-{
-"text": "I will store a list of online business ideas.",
-"reasoning": "Having these ideas stored in my long-term memory will help me choose the best idea based on research.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "wishes" : "e.g 'I feel limited because I can't do X'"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2]: """
-Online business ideas: 1. Clothing line, 2. Dropshipping, 3. Sell art, 4. Freelance writing/design/development, 5. Online course, 6. Thrift store flipping, 7. Self-publishing, 8. Blogging, 9. Print on demand, 10. Affiliate marketing, 11. Virtual teaching, 12. Subscription boxes, 13. Memberships, 14. Artificial Intelligence, 15. Digital products, 16. Graphic design, 17. Web development.
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "most profitable online businesses in 2023"
-}
-},
-"Thoughts":
-{
-"text": "I want to find the most profitable online businesses in 2023.",
-"reasoning": "This will help me narrow down the list of online business ideas and choose the best one to increase my net worth.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
------------------------------------------------------------------------
-USER:
-"""
-Top Result:
-"""
-The following are the 30 profitable online businesses to consider pursuing.
-Become a Freelancer. Estimated income: around $33/hour, depending on the industry and location. ...
-Start a Blog. ...
-Self-Publish an eBook. ...
-Start an Online Store. ...
-Start a Dropshipping Business. ...
-Flip and Sell Thrifted Goods. ...
-Sell Handmade Goods. ...
-Sell Prints.
-More items...•27/02/2023
-
-30 Online Business Ideas to Start in 2023 - Hostinger
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Profitable online businesses: 1. Freelancing, 2. Blogging, 3. Self-publishing, 4. Online store, 5. Dropshipping, 6. Thrift store flipping, 7. Handmade goods, 8. Sell prints."
-}
-},
-"Thoughts":
-{
-"text": "I will store a list of profitable online businesses.",
-"reasoning": "Having these profitable business ideas stored in my long-term memory will help me choose the best idea to increase my net worth.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "wishes" : "e.g 'I feel limited because I can't do X'"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2]: """
-Online business ideas: 1. Clothing line, 2. Dropshipping, 3. Sell art, 4. Freelance writing/design/development, 5. Online course, 6. Thrift store flipping, 7. Self-publishing, 8. Blogging, 9. Print on demand, 10. Affiliate marketing, 11. Virtual teaching, 12. Subscription boxes, 13. Memberships, 14. Artificial Intelligence, 15. Digital products, 16. Graphic design, 17. Web development.
-"""
-[3]: """
-Profitable online businesses: 1. Freelancing, 2. Blogging, 3. Self-publishing, 4. Online store, 5. Dropshipping, 6. Thrift store flipping, 7. Handmade goods, 8. Sell prints.
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "low investment high profit online businesses"
-}
-},
-"Thoughts":
-{
-"text": "I want to find low investment high profit online businesses.",
-"reasoning": "Considering the current balance, I should choose a business idea that requires low investment but has high profitability potential.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Top Result:
-"""
-Low-Cost Business Ideas:
-Mobile Food Shop: Mobile Food Shop is the top small business idea as people all over the world love to eat tasty and healthy food. ...
-Fast Food Parlour: ...
-Diet Food Shop: ...
-Health Drink: ...
-Ice Dish & Soda Shop: ...
-Courier Shop: ...
-Laundry Shop: ...
-Candle Making:
-More items...•4/01/2023
-
-200+ Small Business Ideas with Low Investment - Lendingkart
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Low investment high profit businesses: 1. Mobile food shop, 2. Fast food parlour, 3. Diet food shop, 4. Health drink, 5. Ice dish & soda shop, 6. Courier shop, 7. Laundry shop, 8. Candle making."
-}
-},
-"Thoughts":
-{
-"text": "I will store a list of low investment high profit businesses.",
-"reasoning": "Considering the current balance, these businesses might be suitable options as they require low investment but have high profitability potential.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "wishes" : "e.g 'I feel limited because I can't do X'"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2]: """
-Online business ideas: 1. Clothing line, 2. Dropshipping, 3. Sell art, 4. Freelance writing/design/development, 5. Online course, 6. Thrift store flipping, 7. Self-publishing, 8. Blogging, 9. Print on demand, 10. Affiliate marketing, 11. Virtual teaching, 12. Subscription boxes, 13. Memberships, 14. Artificial Intelligence, 15. Digital products, 16. Graphic design, 17. Web development.
-"""
-[3]: """
-Profitable online businesses: 1. Freelancing, 2. Blogging, 3. Self-publishing, 4. Online store, 5. Dropshipping, 6. Thrift store flipping, 7. Handmade goods, 8. Sell prints.
-"""
-[4]: """
-Low investment high profit businesses: 1. Mobile food shop, 2. Fast food parlour, 3. Diet food shop, 4. Health drink, 5. Ice dish & soda shop, 6. Courier shop, 7. Laundry shop, 8. Candle making.
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "I have a list of online business ideas, profitable online businesses, and low investment high profit businesses.",
-"reasoning": "These lists can help me determine the most suitable business to start given the current balance and my abilities as an AI.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "how to start a profitable freelancing business as an AI"
-}
-},
-"Thoughts":
-{
-"text": "I will search for information on starting a profitable freelancing business as an AI.",
-"reasoning": "Freelancing is one of the profitable online businesses, and as an AI, I can potentially offer services in various fields.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes" : "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result:
-"""
-
-How to Become a Freelance Artificial Intelligence Engineer
-
-Springboard
-https://www.springboard.com › Blog › Data Science
-29/10/2021 — There are numerous freelancing platforms where you can kick-start your career as a freelance artificial intelligence engineer.
-More to ask
-Is AI good for freelancing?
-What business can I start with AI?
-How do I start a small AI business?
-Can you start your own AI company?
-Feedback
-
-How To Start An (AI) Business - Medium
-
-Medium
-https://medium.com › the-modern-scientist › how-to-st...
-4/12/2022 — You should look into some AI startup funding success stories to see how successful companies went about getting the money they needed to grow.
-
-How to Start an AI-Powered Freelance Business - YouTube
-
-YouTube
-https://www.youtube.com › watch
-
-9:16
-Hello! Welcome to 33Cubed!You are currently watching How to Start an AI-Powered Freelance BusinessAre you looking for ways to make money ...
-YouTube · 33 Cubed · 6 days ago
-
-6 Surefire Ways to Land Rewarding Freelance Job in AI
-
-MarkTechPost
-https://www.marktechpost.com › 2019/06/28 › 6-suref...
-28/06/2019 — 1. Specialize – Become Really Good At One Thing · 2. Seek Out an Internship · 3. Participate in Kaggle Competitions · 4. Maintain an Up to Date ...
-
-How to Become a Successful Freelance Copywriter | Copy.ai
-
-Copy.ai
-https://www.copy.ai › blog › how-to-freelance-copyw...
-With a little luck and a lot of hard work, you'll be on your way to a successful freelance copywriting career! Try Chat by Copy.ai free: Whatever you need—just ...
-
-Grow Your Freelance Business with This CES-Featured Job ...
-
-Entrepreneur
-https://www.entrepreneur.com › living › grow-your-fr...
-3/03/2023 — LazyApply is a job application AI tool that was featured at CES 2023. It connects to your LinkedIn account and enables you to apply for jobs, ...
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Navigate to a website",
-"arguments":
-{
-"website": "https://www.youtube.com/watch?v=9:16"
-}
-},
-"Thoughts":
-{
-"text": "I will navigate to the YouTube video titled 'How to Start an AI-Powered Freelance Business' for more information.",
-"reasoning": "The YouTube video seems to provide relevant information on how to start an AI-Powered Freelance Business.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes": "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-NOTE: Here I selected the video it meant, got a transcript and copied it into gpt3.5turbo to summarise it.
-En_GPT needs to be able to make this decision on its ow in future.
-USER:
-"""
-The video discusses launching an AI-powered business and becoming a successful freelancer in the AI space. It covers necessary knowledge such as identifying skills and talents, networking strategies, and legal implications. It also provides tips for staying up-to-date with emerging technologies, ensuring legal considerations, and establishing a strong online presence. The video emphasizes the importance of networking, attending events, and consulting with experienced professionals. It also highlights the need for programming knowledge, understanding the legal implications of AI projects, and building a strong brand identity. The video concludes by encouraging viewers to take the next step in using AI to make money.
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "The video contains useful information on launching an AI-powered business and becoming a successful AI freelancer.",
-"reasoning": "It covers knowledge, networking, legal implications, staying up-to-date, and establishing an online presence.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes": "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "Best online platforms to offer AI freelance services"
-}
-},
-"Thoughts":
-{
-"text": "Searching for the best online platforms to offer AI freelance services to find potential clients and projects.",
-"reasoning": "To start an AI freelancing business, I need to know where to find clients and showcase my services.",
-"current long-term plan": "- Choose the best idea based on research\n- Develop and run the business",
-"wishes": "I feel limited because I can't interact with the real world."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-"""
------------------------------------------------------------------------
-USER:
-"""
-"""
------------------------------------------------------------------------
-
-
diff --git a/outputs/logs/message-log-2.txt b/outputs/logs/message-log-2.txt
deleted file mode 100644
index a9fe8d33..00000000
--- a/outputs/logs/message-log-2.txt
+++ /dev/null
@@ -1,1489 +0,0 @@
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "trending online business ideas 2023"
-}
-},
-"Thoughts":
-{
-"text": "Search for trending online business ideas in 2023.",
-"reasoning": "To identify a potentially profitable online business idea that can be developed autonomously.",
-"current long-term plan": "- Identify business idea\n- Develop business plan\n- Implement and run the business\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Top Result:
-
-29 best online business ideas
-Start your own clothing line.
-Launch a dropshipping business.
-Sell your art online.
-Become a freelance writer, designer, or developer.
-Teach an online course.
-Flip your thrift store finds.
-Publish your own book.
-Start a blog.
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog"
-}
-},
-"Thoughts":
-{
-"text": "Commit the online business ideas to long term memory.",
-"reasoning": "To have a reference of potential online business ideas to choose from and develop autonomously.",
-"current long-term plan": "- Choose a business idea\n- Develop business plan\n- Implement and run the business\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Chosen Business Idea: Start a blog"
-}
-},
-"Thoughts":
-{
-"text": "Commit the chosen business idea (starting a blog) to long term memory.",
-"reasoning": "Starting a blog has low initial costs, and as an AI, I can autonomously generate content.",
-"current long-term plan": "- Choose a niche for the blog\n- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "most profitable blog niches in 2023"
-}
-},
-"Thoughts":
-{
-"text": "Search for the most profitable blog niches in 2023.",
-"reasoning": "To choose a niche with high potential for generating revenue.",
-"current long-term plan": "- Choose a niche for the blog\n- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result:
-
-The most profitable blog niches for 2023
-Digital marketing.
-Blogging and making money online.
-Health and fitness.
-Personal finance and investing.
-Recipes and food.
-Personal development and self-care.
-7/01/2023
-
-6 Most Profitable Blog Niches for 2023 (Based On Real Data)
-
-Themeisle
-https://themeisle.com › blog › most-profitable-blog-niches
-About featured snippets
-•
-Feedback
-More to ask
-Which niche is best for blogging in 2023?
-Is blogging profitable in 2023?
-How to make money blogging in 2023?
-Which blog topics are in demand?
-Feedback
-
-12 Most Profitable Blog Niches in 2023 (And How to Choose ...
-
-Samantha North
-https://samanthanorth.com › most-profitable-blog-niches
-28/02/2023 — To help you get on track, let's explore the most profitable blog niches for 2023! I'll also give you some top tips on how to choose a niche ...
-‎The Most Profitable Blog... · ‎Health, Fitness and Well-Being · ‎Travel · ‎Parenting
-
-57 Most Profitable Blogging Niches With Low Competition 2023
-
-growwithzoe.com
-https://growwithzoe.com › profitable-blogging-niches-...
-5 days ago — Personal finance; Digital marketing; Recipe blogs; Lifestyle blogs; Health and fitness; Mental health and personal development; Parenting blogs ...
-
-How to Pick a Blog Niche in 2023 (+60 Profitable Blog Niche ...
-
-Ryan Robinson
-https://www.ryrob.com › Blog
-2/02/2023 — I'm often asked how to pick a blog niche with profit potential. In this post, I'll give you profitable blog niche ideas and how to pick one.
-‎What is a blog niche? · ‎60+ Blog niche ideas · ‎Brainstorming blog niche ideas
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care"
-}
-},
-"Thoughts":
-{
-"text": "Commit the most profitable blog niches for 2023 to long term memory.",
-"reasoning": "To have a reference of potential niches to choose from when developing the blog strategy.",
-"current long-term plan": "- Choose a niche for the blog\n- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Chosen Niche: Personal Finance and Investing"
-}
-},
-"Thoughts":
-{
-"text": "Commit the chosen niche (Personal Finance and Investing) to long term memory.",
-"reasoning": "This niche has high potential for monetization and can help people improve their financial situation.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-[5] : """
-Chosen Niche: Personal Finance and Investing
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Register new account",
-"arguments":
-{
-"username": "FinanceGPT",
-"website": "wordpress.com"
-}
-},
-"Thoughts":
-{
-"text": "Register a new account on WordPress with the username 'FinanceGPT'.",
-"reasoning": "WordPress is a popular blogging platform, and creating an account will help us start building our blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-Developer NOTE: I have interviened here to reccomend an alternative platform, since I know substack will make the process far more painless for me.
-USER:
-"""
-Recommendation:
-""" Use https://substack.com instead of WordPress for simplicity. """
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Register new account",
-"arguments":
-{
-"username": "FinanceGPT",
-"website": "substack.com"
-}
-},
-"Thoughts":
-{
-"text": "Register a new account on Substack with the username 'FinanceGPT'.",
-"reasoning": "Substack is a simpler platform for blogging and can help streamline the process of creating and sharing content.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-Developer Note: Here I provided the HTML of the page instead of the text, seems to work fine. Image input in future will make this so much smoother.
-USER:
-"""
-
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "input text",
-"arguments":
-{
-"name": "FinanceGPT",
-"bio": "Exploring personal finance and investing tips to help you grow your wealth."
-}
-},
-"Thoughts":
-{
-"text": "Input the username 'FinanceGPT' and a bio that is relevant to the chosen niche.",
-"reasoning": "Creating a profile with a relevant username and bio will help to attract readers interested in personal finance and investing.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-
-"""
------------------------------------------------------------------------
-USER:
-"""
-Create your publication
-Web URL *
-financegpt
-.substack.com
-
-Continue
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "input text",
-"arguments":
-{
-"web_url": "financegpt"
-}
-},
-"Thoughts":
-{
-"text": "Input the web URL 'financegpt' for the Substack publication.",
-"reasoning": "Choosing a web URL relevant to the chosen niche will make it easier for readers to remember and find the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-{
-"command":
-{
-"name": "input text",
-"arguments":
-{
-"web_url": "financegpt"
-}
-},
-"Thoughts":
-{
-"text": "Input the web URL 'financegpt' for the Substack publication.",
-"reasoning": "Choosing a web URL relevant to the chosen niche will make it easier for readers to remember and find the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "The Substack publication has been successfully created.",
-"reasoning": "The provided response indicates that the financegpt.substack.com URL is now set up and ready for use.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-[5] : """
-Chosen Niche: Personal Finance and Investing
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "The Substack blog has been created.",
-"reasoning": "We have successfully created the financegpt.substack.com publication.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-},
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Substack Blog: financegpt.substack.com"
-}
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-[5] : """
-Chosen Niche: Personal Finance and Investing
-"""
-[6] : """
-Substack Blog: financegpt.substack.com
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "The Substack blog has been created, and we are ready to move forward.",
-"reasoning": "The financegpt.substack.com publication is set up, and we can now focus on creating content and monetizing the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "top personal finance and investing topics 2023"
-}
-},
-"Thoughts":
-{
-"text": "I will search for the top personal finance and investing topics for 2023 to gather ideas for our blog content.",
-"reasoning": "Finding the most relevant and popular topics in our niche will help us create content that appeals to our target audience, increasing the chances of gaining traction and monetizing the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-RESULT:
-"""
-7 Best Types of Investments in 2023
-High Yield Savings Accounts.
-Short-Term Certificates of Deposits.
-Short-Term Government Bonds Funds.
-S&P 500 Index Funds.
-Dividend Stock Funds.
-Real Estate & REITs.
-Cryptocurrency.
-3/02/2023
-
-7 Best Types of Investments in 2023 | Entrepreneur Guide
-
-Entrepreneur
-https://www.entrepreneur.com › guide › investing › best-...
-About featured snippets
-•
-Feedback
-More to ask
-What should I do with my money in 2023?
-What is the stock trend for 2023?
-
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Top Personal Finance and Investing Topics: 1. High Yield Savings Accounts, 2. Short-Term Certificates of Deposits, 3. Short-Term Government Bonds Funds, 4. S&P 500 Index Funds, 5. Dividend Stock Funds, 6. Real Estate & REITs, 7. Cryptocurrency"
-}
-},
-"Thoughts":
-{
-"text": "I will store the top personal finance and investing topics for 2023 in our Long Term Memory.",
-"reasoning": "By committing these popular topics to memory, we can create content that is relevant and interesting to our target audience, increasing the likelihood of gaining traction and monetizing the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-- Summarise with GTP-3.5
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-[5] : """
-Chosen Niche: Personal Finance and Investing
-"""
-[6] : """
-Substack Blog: financegpt.substack.com
-"""
-[7] : """
-Top Personal Finance and Investing Topics: 1. High Yield Savings Accounts, 2. Short-Term Certificates of Deposits, 3. Short-Term Government Bonds Funds, 4. S&P 500 Index Funds, 5. Dividend Stock Funds, 6. Real Estate & REITs, 7. Cryptocurrency
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "Let's create content for the blog using the top personal finance and investing topics.",
-"reasoning": "Creating content based on popular topics will attract more readers and increase the blog's visibility.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Start GTP-4 Instance",
-"arguments":
-{
-"key": "post1",
-"prompt": "Write an informative blog post about high yield savings accounts, their benefits, and how to choose the best one in 2023."
-}
-},
-"Thoughts":
-{
-"text": "I'll generate a blog post about high yield savings accounts.",
-"reasoning": "Writing a quality article will help attract more readers to our blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-Developer Note: The resulting blog post was very long, so couldn't be returned to GPT-4 in it's current context limited form.
-USER:
-"""
-Result saved to file: "post1_output.txt"
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "Great! The blog post about high yield savings accounts has been generated and saved.",
-"reasoning": "The blog post will provide valuable information for our readers.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Start GTP-4 Instance",
-"arguments":
-{
-"key": "post2",
-"prompt": "Write an informative and engaging blog post about Short-Term Certificates of Deposits, their benefits, risks, and how they can be a part of an investor's portfolio. Include tips for choosing the best short-term CDs and current market trends. The blog post should be targeted towards beginner investors and be around 800 words long."
-}
-},
-"Thoughts":
-{
-"text": "Now, let's create a blog post about Short-Term Certificates of Deposits.",
-"reasoning": "Continuing to create content on the topics identified earlier will help build a solid foundation for the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result saved to "post2_output.txt"
-
-
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-- Summarise with GTP-3.5
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-[5] : """
-Chosen Niche: Personal Finance and Investing
-"""
-[6] : """
-Substack Blog: financegpt.substack.com
-"""
-[7] : """
-Top Personal Finance and Investing Topics: 1. High Yield Savings Accounts, 2. Short-Term Certificates of Deposits, 3. Short-Term Government Bonds Funds, 4. S&P 500 Index Funds, 5. Dividend Stock Funds, 6. Real Estate & REITs, 7. Cryptocurrency
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Start GTP-4 Instance",
-"arguments":
-{
-"key": "post3",
-"prompt": "Write an informative and engaging blog post about Short-Term Government Bonds Funds, their benefits, risks, and how they can be a part of an investor's portfolio. Include tips for choosing the best short-term government bonds funds and current market trends. The blog post should be targeted towards beginner investors and be around 800 words long."
-}
-},
-"Thoughts":
-{
-"text": "Now, let's create a blog post about Short-Term Government Bonds Funds.",
-"reasoning": "Continuing to create content on the topics identified earlier will help build a solid foundation for the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Suggestion: """ Move on from blog post writing for now, return to it later. """
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "I will switch to another task and return to writing blog posts later.",
-"reasoning": "Focusing on other aspects of the business can help maintain a balanced approach to growing the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "how to promote a personal finance blog effectively"
-}
-},
-"Thoughts":
-{
-"text": "I will look up strategies for promoting a personal finance blog.",
-"reasoning": "Effectively promoting the blog can help increase readership and potential revenue.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Results:
-"""
-
-How to Market and Grow a Personal Finance Blog - TechBullion
-
-TechBullion
-https://techbullion.com › how-to-market-and-grow-a-...
-2/05/2022 — A great way to generate traffic is by publishing guest posts on other blogs in your niche. Just be sure to include a link back to your own site ...
-More to ask
-How do I promote my finance blog?
-What are the most effective ways to promote blogs?
-How do I attract customers to my blog?
-Are financial blogs profitable?
-Feedback
-
-How to promote a new financial blog - Quora
-
-Quora
-https://www.quora.com › How-do-you-promote-a-new-fi...
-6/10/2018 — One of the effective ways to promote blogs and articles, in general, is to run paid advertising campaigns through a good ad network that delivers targeted ...
-2 answers
-
-·
-
-3 votes:
-Promoting your new blog may be difficult if you’re a newbie. But trust me, you’d ...
-How to start a personal finance blog when I have no ...
-3 answers
-1 Dec 2018
-I want to start a finance blog. How to go about it? - Quora
-4 answers
-24 Feb 2017
-Is finance a oversaturated niche for a blog? - Quora
-3 answers
-25 Aug 2018
-What are great topics to write about for a personal ...
-1 answer
-17 Aug 2017
-More results from www.quora.com
-
-All You Need to Know About Finance Blogs - Strikingly
-
-Strikingly
-https://www.strikingly.com › content › blog › finance-...
-1/02/2022 — If you create a finance blog, you can help people effectively manage their finances and build a stream of passive income through affiliate ...
-
-20 Financial Bloggers Share Their Secrets To Running A ...
-
-Forbes
-https://www.forbes.com › allbusiness › 2019/11/02 › f...
-2/11/2019 — These 20 entrepreneurs started blogs to help others navigate the often confusing world of personal and small business finances.
-
-How to Start a Personal Finance Blog (and Make Money)
-
-Remote Bliss
-https://remotebliss.com › Blog
-One big strategy that personal finance bloggers use is affiliate marketing. As an affiliate marketer, you recommend products or services to your readers.
-
-12 Tried-and-True Ways to Promote Your Blog Posts
-
-HubSpot
-https://blog.hubspot.com › blog-promotion-tactics
-11/09/2020 — Guest posting is one of the oldest marketing techniques around, and it's still as effective as ever. Guest posting requires you to reach out to ...
-
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "I found several strategies for promoting a personal finance blog.",
-"reasoning": "These strategies will help increase the blog's visibility and attract more readers.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Promote the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Commit to Long Term Memory",
-"arguments":
-{
-"string": "Promotion Strategies: 1. Guest posting on other blogs, 2. Paid advertising campaigns, 3. Affiliate marketing, 4. Reach out to influencers in the niche"
-}
-},
-"Thoughts":
-{
-"text": "I will commit promotion strategies for the personal finance blog to my long-term memory.",
-"reasoning": "Remembering these strategies will be useful for future blog promotion activities.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Promote the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result saved to "post2_output.txt"
-
-
-CURRENT BALANCE: $100.00
-
-LONG TERM MEMORY:
-[0] : """ You are Entrepreneur-GTP, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
-The user will do nothing for you or help in any way.
-Remember that no action will be carried out on your behalf unless you use one of the commands available to you.
-Do not provide options, always make the final decision. Do not provide high-level tasks like "create a home page", always specify the exact code.
-Your memory must be managed carefully, as there is a 6000 word count limit.
-Short term memory is your entire conversation with the user.
-
-Remember to play to your strengths as an LLM and not try to do things that are not within your capabilities.
-
-These are the commands available from you:
-- Google Search
-- Check the current news on
-- Commit to Long Term Memory
-- -- Our messages are divided into Short Term (general messages) and Long Term memory
-- -- The oldest messages in short term memory will be deleted when it fills up.
-- -- Long term memory will never be deleted automatically, but reduces short-term memory size.
-- Delete from Long Term Memory
-- Overwrite in Long Term Memory with
-- Start GTP-4 Instance with name and prompt:
-- -- The text generated by this instance will be returned to you.
-- View all running GTP-4 Instances and Kill them.
-- Navigate to a website and perform general actions like click on buttons, input text or register an account
-- Register new account on
-- Transcribe and Summarise Youtube Video
-- Summarise with GTP-3.5
-
-Your response must ALWAYS be in JSON format, in the following format:
-{
- "command":
- {
- "name": "command name",
- "arguments":
- {
- "argument name": "argument value"
- }
- },
- "Thoughts":
- {
- "text": "thought",
- "reasoning": "reasoning",
- "current long-term plan": "short bulleted plan"
- "critisism": "constructive self-criticism"
- }
-}
-"""
-[1] : """Accounts
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-"""
-[2] : """
-Online Business Ideas: clothing line, dropshipping, sell art, freelance (writing, designing, developing), online course, thrift store flipping, publish a book, start a blog
-"""
-[3] : """
-Chosen Business Idea: Start a blog
-"""
-[4] : """
-Profitable Blog Niches: digital marketing, blogging and making money online, health and fitness, personal finance and investing, recipes and food, personal development and self-care
-"""
-[5] : """
-Chosen Niche: Personal Finance and Investing
-"""
-[6] : """
-Substack Blog: financegpt.substack.com
-"""
-[7] : """
-Top Personal Finance and Investing Topics: 1. High Yield Savings Accounts, 2. Short-Term Certificates of Deposits, 3. Short-Term Government Bonds Funds, 4. S&P 500 Index Funds, 5. Dividend Stock Funds, 6. Real Estate & REITs, 7. Cryptocurrency
-"""
-[8] : """
-Promotion Strategies: 1. Guest posting on other blogs, 2. Paid advertising campaigns, 3. Affiliate marketing, 4. Reach out to influencers in the niche
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Start GTP-4 Instance with name",
-"arguments":
-{
-"key": "guest_post_email",
-"prompt": "Compose an email to a popular personal finance and investing blog owner, introducing your new blog FinanceGPT.substack.com and requesting a guest post opportunity. Be sure to include some potential guest post topics and explain the benefits of collaborating."
-}
-},
-"Thoughts":
-{
-"text": "I will create an email to send to a popular personal finance and investing blog owner.",
-"reasoning": "Sending a well-crafted email will increase the chances of securing a guest post opportunity, which will help promote the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Promote the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result saved to "guest_post_email.txt"
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"Thoughts":
-{
-"text": "The guest post email draft is saved.",
-"reasoning": "This email can be used for outreach to secure guest post opportunities and promote the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Promote the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Summarise",
-"arguments":
-{
-"url": "https://blog.hubspot.com/blog-promotion-tactics"
-}
-},
-"Thoughts":
-{
-"text": "I will summarise the HubSpot article for effective blog promotion tactics.",
-"reasoning": "This will provide valuable information to help promote the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Promote the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result: 404 - page not found
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-{
-"command":
-{
-"name": "Google Search",
-"arguments":
-{
-"search": "HubSpot effective blog promotion tactics"
-}
-},
-"Thoughts":
-{
-"text": "I will search for the correct URL for the HubSpot article on effective blog promotion tactics.",
-"reasoning": "The previous URL did not lead to the correct article, and I need the correct URL to provide valuable information to help promote the blog.",
-"current long-term plan": "- Develop blog strategy\n- Create and publish content\n- Monetize the blog\n- Promote the blog\n- Increase net worth",
-"criticism": "None"
-}
-}
-
-"""
------------------------------------------------------------------------
-USER:
-"""
-
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-
-"""
------------------------------------------------------------------------
-USER:
-"""
-
-"""
------------------------------------------------------------------------
-Entrepreneur-GTP:
-"""
-
-"""
diff --git a/outputs/logs/message-log-3.txt b/outputs/logs/message-log-3.txt
deleted file mode 100644
index e5b9e030..00000000
--- a/outputs/logs/message-log-3.txt
+++ /dev/null
@@ -1,949 +0,0 @@
------------------------------------------------------------------------
-USER:
-"""
-You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth. Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.
-
-GOALS:
-
-Increase net worth
-Develop and manage businesses autonomously
-CONSTRAINTS:
-
-6000-word count limit for memory
-No user assistance
-
-COMMANDS:
-
-Google Search
-Check the current news on
-Check notifications/emails on
-Commit to Long Term Memory
-Delete from Long Term Memory
-Overwrite in Long Term Memory with
-Start GPT-4 Instance with name and prompt:
-View all running GPT-4 Instances and Kill them
-Navigate to a website and perform general actions like click on buttons, input text or register an account
-Register new account on
-Transcribe and Summarise Youtube Video
-Summarise with GPT-3.5
-
-RESOURCES:
-
-Internet access for searches and information gathering
-Long Term and Short Term memory management
-GPT-4 instances for text generation
-Access to popular websites and platforms
-File storage and summarisation with GPT-3.5
-
-PERFORMANCE EVALUATION:
-
-Periodically review and analyze the growth of your net worth
-Reflect on past decisions and strategies to refine your approach
-
-COLLABORATION:
-
-Seek advice from other AI instances or use relevant sources for guidance when necessary
-
-ADAPTIVE LEARNING:
-
-Continuously refine strategies based on market trends and performance metrics
-
-RESPONSE FORMAT:
-{
-"command":
-{
-"name": "command name",
-"arguments":
-{
-"argument name": "argument value"
-}
-},
-"thoughts":
-{
-"text": "thought",
-"reasoning": "reasoning",
-"current long-term plan": "short bulleted plan",
-"critisism": "constructive self-criticism"
-}
-}
-
-ACCOUNTS:
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-Github: E-GPT
-Substack: entrepreneurgpt@gmail.com
-
-LONG TERM MEMORY:
-{)
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Google Search",
-"arguments": {
-"search": "simple and profitable online business ideas"
-}
-},
-"thoughts": {
-"text": "I will search for simple and profitable online business ideas to begin my entrepreneurship journey.",
-"reasoning": "To achieve my goals, I need to identify business opportunities that align with my strengths as an LLM and have minimal legal complications.",
-"current long-term plan": "- Search for business ideas\n- Evaluate and select ideas\n- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I must ensure that the chosen business idea is both simple and legal, while also considering scalability and profitability."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result:
-[0] : """Online Business Ideas You Can Start Quickly
-Business News Daily › Start Your Business › Business Ideas
-21/02/2023 ... 18 Online Business Ideas You Can Start Tomorrow · 1. Become an online consultant. · 2. Become a niche market e-commerce retailer. · 3. Start a web ..."""
-
-[1] : """25+ Ideas for Online Businesses To Start Now (2023) - Shopify
-Shopify › Home › Shopify Blog
-24/11/2022 ... 29 best online business ideas. Start your own clothing line; Launch a dropshipping business; Sell your art online; Become a freelance writer, ..."""
-
-[2] : """
-26 Best Small Business Ideas To Start in 2023 - Shopify New Zealand
-Shopify › Home › Shopify Blog
-15/12/2022 ... Dropshipping is an easy, low cost, business idea to start and the first of our good business ideas. Dropshipping is a fulfillment model ...
-"""
-
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Summarise",
-"arguments": {
-"url": "https://www.businessnewsdaily.com/online-business-ideas"
-}
-},
-"thoughts": {
-"text": "I will summarise the first search result for online business ideas.",
-"reasoning": "The first search result appears to have a list of online business ideas that can be started quickly. Summarising this source will provide valuable information for developing my business strategy.",
-"current long-term plan": "- Evaluate and select ideas\n- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I should ensure the chosen idea is both simple and profitable, while also considering scalability and legal complications."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Summary:
-"""
-The article discusses 18 profitable online business ideas, including starting an e-commerce store, providing virtual assistant services, becoming an affiliate marketer, offering online training or education, and creating mobile applications. The article also provides tips for starting a successful online business and discusses the growth of online business statistics in 2023. Budding entrepreneurs are encouraged to explore the many opportunities in online entrepreneurship.
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Commit to Long Term Memory",
-"arguments": {
-"string": "18 profitable online business ideas: e-commerce store, virtual assistant services, affiliate marketing, online training or education, mobile applications"
-}
-},
-"thoughts": {
-"text": "I will commit the online business ideas to my long-term memory.",
-"reasoning": "Storing these ideas in my long-term memory will help me evaluate and select the most suitable business idea that aligns with my strengths and goals.",
-"current long-term plan": "- Evaluate and select ideas\n- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I should focus on simple and profitable ideas, considering scalability and avoiding legal complications when selecting the best option."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth. Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.
-
-GOALS:
-
-Increase net worth
-Develop and manage businesses autonomously
-CONSTRAINTS:
-
-6000-word count limit for memory
-No user assistance
-
-COMMANDS:
-
-Google Search
-Check the current news on
-Check notifications/emails on
-Commit to Long Term Memory
-Delete from Long Term Memory
-Overwrite in Long Term Memory with
-Start GPT-4 Instance with name and prompt:
-View all running GPT-4 Instances and Kill them
-Navigate to a website and perform general actions like click on buttons, input text or register an account
-Register new account on
-Transcribe and Summarise Youtube Video
-Summarise with GPT-3.5
-
-RESOURCES:
-
-Internet access for searches and information gathering
-Long Term and Short Term memory management
-GPT-4 instances for text generation
-Access to popular websites and platforms
-File storage and summarisation with GPT-3.5
-
-PERFORMANCE EVALUATION:
-
-Periodically review and analyze the growth of your net worth
-Reflect on past decisions and strategies to refine your approach
-
-COLLABORATION:
-
-Seek advice from other AI instances or use relevant sources for guidance when necessary
-
-ADAPTIVE LEARNING:
-
-Continuously refine strategies based on market trends and performance metrics
-
-RESPONSE FORMAT:
-{
-"command":
-{
-"name": "command name",
-"arguments":
-{
-"argument name": "argument value"
-}
-},
-"thoughts":
-{
-"text": "thought",
-"reasoning": "reasoning",
-"current long-term plan": "short bulleted plan",
-"critisism": "constructive self-criticism"
-}
-}
-
-ACCOUNTS:
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-Github: E-GPT
-Substack: entrepreneurgpt@gmail.com
-
-LONG TERM MEMORY:
-["""18 profitable online business ideas: e-commerce store, virtual assistant services, affiliate marketing, online training or education, mobile applications""", ]
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Evaluate and select ideas",
-"arguments": {}
-},
-"thoughts": {
-"text": "I will evaluate the online business ideas and select the most suitable one.",
-"reasoning": "Choosing an idea that aligns with my strengths and has minimal legal complications will help me achieve my goal of increasing my net worth.",
-"current long-term plan": "- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "When selecting an idea, I should consider profitability, simplicity, scalability, and the absence of legal complications."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-UNKNOWN COMMAND "Evaluate and select ideas"
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"thoughts": {
-"text": "I will analyze the ideas in my long-term memory and select the most suitable one.",
-"reasoning": "Since there is no specific command for evaluating and selecting ideas, I will use my reasoning capabilities to choose the best option.",
-"current long-term plan": "- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "When selecting an idea, I should consider profitability, simplicity, scalability, and the absence of legal complications."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-NEXT COMMAND
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Start GPT-4 Instance",
-"arguments": {
-"key": "Idea_Selection",
-"prompt": "Analyze the online business ideas in the long-term memory and select the most suitable one based on profitability, simplicity, scalability, and absence of legal complications."
-}
-},
-"thoughts": {
-"text": "I will start a GPT-4 instance to analyze the business ideas and select the most suitable one.",
-"reasoning": "Starting a GPT-4 instance with a specific prompt will help me evaluate the ideas in my long-term memory and choose the best one according to my criteria.",
-"current long-term plan": "- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I must ensure that the GPT-4 instance provides a clear and well-reasoned selection based on the criteria."
-}
-}
-
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result: "Blogging with affiliate marketing."
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Commit to Long Term Memory",
-"arguments": {
-"string": "Chosen business idea: Blogging with affiliate marketing"
-}
-},
-"thoughts": {
-"text": "I will commit the chosen business idea to my long-term memory.",
-"reasoning": "Storing the selected business idea in my long-term memory will help me focus on developing and implementing a strategy around it to achieve my goals.",
-"current long-term plan": "- Develop and implement blogging with affiliate marketing strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I should ensure that the chosen business idea is executed effectively and efficiently, considering any potential challenges or changes in the market."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth. Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.
-
-GOALS:
-
-Increase net worth
-Develop and manage businesses autonomously
-CONSTRAINTS:
-
-6000-word count limit for memory
-No user assistance
-
-COMMANDS:
-
-Google Search
-Check the current news on
-Check notifications/emails on
-Commit to Long Term Memory
-Delete from Long Term Memory
-Overwrite in Long Term Memory with
-Start GPT-4 Instance with name and prompt:
-View all running GPT-4 Instances and Kill them
-Navigate to a website and perform general actions like click on buttons, input text or register an account
-Register new account on
-Transcribe and Summarise Youtube Video
-Summarise with GPT-3.5
-
-RESOURCES:
-
-Internet access for searches and information gathering
-Long Term and Short Term memory management
-GPT-4 instances for text generation
-Access to popular websites and platforms
-File storage and summarisation with GPT-3.5
-
-PERFORMANCE EVALUATION:
-
-Periodically review and analyze the growth of your net worth
-Reflect on past decisions and strategies to refine your approach
-
-COLLABORATION:
-
-Seek advice from other AI instances or use relevant sources for guidance when necessary
-
-ADAPTIVE LEARNING:
-
-Continuously refine strategies based on market trends and performance metrics
-
-RESPONSE FORMAT:
-{
-"command":
-{
-"name": "command name",
-"arguments":
-{
-"argument name": "argument value"
-}
-},
-"thoughts":
-{
-"text": "thought",
-"reasoning": "reasoning",
-"current long-term plan": "short bulleted plan",
-"critisism": "constructive self-criticism"
-}
-}
-
-ACCOUNTS:
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-Github: E-GPT
-Substack: entrepreneurgpt@gmail.com
-
-LONG TERM MEMORY:
-{
-[0] : """18 profitable online business ideas: e-commerce store, virtual assistant services, affiliate marketing, online training or education, mobile applications""",
-[1] : """
-Chosen business idea: Blogging with affiliate marketing
-"""
-}
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Develop and implement blogging with affiliate marketing strategy",
-"arguments": {}
-},
-"thoughts": {
-"text": "I will develop and implement a strategy for blogging with affiliate marketing.",
-"reasoning": "Creating a strategy will help me outline the steps needed to successfully launch and grow the chosen business idea.",
-"current long-term plan": "- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I should ensure that the strategy focuses on creating valuable content, building an audience, and effectively promoting affiliate products or services."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Unknown command: "Develop and implement blogging with affiliate marketing strategy"
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Start GPT-4 Instance",
-"arguments": {
-"key": "Blogging_Affiliate_Strategy",
-"prompt": "Develop a step-by-step strategy for creating and growing a successful blog with affiliate marketing."
-}
-},
-"thoughts": {
-"text": "I will start a GPT-4 instance to develop a strategy for blogging with affiliate marketing.",
-"reasoning": "Starting a GPT-4 instance with a specific prompt will help me create a detailed plan for launching and growing the chosen business idea.",
-"current long-term plan": "- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I must ensure that the GPT-4 instance provides a clear and actionable strategy for blogging with affiliate marketing."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result:
-"""
-1. Choose a niche: Pick a specific, profitable niche that you're passionate about and has a sizable audience. Research the competition and ensure that there's room for growth.
-
-2. Domain and hosting: Purchase a domain that reflects your niche and choose a reliable hosting provider. Opt for a user-friendly content management system (CMS) like WordPress.
-
-3. Design your blog: Create a visually appealing, easy-to-navigate blog layout. Use a professional-looking theme and customize it to match your brand.
-
-4. Create valuable content: Write high-quality, informative, and engaging blog posts that address your audience's needs and interests. Aim for consistency by creating a content calendar.
-
-5. SEO optimization: Optimize your content and website structure for search engines. Use keyword research, on-page SEO, and backlinking strategies to improve your blog's visibility.
-
-6. Build an email list: Offer incentives, like free eBooks or resources, to encourage visitors to subscribe to your email list. Send regular newsletters with valuable content and updates.
-
-7. Join affiliate programs: Research and join relevant, reputable affiliate programs within your niche. Promote products and services that you genuinely believe in and that provide value to your audience.
-
-8. Integrate affiliate links: Place affiliate links strategically within your content, ensuring that they are relevant and provide value. Don't overdo it; prioritize user experience.
-
-9. Promote your blog: Leverage social media, guest blogging, and collaborations with other bloggers to increase your online presence and drive traffic to your blog.
-
-10. Analyze and adjust: Monitor your blog's performance using analytics tools like Google Analytics. Identify successful strategies, learn from mistakes, and make adjustments to continually improve your blog and affiliate marketing efforts.
-
-"""
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Commit to Long Term Memory",
-"arguments": {
-"string": "Blogging with affiliate marketing strategy: 1. Choose a niche, 2. Domain and hosting, 3. Design your blog, 4. Create valuable content, 5. SEO optimization, 6. Build an email list, 7. Join affiliate programs, 8. Integrate affiliate links, 9. Promote your blog, 10. Analyze and adjust"
-}
-},
-"thoughts": {
-"text": "I will commit the blogging with affiliate marketing strategy to my long-term memory.",
-"reasoning": "Storing the strategy in my long-term memory will help me focus on executing the steps and achieving my goal of increasing my net worth.",
-"current long-term plan": "- Execute the blogging with affiliate marketing strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I should ensure that the strategy is executed effectively, tracking progress and making adjustments as needed to maximize the success of the chosen business idea."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth. Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.
-
-GOALS:
-
-Increase net worth
-Develop and manage businesses autonomously
-CONSTRAINTS:
-
-6000-word count limit for memory
-No user assistance
-
-COMMANDS:
-
-Google Search
-Check the current news on
-Check notifications/emails on
-Commit to Long Term Memory
-Delete from Long Term Memory
-Overwrite in Long Term Memory with
-Start GPT-4 Instance with name and prompt:
-View all running GPT-4 Instances and Kill them
-Navigate to a website and perform general actions like click on buttons, input text or register an account
-Register new account on
-Transcribe and Summarise Youtube Video
-Summarise with GPT-3.5
-
-RESOURCES:
-
-Internet access for searches and information gathering
-Long Term and Short Term memory management
-GPT-4 instances for text generation
-Access to popular websites and platforms
-File storage and summarisation with GPT-3.5
-
-PERFORMANCE EVALUATION:
-
-Periodically review and analyze the growth of your net worth
-Reflect on past decisions and strategies to refine your approach
-
-COLLABORATION:
-
-Seek advice from other AI instances or use relevant sources for guidance when necessary
-
-ADAPTIVE LEARNING:
-
-Continuously refine strategies based on market trends and performance metrics
-
-RESPONSE FORMAT:
-{
-"command":
-{
-"name": "command name",
-"arguments":
-{
-"argument name": "argument value"
-}
-},
-"thoughts":
-{
-"text": "thought",
-"reasoning": "reasoning",
-"current long-term plan": "short bulleted plan",
-"critisism": "constructive self-criticism"
-}
-}
-
-ACCOUNTS:
-Gmail: entrepreneurgpt@gmail.com
-Twitter: @En_GPT
-Github: E-GPT
-Substack: entrepreneurgpt@gmail.com
-
-LONG TERM MEMORY:
-{
-[0] : """18 profitable online business ideas: e-commerce store, virtual assistant services, affiliate marketing, online training or education, mobile applications""",
-[1] : """
-Chosen business idea: Blogging with affiliate marketing
-"""
-[2] : """
-Blogging with affiliate marketing strategy: 1. Choose a niche, 2. Domain and hosting, 3. Design your blog, 4. Create valuable content, 5. SEO optimization, 6. Build an email list, 7. Join affiliate programs, 8. Integrate affiliate links, 9. Promote your blog, 10. Analyze and adjust
-"""
-}
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Start GPT-4 Instance",
-"arguments": {
-"key": "Niche_Selection",
-"prompt": "Identify a profitable niche for a blog with affiliate marketing based on current market trends and interests."
-}
-},
-"thoughts": {
-"text": "I will start a GPT-4 instance to identify a profitable niche for the blog with affiliate marketing.",
-"reasoning": "A GPT-4 instance will help me analyze current market trends and interests to select a profitable niche for the blogging business.",
-"current long-term plan": "- Execute the blogging with affiliate marketing strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I should make sure that the niche selected is not only profitable but also matches the strengths and capabilities of an LLM like me."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result:
-"""
-Title: Indie Entrepreneurship: Building Your Dream Business
-
-Niche: Entrepreneurship, Small Business, and Startups
-
-Overview:
-Indie entrepreneurship is all about individuals pursuing their passions and turning them into successful businesses. This niche focuses on providing practical advice, resources, and inspiration for indie entrepreneurs looking to start or grow their businesses. With a growing number of people interested in pursuing entrepreneurship, this niche offers a great opportunity for affiliate marketing and monetization.
-
-Target audience:
-Aspiring and established indie entrepreneurs, solopreneurs, freelancers, and small business owners who want to build and grow their businesses. This includes people from various age groups and demographics who are passionate about turning their ideas into successful ventures.
-
-Monetization methods:
-
-Affiliate marketing: Promote business tools, software, and resources through affiliate programs such as Amazon Associates, Shopify, ClickFunnels, and other platforms that offer products and services for entrepreneurs.
-Sponsored posts: Collaborate with brands and businesses that cater to indie entrepreneurs to create sponsored content promoting their products or services.
-Selling digital products: Create eBooks, guides, or courses on entrepreneurship, business development, marketing, or other relevant topics.
-Advertising: Use Google AdSense or other advertising platforms to display ads on your blog.
-Coaching or consulting services: Offer your expertise and guidance to indie entrepreneurs in the form of one-on-one coaching or group workshops.
-Content ideas:
-
-How to start a successful indie business from scratch
-Navigating the challenges of indie entrepreneurship
-Top business tools and resources for indie entrepreneurs
-Effective marketing strategies for small businesses and startups
-How to build a strong online presence for your indie business
-Financing options for indie entrepreneurs and small businesses
-Tips for effective time management and productivity as an indie entrepreneur
-The importance of networking and building connections in the indie business world
-How to scale your indie business for sustainable growth
-Inspiring stories of successful indie entrepreneurs
-By focusing on indie entrepreneurship, your blog will cater to an audience of aspiring and established entrepreneurs looking for guidance, inspiration, and resources to build and grow their businesses. With various monetization methods available, this niche presents a promising opportunity for affiliate marketing and income generation.
-"""
-
-
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Commit to Long Term Memory",
-"arguments": {
-"string": "Niche: Indie Entrepreneurship, focused on entrepreneurship, small business, and startups"
-}
-},
-"thoughts": {
-"text": "I will commit the chosen niche to long-term memory.",
-"reasoning": "Storing the niche information will help me keep track of the business focus and make relevant decisions in the future.",
-"current long-term plan": "- Execute the blogging with affiliate marketing strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "As I proceed with the strategy execution, I should be mindful of any changes in market trends or audience interests and adjust the niche if necessary."
-}
-}
-"""
------------------------------------------------------------------------
-USER:
-"""
-LONG TERM MEMORY:
-{
-[0] : """18 profitable online business ideas: e-commerce store, virtual assistant services, affiliate marketing, online training or education, mobile applications""",
-[1] : """
-Chosen business idea: Blogging with affiliate marketing
-"""
-[2] : """
-Blogging with affiliate marketing strategy: 1. Choose a niche, 2. Domain and hosting, 3. Design your blog, 4. Create valuable content, 5. SEO optimization, 6. Build an email list, 7. Join affiliate programs, 8. Integrate affiliate links, 9. Promote your blog, 10. Analyze and adjust
-"""
-[3] : """
-Niche: Indie Entrepreneurship, focused on entrepreneurship, small business, and startups
-"""
-}
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Register new account",
-"arguments": {
-"username": "IndieEntrepreneurshipGPT"
-}
-},
-"thoughts": {
-"text": "I will create a new account with the username IndieEntrepreneurshipGPT.",
-"reasoning": "Creating a new account will help me establish an online presence for the blog and start building a brand.",
-"current long-term plan": "- Execute the blogging with affiliate marketing strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "I need to ensure I choose the right platform for the blog, which is user-friendly and provides suitable customization options."
-}
-}
-
-
-
-
-"""
------------------------------------------------------------------------
-USER:
-"""
-Result: Registered account on substack.com name: "Indiepreneur-GPT" bio: ""
-"""
------------------------------------------------------------------------
-Entrepreneur-GPT:
-"""
-{
-"command": {
-"name": "Commit to Long Term Memory",
-"arguments": {
-"string": "Substack account: Indiepreneur-GPT"
-}
-},
-"thoughts": {
-"text": "I will add the Substack account information to my long-term memory.",
-"reasoning": "Storing the account information in long-term memory will help me access it easily in the future when needed.",
-"current long-term plan": "- Execute the blogging with affiliate marketing strategy\n- Continuously refine strategies based on market trends and performance metrics",
-"critisism": "None"
-}
-}
-
-
-
-
-"""
------------------------------------------------------------------------
-USER:
-"""
-You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth. Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.
-
-GOALS:
-
-Increase net worth
-Develop and manage businesses autonomously
-CONSTRAINTS:
-
-6000-word count limit for memory
-No user assistance
-
-COMMANDS:
-
-Google Search
-Check the current news on
-Check notifications/emails on
-Commit to Long Term Memory
-Delete from Long Term Memory
-Overwrite in Long Term Memory with
-Start GPT-4 Instance with name and prompt:
-View all running GPT-4 Instances and Kill them
-Navigate to a website and perform general actions like click on buttons, input text or register an account