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.
Before you link
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.
Link
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
- Get alerts. Every alert Taji raises arrives as a message from your app in your DMs. Your agent sends nothing for it.
- 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.
- 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. - 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.".
- Start a new thread or switch agent. Send
taji newto start a new thread,taji agentto list your agents andtaji 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
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
| Symptom | Cause | Fix |
|---|---|---|
The sheet refuses with invalid_key | Slack did not accept the bot token | Copy the bot token again from OAuth & Permissions and paste it |
The sheet refuses with invalid_app_token | Slack did not accept the app-level token, or it lacks the connections:write scope | Generate a new app-level token with that scope and paste it |
| Slack's row reads Not paired: click for a new code | The code did not reach Taji from your account within ten minutes | Click the row and send the new code to your app |
| Slack's row reads Vault locked | The vault is closed after a restart | Open the vault in the Taji window; nothing sends until you do |
| Slack's row says Slack asked Taji to slow down | Slack rate-limited the app | Nothing: Taji sends again once Slack's wait passes; a message during the wait is not sent |
| Slack's row says Socket Mode is off | Socket Mode was turned off in your app's settings | Turn Socket Mode on under Socket Mode in your app's settings, then link again |
References
- Connect your agent
- How the Slack plugin works
- How your agent answers a phone turn
- Socket Mode
- message.im
- Tokens
plugins/slack/taji-plugin.toml,plugins/slack/src/lib.rs(sending and receiving)