This project includes integration with the [Open WebUI bot](https://github.com/open-webui/bot) to provide AI responses in OpenWebUI channels. See [BOT_README.md](BOT_README.md) for detailed instructions on how to use the bot.
### Bot Integration
The bot is integrated with the AI service and starts automatically when the service starts (if `BOT_ENABLED=true` in the `.env` file). The bot connects to OpenWebUI via WebSocket and listens for messages in channels. When a message mentions the AI (using trigger words like `@ai`), the bot processes the message and sends a response back to the channel.
### Bot API Endpoints
The AI service provides the following endpoints to manage the bot:
- `GET /bot/status`: Get the status of the bot (enabled and running)
- `POST /bot/start`: Start the bot if it's not already running
- `POST /bot/stop`: Stop the bot if it's running
You can also check the bot status in the configuration endpoint:
- `GET /config`: Get the current configuration, including bot status
### Running the Bot Separately
If you want to run the bot separately from the AI service, you can use the provided scripts: