Skip to main content

Matrix Support Bot

Support Private.coffee!

Matrix Support Bot is a support ticket bot for the Matrix protocol built using the matrix-nio library. The bot allows users to open support tickets and communicate with support operators in a structured manner. Operators can manage tickets and relay messages between customer-facing and operator-facing rooms.

Features

  • The bot's state is stored in a Matrix room, so no external database is required.
  • Users can invite the bot to a direct message (DM) and receive instructions on how to open a support ticket.
  • Users can open support tickets using the !supportbot openticket command.
  • The bot creates a new customer-facing room for each ticket and invites the user to it.
  • Operators are notified of new tickets in a shared operator room.
  • Operators can join operator-facing rooms for each ticket and communicate with customers.
  • Messages between customer-facing and operator-facing rooms are relayed by the bot.
  • Operators can close tickets and list open tickets using bot commands.
  • Supports relaying of different message types, including text and media.

Commands

User Commands

  • !supportbot openticket - Opens a new support ticket and creates a customer-facing room.

Operator Commands

  • !supportbot invite <ticket_id> - Invites an operator to the operator-facing room for the specified ticket.
  • !supportbot close <ticket_id> - Closes the specified ticket.
  • !supportbot list - Lists all open tickets.

Installation

  1. Install from PyPI:

    pip install matrix-supportbot
    
  2. Create a config.yaml file with your Matrix credentials and operator room ID:

    homeserver: "https://homeserver.example"
    username: "your_username"
    password: "your_password"
    operator_room_id: "!your_operator_room_id:homeserver.example"
    

Usage

Run the bot with the following command:

supportbot

The bot will log in to your Matrix server, join the operator room, and start listening for commands and invites.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for matrix-supportbot 0.1.2

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

Source distribution (sdist)

Source distribution for matrix-supportbot 0.1.2
File Size Uploaded
matrix_supportbot-0.1.2.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for matrix-supportbot 0.1.2
File Interpreter ABI Platform
matrix_supportbot-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / matrix_supportbot-0.1.2.tar.gz

Download URL matrix_supportbot-0.1.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
94f56f0c55f0b8744b4c0619f33fbb8f05074bbf1c0e7108ebfebe73e3044735
BLAKE2b-256 checksum
How to use checksums
34efe60e63565b6fbda089c708ff3721c31f587d49d0684cbdf8d027a6a826c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Release files / matrix_supportbot-0.1.2-py3-none-any.whl

Download URL matrix_supportbot-0.1.2-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9cdba2c00c054be7eb46ea39121f3b114689406d1c6c302c76f29724bb76470
BLAKE2b-256 checksum
How to use checksums
c704da8da1418e43eee1d1d45f7041ca953d121cd5b68ccd653102b7b2e8137c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

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