Skip to content

Set up Slack

Connect Slack so your team sees approval requests and alerts where they already work, and can ask Edict about requests and environments without leaving Slack. Slack delivers the message and carries the question. Approving or denying always happens in Edict, with a passkey.

Who this is for: org admins setting up Edict for their team, and anyone who wants to use /edict in Slack.

  • You are an org admin in Edict. Other members see: Only org admins can see and change where Slack messages go and the Slack switches.
  • You can install apps in the Slack workspace, or a Slack admin can approve the install for you.
  • You are connecting a single workspace. Edict cannot be installed across a whole Enterprise Grid organization.
  • One Slack workspace connects to one Edict organization at a time.

Changes to Slack settings need a recent sign-in, so some steps ask you to sign in again.

  1. In Edict, open Settings, then the Slack tab.
  2. Select Connect Slack.
  3. Slack opens. Check the workspace, review the permissions and select Allow.
  4. You return to Edict and see Slack is connected.

Once connected, the button reads Reconnect Slack. Use it later if Edict asks for more access.

If the install does not finish, Edict tells you why:

  • Edict cannot be installed across a whole Enterprise Grid organization. Install it in a single workspace instead.
  • That Slack workspace is already connected to another Edict organization. A workspace can be connected to one organization at a time.

The Edict app never joins a channel on its own. In Slack, add the app to each channel you want to use, public or private. Channels the app is not in are listed in Edict but cannot be chosen.

Under Where messages go, Edict says: “Choose a Slack channel for approval requests and one for alerts. Changes need a recent sign-in.” There are two cards:

  • Approval requests: a message says a change is waiting for approval and links to Edict.
  • Alerts: a message says a change paused, failed or was refused, and links to Edict.

For each card:

  1. Choose the channel.
  2. Select Send test message and check the channel in Slack.

For Alerts, pick which kinds to post: Paused, Failed and Refused. Paused and Failed are on by default.

You can use the same channel for both cards, or different ones.

Each channel has a detail level. The one Edict picks for you is marked (default for this channel).

Level What the message shows Default for
Summary Who asked, a one-line summary of the change, whether it is production, and when it expires. Private channels
Minimal Who asked, the kind of change and when it expires. Nothing about what it changes. Public and shared channels

Whatever the level, no message shows the plan, values, resource IDs, account numbers, cost or text written by an agent.

If a channel is shared with people outside your organization, Edict warns you: This channel is shared with people outside your organization. At the summary level they can read Edict’s one-line summary of each change and whether it is production.

Two org switches on the Slack tab control what people can do from Slack:

  • Ask Edict from Slack: lets people who have linked their Slack account use /edict to ask about requests and environments, and to request changes.
  • Cards in the channel: lets Edict post its request cards in Slack channels. Cards are never posted in a channel shared with people outside your organization.

When a change needs approval, Edict posts a card in your approval channel with who asked, the kind of change, and when it expires. Review request or Open request is a link: it opens the request in Edict, where you approve or deny it with your passkey. Every card ends with:

Approving or denying needs your passkey on Edict. Nothing can be approved or denied from Slack.

As the request moves on, Edict updates the card and replies in its thread, for example Applied. All 5 steps completed.

Alerts appear in the alerts channel with a link to the request. If many changes are refused in a short time, Edict posts one summary instead of flooding the channel, for example: More changes refused. Edict did not accept 4 more changes in the last 10 minutes. Nothing ran.

To use /edict, link your Slack account to your Edict account once. Requests you make from Slack use your current Edict account and permissions.

  1. In Edict, open Settings, then Slack, and select Get a link code. Edict shows a code like EDICT-XXXXX-XXXXX with this note: “Give this code to Edict in Slack. Edict then asks you here to confirm the Slack account. It is not connected until you do. This code is shown only now and works once. Do not share it.”
  2. In Slack, send /edict link EDICT-XXXXX-XXXXX with your code.
  3. Back in Edict, you see Confirm this Slack account? Confirm it.

Codes work only through the /edict link slash command. Sending a code in a direct message does nothing.

To disconnect your Slack account, send /edict unlink. Edict replies: Your Slack account is disconnected from Edict.

Send /edict help to see what you can do. You can also mention the Edict app in a channel it is in, using the same words.

Read commands:

Command What it shows
/edict status Your open requests
/edict status REQUEST One request
/edict status ENV One environment
/edict pending Requests still waiting
/edict environments Your organization’s environments
/edict show ENV One environment in more detail
/edict resources ENV The resources in an environment
/edict history ENV An environment’s history

Request a change: use /edict change, destroy, rollback, action or operation. Each request goes through the same policy check and, where your rules require it, waits for approval with a passkey in Edict. New infrastructure is asked for from an AI assistant connected to Edict, never from Slack.

Cancel a request: /edict cancel with a request id withdraws your own request before anyone approves it.

Undo a change: /edict undo with the id of your own completed request asks for it to be undone. The undo waits for approval with your passkey in Edict. If your admins have turned this off, Edict replies: Undoing from Slack is turned off. Undo the action in Edict.

Approve or deny: not possible from Slack. /edict approve and /edict deny reply: Approving and denying are done in Edict with your passkey, never in Slack. Open the request in Edict to decide it.

Other commands are not available.

By default, each person can send 20 commands a minute, an organization 120, a Slack account that is not linked 5, and /edict link can be tried 3 times a minute. Past the limit, Edict replies: Too many requests. Try again in a minute.

  1. Open Settings, then Slack.
  2. Select Disconnect Slack. Edict asks Disconnect Slack? and explains: “Approval requests and alerts stop posting to Slack, and asking Edict from Slack stops working. The channels you chose are kept and are used again if the same workspace is connected again.”
  3. Confirm.

You then see one of these:

  • Slack is disconnected. Approval requests and alerts are no longer posted to Slack.
  • Slack is disconnected in Edict, but Slack did not confirm removing the app. Remove the Edict app in your Slack workspace settings. Do what it says, in Slack.

Messages already in Slack stay.

Edict asks only for bot permissions. It never asks to act as you. It reads a channel message only when someone mentions the Edict app.

Permission Why
chat:write Post approval requests, alerts, cards and thread replies, only in channels the app was added to.
channels:read List public channels for the channel picker. It does not read messages.
groups:read List private channels the app was added to.
commands Answer the /edict slash command.
app_mentions:read Answer when someone mentions the Edict app.
im:write Send you a direct message from the Edict app.
im:history Read your direct messages with the Edict app.
users:read Tell a full member from a guest or an outside person.
users:read.email Match your Slack account to your Edict account when you link them.
You see What to do
A channel is listed but cannot be chosen Add the Edict app to the channel in Slack, then try again.
Not delivering with The channel was archived in Slack. Choose a channel again to resume messages.
Not delivering with Slack no longer finds the channel. Choose a channel again to resume messages.
Not delivering with The Edict app was removed from the channel. Add the app back, or choose another channel, to resume messages.
That Slack workspace is already connected to another Edict organization. A workspace connects to one organization at a time. Disconnect it there first.
Edict cannot be installed across a whole Enterprise Grid organization. Install Edict in a single workspace instead.
Edict cannot read member emails for this workspace. An administrator can reconnect Slack in Edict Settings to allow linking. An org admin selects Reconnect Slack and allows the listed permissions.
Your Slack home workspace is not the workspace connected to Edict. This account cannot be linked from here. Link from an account whose home workspace is the one connected to Edict.
Too many requests. Try again in a minute. Wait a minute, then send the command again.