**Tailchat Assistant is your very own AI-powered chat bot, ready to implement into your guild!**
---
## Prerequisites
- A [Tailchat](https://tailchat.msgbyte.com/docs/deployment/docker-compose) server (duh)
- Make sure the "Openapi Platform Plugin" and "App Integration" plugins are enabled
- An OpenAI API Key / OpenAI API compatible service ([LocalAI is recommended](https://localai.io/basics/getting_started/))
- If you are using something like LocalAI, be sure to have a decently powerful machine to make response times as fast as possible!
## Getting started
1. Clone the project and install dependencies:
```bash
git clone https://git.povario.com/powermaker450/Tailchat-Assistant && cd Tailchat-Assistant
npm i
```
2. Create the `.env` file from the example file:
```bash
mv .env.example .env
```
3.**Make sure that the "Openapi Platform Plugin" and "App Integration" plugins are enabled.** Then [follow the instructions here to create an App.](https://tailchat.msgbyte.com/docs/advanced-usage/openapp/create)
4. Open up the `.env` file with your preffered text editor and populate the file:
```bash
HOST=http://localhost:11000
# wherever your Tailchat server is running
ID=
# your bot ID
SECRET=
# Your bot secret
API_ENDPOINT=http://localhost:8080/v1
# The OpenAI-compatible endpoint for the bot to send messsages to. Defaults to "http://localhost:8080/v1"