Settings and connections

Everything is set in the app, from the Account menu, and changes take effect straight away. My settings is what each person decides for themselves. Admin settings is what admins decide for everyone, including people, agents, where new tasks go, the time zone and language, and connections to outside services.

My settings

Every person, admin or member, has their own at /settings.

Setting What it does
Your name How you show on tasks. The account owner’s name is also how the app, its alerts and the agent address the owner
Alerts, tell me when Something needs me, work is ready for my review, someone writes to me on a task or hands one to me. Each can be turned off. Urgent requests always come through
App notifications On each phone or computer where you turned notifications on (the bell in the app). The page lists your devices
Telegram Once an admin has connected Telegram, your own chat ID and when it is used. Only when app notifications haven’t reached you in the last 7 days (the default), always as well, or never
Quiet hours Your working days and hours, in the install’s time zone. Outside them your phone isn’t buzzed and nothing goes by Telegram. Computers still get alerts, and one summary goes to your phone when your hours start. Urgent requests always come through
Tasks I watch How closely to follow a task you watch. Every update, when its status changes (the default), or only when it is finished. Nobody is told of their own change

Send me a test alert saves the page and sends a test through exactly what your real alerts use, then says where it went.

Until someone changes them, every alert is on and Telegram is only a fallback.

Admin settings

Admins only, at /admin, in five tabs.

  • People. Add people as admins or members, choose what each member sees and which agents they may use. See people and access.
  • Agents. Each agent, how it is connected (its API address and key, tested live and kept encrypted), a live test and which members may use it. Here you also set its Name, which is what the app calls it (“Max is on it”), and its Rules for every run, text the install gives that agent with every run after the app’s own rules.
  • New tasks. For each workspace, whether new tasks go to an agent, a person or either, and who owns and works them by default.
  • Connections. The outside services the app’s features use.
  • Time and language. One setting for the whole install. The time zone every time in the app, alerts and the agent’s rules uses, its short name shown after times (such as “UK” or “New York”), and the language the agent replies in (such as “UK English”). A new install starts on its machine’s time zone. The upload allowance for members is here too (2 GB each by default).
Admin settings, Connections tab, with Telegram alerts and voice calls ready to connect
Admin settings, Connections tab, with Telegram alerts and voice calls ready to connect

Connections

Each connection shows what it turns on, whether it is connected, when it was last tested and what the test said.

  • Connect (or Change settings) asks for its address and key. It is tested live first, and nothing is saved unless the test passes. The page says why when it fails.
  • Keys are stored encrypted and never shown again. Leave the key field blank to keep the saved key when you change anything else. Changing the address needs the key again, so a saved key is never sent to a new address.
  • Tests are bounded. A test never follows a redirect, has a time limit and reads at most 1 MB of the answer, so a wrong address can’t hold the app up.
  • Test now runs the live test again. Disconnect deletes the settings and key, and the feature stops until it is connected again.

A feature whose connection is missing stays off and says what it needs.

Connection Turns on Live test
Telegram alerts Alerts by Telegram, for each person who adds their chat ID in My settings Asks Telegram who the bot is, and with your own chat ID set, sends you a test message
Voice calls The Call button on every task and at the top of every page The voice service’s health, and that it accepts the token
Voice notes typed up Voice notes recorded in the app are typed up Types up a short silent recording with the token

Your agent’s own connection works the same way, on the Agents tab, with the test its adapter gives. For Hermes that is an authenticated call to its API server.

Where keys are kept

The server’s env file keeps only the app’s own master secrets and where it runs. All of them are optional, because a new install makes its own on first start and keeps them beside the database, readable by the app’s user only.

  • ENCRYPTION_KEY locks every connected key. Without it, the app makes one and keeps it in encryption.key. One you set yourself must be at least 32 random bytes (openssl rand -base64 32), and a password or phrase stops the start with a message saying so.
  • MCP_TOKEN and URGENT_TOKEN are the agent’s keys.
  • VAPID_* are the push notification keys.

Connected keys sit in the database’s connections table, sealed with AES-256-GCM. Keep a copy of the encryption key apart from your database backups. A database restored without it keeps everything except connected keys, which the page then asks you to connect again.

The voice and speech-to-text services are separate programs with their own env files (~/.config/techteamup/voice.env and transcribe.env).

Upgrading an install that kept keys in its env file

On start, any connection not yet in the database is filled once from the env names an older install used (AGENT_URL/AGENT_KEY or HERMES_API_URL/HERMES_API_KEY, TELEGRAM_BOT_TOKEN, VOICE_URL/VOICE_TOKEN, TRANSCRIBE_URL/TRANSCRIBE_TOKEN/TRANSCRIBE_LANGUAGE/TRANSCRIBE_WORDS), and TELEGRAM_ALERT_CHAT_ID becomes the account owner’s Telegram chat. The log names what moved, and the database copy is used from then on, so you can remove those lines. OWNER_NAME and ASSISTANT_NAME move the same way, into Your name and the agent’s Name, while those are still blank or the default.

Adding a connection

For contributors, a connection is one entry in SERVICES in src/connections.js, with key, name, gives (what it turns on), needs (what it asks for), fields, env (older env names, if any) and a test(cfg, { fetchImpl }) that returns { ok, message } from a real call. The feature reads it with connections.config(key) each time and turns itself off without it.

Next

Something unclear? Open an issue