Skip to main content

Slack

A direct message with your own Slack app, both ways. Taji's alerts reach your Slack DMs, and you talk to your agent from your phone by messaging the app.

You need a Slack workspace where you may install an app. Taji reads only direct messages to your app and sends as it; it never reads a channel. Your vault must be open: it seals both tokens.

The form is slack. Start it from Slack's row under Channels on the Connections page. Its steps and the words it refuses with are the plugin's manifest, taji-plugin.toml; the last step is Taji's own. The sheet shows a code. From your own Slack account, send it in a direct message to your app within ten minutes; Show a new code makes another. The account that sends the code is the owner. Once linked, the row shows when Taji last sent to you.

Use​

  1. Get alerts. Every alert Taji raises arrives as a message from your app in your DMs. Your agent sends nothing for it.
  2. Talk to your agent. Message your app from the owner account. The Taji window can be closed. The reply is your agent's last message: the figure first, then one or two short sentences.
  3. Ask for a chart. Say "show me" or "chart". The reply carries the chart as an uploaded picture, taji.png. Without that, you get text and an offer of the picture.
  4. Answer a permission card. When your agent needs a permission, the message carries buttons. Press one; the buttons are removed once you have. Taji asks Slack once; if Slack does not take it, the buttons stay. Your first press still counts, and a second is answered "No such request.".
  5. Start a new thread or switch agent. Send taji new to start a new thread, taji agent to list your agents and taji agent <id> to switch. Taji answers these itself; the agent never sees them.

The app hears only your direct messages to it. A message in a channel, an edit and a file share are ignored, and so is anyone but the owner.

An order's approval cannot come from your phone. On an account with approvals on, the order waits in the Taji window and your agent says so. What your agent can and cannot do is in Connect your agent.

Unlink Slack from its row under Channels on the Connections page (or POST /verb/channels/unlink with {"channel": "slack"}) while your vault is open. Taji stops the Socket Mode connection, deletes both sealed tokens from the vault, clears pending permission cards, and removes the link and owner pairing from its state.

Taji does not revoke the tokens at Slack. In your app's settings at https://api.slack.com/apps, revoke the app-level token under Basic Information › App-Level Tokens and uninstall or delete the app.

If it fails​

SymptomCauseFix
The sheet refuses with invalid_keySlack did not accept the bot tokenCopy the bot token again from OAuth & Permissions and paste it
The sheet refuses with invalid_app_tokenSlack did not accept the app-level token, or it lacks the connections:write scopeGenerate a new app-level token with that scope and paste it
Slack's row reads Not paired: click for a new codeThe code did not reach Taji from your account within ten minutesClick the row and send the new code to your app
Slack's row reads Vault lockedThe vault is closed after a restartOpen the vault in the Taji window; nothing sends until you do
Slack's row says Slack asked Taji to slow downSlack rate-limited the appNothing: Taji sends again once Slack's wait passes; a message during the wait is not sent
Slack's row says Socket Mode is offSocket Mode was turned off in your app's settingsTurn Socket Mode on under Socket Mode in your app's settings, then link again

References​