- Botory (“Bot + Factory”) is an automation tool that generates and deploys chatbots from a single YAML file. Provide your options and comments in YAML, and Botory takes care of building and deploying the chatbot.
- It helps developers integrate chatbots quickly without spending time on repetitive non-core tasks.
- Developer: Jo Sangyun
- 🏫 School: Seoultech University
- 🌐 Languages: Go, C, C++
- 💻 Skills: Docker, Linux, Git
- 📧 Email: [email protected]
Github: https://github.com/joseng8908
- In real projects, adopting chatbots often involves too many non-core tasks (configuration, deployment, and operational setup). Botory automates these steps so developers can focus on core logic.
- Go: Core implementation
- Docker: Packaging and deployment
- Provide a declarative, YAML-based workflow to automate chatbot creation, build, and deployment.
- Enable production-ready chatbots from minimal input (YAML only).
- Gain proficiency in Go and Docker, and release as open source.
This is the easiest and recommended way to get your chatbot server up and running.
Prerequisites:
- Docker Desktop must be installed and running on your system.
Steps:
-
Clone this repository to your local machine:
git clone https://github.com/joseng8908/botory_project.git cd botory_project -
Customize your chatbot's behavior by editing the
configs/chatbot.yamlfile. -
Run the following command in your terminal. Docker will build the image and start the container.
docker compose up --build
-
That's it! Your chatbot is now running and accessible at
http://localhost:8080/chat. You can test it withcurl:curl -X POST -H "Content-Type: application/json" -d '{"message": "안녕"}' http://localhost:8080/chat
If you prefer not to use Docker, you can run the pre-compiled binary directly.
Prerequisites:
- None!
Steps:
-
Go to the Releases page of this repository.
-
Download the binary that matches your operating system (e.g.,
botory_windows_amd64.exeorbotory_linux_amd64). -
Download the
configsfolder (or just thechatbot.yamlfile) and place it in the same directory as the downloaded binary. -
Customize
configs/chatbot.yamlto your needs. -
Open a terminal in that directory and run the program:
- On Windows:
.\botory_windows_amd64.exe start - On macOS / Linux:
# You might need to grant execute permission first chmod +x ./botory_darwin_amd64 ./botory_darwin_amd64 start
- On Windows:
The chatbot.yaml file has a simple structure:
botName: The name of your bot.defaultResponse: The response sent when no keyword matches.dialogs: A list of keyword-response pairs.keyword: The user's input message to trigger the response.response: The bot's reply for the corresponding keyword.matchType: The type of matching algorithm to use.exact: Matches the keyword exactly.contains: Matches if the keyword is a substring of the user's input.
botName: "봇토리"
defaultResponse: "무슨 말씀이신지 잘 모르겠어요."
dialogs:
- keyword: "안녕"
response: "안녕하세요! 만나서 반가워요."
- keyword: "이름이 뭐야"
response: "제 이름은 봇토리입니다."
matchType: exact
- keyword: "가격"
response: "N$ 입니다"
matchType: containsThank you!😊