Zum Inhalt springen

Quick Start Guide

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Get started with Open Ticket AI in 5 minutes.

  • Python 3.13+
  • Access to an OTOBO, Znuny, or OTRS instance
  • API token or credentials for your ticket system
Terminal window
# Using uv (recommended)
uv pip install open-ticket-ai
# Or using pip
pip install open-ticket-ai
Terminal window
# Install OTOBO/Znuny plugin
uv pip install otai-otobo-znuny
# Install HuggingFace plugin (for ML)
uv pip install otai-hf-local
# Or install the complete bundle
uv pip install open-ticket-ai[all]
Terminal window
export OTOBO_BASE_URL="https://your-ticket-system.com"
export OTOBO_API_TOKEN="your-api-token"

Create config.yml:

# Load plugins
plugins:
- name: otobo_znuny
config:
base_url: '${OTOBO_BASE_URL}'
api_token: '${OTOBO_API_TOKEN}'
# Configure pipeline
orchestrator:
pipelines:
- name: classify_tickets
run_every_milli_seconds: 60000 # Run every 60 seconds
pipes:
# Fetch open tickets
- pipe_name: fetch_tickets
search:
StateType: 'Open'
limit: 10
# Log tickets (for testing)
- pipe_name: log_tickets
Terminal window
# Run the pipeline
open-ticket-ai run --config config.yml
# Or with verbose logging
open-ticket-ai run --config config.yml --log-level DEBUG

You should see output like:

[INFO] Loading configuration from config.yml
[INFO] Initializing plugins...
[INFO] Starting orchestrator...
[INFO] Running pipeline: classify_tickets
[INFO] Fetched 10 tickets
[INFO] Pipeline completed successfully

Update your config to classify tickets:

orchestrator:
pipelines:
- name: classify_tickets
run_every_milli_seconds: 60000
pipes:
- pipe_name: fetch_tickets
search:
StateType: 'Open'
limit: 10
# Add ML classification
- pipe_name: classify_queue
model_name: 'bert-base-uncased'
# Update tickets
- pipe_name: update_ticket
fields:
QueueID: '{{ context.predicted_queue_id }}'

Check out complete examples:

Terminal window
# List available configExamples
ls docs/raw_en_docs/config_examples/
# Try the queue classification example
cp docs/raw_en_docs/config_examples/queue_classification.yml config.yml
open-ticket-ai run --config config.yml
Error: Failed to connect to ticket system

Solution: Verify OTOBO_BASE_URL is correct and accessible.

Error: 401 Unauthorized

Solution: Check that OTOBO_API_TOKEN is valid and has required permissions.

Error: Plugin 'otobo_znuny' not found

Solution: Install the plugin:

Terminal window
uv pip install otai-otobo-znuny

Now that you have Open Ticket AI running:

  1. Customize Configuration: Adapt to your workflow
  2. Add More Pipes: Enhance functionality
  3. Monitor Performance: Track classification accuracy
  4. Scale Up: Process more tickets
  5. Contribute: Share your experience and improvements