CLAIA Zammad Extensions
Project description
CLAIA Zammad Extension
A CLAIA extension providing tool modules for Zammad helpdesk integration, including ticket management and AI-assisted processing workflows.
- Website: https://claia.dev
- License: Apache-2.0
- Python: 3.12+
Overview
This extension adds two tool modules to CLAIA for interacting with Zammad:
- zammad - Basic commands for listing, viewing, and managing tickets
- zammad_processes - AI-assisted workflows for tagging and account processing
Installation
From Source
# Clone the repository
git clone https://gitlab.com/exofox/claia/claia-zammad.git
cd claia-zammad
# Create virtual environment
python -m venv .venv
. .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -U pip
pip install -e .
From PyPI
pip install claia-zammad
Configuration
This extension requires the following configuration in your CLAIA settings:
zammad_api_token- Your Zammad API tokenzammad_base_url- Your Zammad instance URL (e.g.,https://example.zammad.com)files_directory- Directory for file operations
Usage
After installation, the Zammad tool modules will be automatically registered in CLAIA.
Basic Commands (zammad module)
# List open tickets
:zammad list
# List tickets with a specific query
:zammad list query=my-tickets
# Get ticket details
:zammad details ticket_id=123
# Add a tag to a ticket
:zammad tag_add ticket_id=123 tag=urgent
# Remove a tag from a ticket
:zammad tag_remove ticket_id=123 tag=resolved
# Find tickets by subject
:zammad find_subject subject="password reset"
# Delete tickets by subject (requires confirmation)
:zammad delete_subject subject="test ticket" confirm=true
Process Commands (zammad_processes module)
# Process a single ticket with AI tagging
:zammad_processes process_single ticket_id=123
# Remove AI tags from a ticket
:zammad_processes untag_single ticket_id=123
# Batch process untagged tickets
:zammad_processes process_tag limit=10
# Remove AI tags from all tagged tickets
:zammad_processes process_untag limit=10
# Process account management tickets
:zammad_processes process_account output_file=accounts.txt limit=5
# Process a single account ticket
:zammad_processes process_account_single ticket_id=456
Project Structure
claia-zammad/
├── src/
│ └── zammad/
│ ├── __init__.py
│ ├── api.py # Zammad API client
│ ├── constants.py # Queries and prompt templates
│ ├── plugin_basic.py # Basic commands module
│ ├── plugin_processes.py # Process workflows module
│ ├── utils.py # Formatting and AI utilities
│ └── README.md # Module documentation
├── pyproject.toml # Project config & entry points
├── deploy.sh # Deployment script
├── LICENSE
├── NOTICE
└── README.md
Module Details
API Client (api.py)
The ZammadAPI class provides HTTP-based access to Zammad:
- Ticket CRUD operations
- Article retrieval
- Tag management
- Search functionality
Utilities (utils.py)
The ZammadUtils class handles:
- Ticket formatting for display
- AI-assisted tagging workflows
- Account processing pipelines
Constants (constants.py)
Defines:
- Predefined ticket queries (open, closed, tagged, etc.)
- AI prompt templates for tagging and account processing
Building and Distribution
Build Wheel
pip install build
python -m build
# Or use the deploy script
./deploy.sh --build-whl
Build Debian Package
./deploy.sh --build-deb
Related Projects
- CLAIA Website
- CLAIA - The main CLAIA framework
- CLAIA Extension Template - Template for creating extensions
Support
- Documentation: https://claia.dev
- Issues: https://gitlab.com/exofox/claia/claia-zammad/-/issues
- Main Project: https://gitlab.com/exofox/claia/claia
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claia_zammad-0.0.1.tar.gz.
File metadata
- Download URL: claia_zammad-0.0.1.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4cf92bc98002f4cb86e0e846eea1728d8db34f341c11e3b9c48d43961d4a36
|
|
| MD5 |
bda3b54e3eebebd85487a946244b78c5
|
|
| BLAKE2b-256 |
37c0ec5d7d7459562be49d61e3a876f643d41002bd40a876114809793d904a03
|
File details
Details for the file claia_zammad-0.0.1-py3-none-any.whl.
File metadata
- Download URL: claia_zammad-0.0.1-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4d5d11c6d9c639f9a1a8313aafe8026c9b68c30e2168480e4f198e673c38cb3
|
|
| MD5 |
9e284f303db69c9422d0ac660a89f7da
|
|
| BLAKE2b-256 |
f28cc74c33d2f9e9958bce1db71d61e75aff56c2a7712d86d2021e9580e68043
|