ai-assistant

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 9 Imported by: 0

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/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL