Works with: Graphify and Slack. Time: about 20 minutes, once Slack is connected.
What you’ll build
- An
#ask-the-codechannel bound to your main service’s repository. - A short list of questions on-call and support can ask, with answers that cite code.
- Incident lessons kept in Memory, so answers in the channel can use them.
- A clear rule for when to move a question to a direct message.
Before you start
- Slack connected to your Graphify workspace. If it isn’t yet, follow Slack first.
- You are a workspace Owner or Admin. Only they can add channels in the Slack settings.
- Everyone in the channel is a member of the Graphify workspace, with the same email in Slack and in Graphify. Invite them from Workspaces and members.
Set up the channel
1
Create the channel and pick its repository
Create a channel such as
#ask-the-code inside your own Slack workspace. Graphify doesn’t answer in channels shared with other organizations. In Graphify, open Connectors, then the Integrations tab, and click Manage on the Slack tile. Under Channels, choose the channel from Add a channel…, pick the repository on-call asks about most, click Add, then Save. In Slack, invite @Graphify to the channel. Until you do, Graphify shows “Invite @Graphify to this channel so it can reply.”A channel answers from that one repository. For other repositories, people ask in a direct message with owner/repo.2
Pin the questions that work
Pin a message with questions that name a function, a file or a pull request:Graphify replies in a thread with sources. A question about a pull request is answered from its completed review, or Graphify says the review is still running.
3
Keep the lessons on-call needs
Answers use kept memory only. After each incident, record it in Memory with Record an incident, list the files in Related code paths, and make sure the memory is kept, not left as a suggestion. See Remember incident lessons and Review team memory.
4
Agree when to use a direct message
Everyone in the channel reads every answer. Post this in the channel description: questions about code people in the channel shouldn’t see go to a direct message with
@Graphify, where only the asker sees the answer.Read the answers well
Answers reflect the latest build of the repository’s default branch. A fix pushed to a branch, or still building, isn’t in the answer yet.
Check that it works
- Ask a pinned question in the channel. The reply arrives in a thread and cites at least one file.
- Ask about a function a kept incident memory names. The answer reflects that lesson.
- Ask a teammate who isn’t in the Graphify workspace to ask. Graphify asks them to get invited instead of answering.
Troubleshooting
Next steps
Slack
Every Slack setting, limit and reply.
Write a postmortem
Turn the next incident into lessons the channel can use.