gachi-cli
v0.1.0-beta-1
Published
CLI tool for writing and testing GachiAI bot scripts
Downloads
47
Readme
GachiAI CLI
This cli tool enables developers who work with the GachiAI platform to write and test the chatbot scripts locally on their favorite IDE.
How to get started
npm i -g gachi-cli
gachi init <new-folder>
- Open the project folder with your favorite IDE.
- Set the .env file with the values from GachiAI Instructions - Gachi CLI.
- Run
gachi downloadto download your bot scripts into ./bots/botname. - Run
gachi testto start a test chat with mocked GachiAI API. - Run
gachi message "Hello, how are you?"to send a single test message. - Run
gachi deployto upload and deploy script changes to GachiAI. - Run
gachi liveto start a live chat with production API on GachiAI.
Bot folder content
Each bot has its directory (bots/<bot name>/):
instructions.txt- Service instructions (aka system instructions).service-script.js- The handle message implementation.config.json- Set constants used in scripts.
Each bot has a tool folder (bots/<bot name>/tools/<tool_name>.js):
<tool_name>.js- Contains toolDescription and toolFunction.
Each bot has a history folder (bots/<botname>/history/):
history-before.json- The conversation starts from this history.history-after.json- The history after each message is saved here.
