Documentation
¶
Overview ¶
AI Assistant bot that uses Ollama to generate responses in Matrix rooms.
The bot listens for messages starting with "::" and forwards the prompt to an Ollama/Open WebUI instance. The AI response is rendered as markdown and sent back to the room with user mentions.
Set environment variables before running:
export MATRIX_API_URL="https://matrix.example.com" export MATRIX_API_USER="botuser" export MATRIX_API_PASS="botpassword" export OPEN_WEB_API_GENERATE_URL="http://localhost:11434/api/generate" export OPEN_WEB_API_TOKEN="your-ollama-token" go run ./examples/ai-assistant/
Click to show internal directories.
Click to hide internal directories.