Skip to main content

CLAIA Zammad Extension

A CLAIA extension providing tool modules for Zammad helpdesk integration, including ticket management and AI-assisted processing workflows.

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 token
  • zammad_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

Support

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Metadata

Release files for claia-zammad 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claia-zammad 0.0.1
File Size Uploaded Provenance Actions
claia_zammad-0.0.1.tar.gz 19.0 kB Without provenance Details for claia_zammad-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claia-zammad 0.0.1
File Interpreter ABI Platform Actions
claia_zammad-0.0.1-py3-none-any.whl Python 3 none any Details for claia_zammad-0.0.1-py3-none-any.whl

Total release size: 41.3 kB

Release files / claia_zammad-0.0.1.tar.gz

Download URL claia_zammad-0.0.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
db4cf92bc98002f4cb86e0e846eea1728d8db34f341c11e3b9c48d43961d4a36
BLAKE2b-256 checksum
How to use checksums
37c0ec5d7d7459562be49d61e3a876f643d41002bd40a876114809793d904a03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / claia_zammad-0.0.1-py3-none-any.whl

Download URL claia_zammad-0.0.1-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4d5d11c6d9c639f9a1a8313aafe8026c9b68c30e2168480e4f198e673c38cb3
BLAKE2b-256 checksum
How to use checksums
f28cc74c33d2f9e9958bce1db71d61e75aff56c2a7712d86d2021e9580e68043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for claia-zammad 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page