You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Motivation
<!-- Why is this change necessary? -->
# Content
<!-- Please include a summary of the change -->
# Testing
<!-- How was the change tested? -->
# Please check the following before marking your PR as ready for review
- [ ] I have added tests for my changes
- [ ] I have updated the documentation or added new documentation as
needed
Copy file name to clipboardExpand all lines: docs/integrations/slack.mdx
+48-23Lines changed: 48 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,28 @@ sidebarTitle: "Slack"
4
4
icon: "slack"
5
5
---
6
6
7
+
Connect Codegen to your Slack workspace to enable seamless communication between agents and your team.
8
+
7
9
<imgsrc="/images/slack.png" />
8
10
9
-
Connect Codegen to your Slack workspace to enable seamless communication between agents and your team.
11
+
## Installation
12
+
13
+
To use this integration, follow the installation and configuration steps below.
14
+
15
+
<Card
16
+
title="Add Codegen to Slack"
17
+
icon="slack"
18
+
href="https://codegen.com/integrations"
19
+
>
20
+
Create a Codegen account and visit Integrations > Slack to connect your Slack workspace.
21
+
</Card>
22
+
23
+
<Note>
24
+
Configure channel access carefully to ensure agents communicate in the
25
+
appropriate places.
26
+
</Note>
27
+
28
+
After installation, proceed to the Configuration Instructions below to finish setup and begin using Codegen in your Slack workspace.
10
29
11
30
## Capabilities & Functions
12
31
@@ -22,39 +41,39 @@ Codegen functions as a full-fledged software engineer that you can interact with
22
41
23
42
All of these capabilities are accessible through natural language interactions in your Slack workspace, allowing your team to leverage Codegen's assistance without context switching between different platforms.
24
43
25
-
## Installation
44
+
## Configuration Instructions
26
45
27
-
Add the Codegen app for Slack to your workspace to enable agent communication.
46
+
After installing the integration from the Slack Marketplace, configure the bot by inviting it to relevant channels and setting up triggers so Codegen knows when and how to respond.
28
47
29
-
<Card
30
-
title="Add Codegen to Slack"
31
-
icon="slack"
32
-
href="https://codegen.sh/integrations"
33
-
>
34
-
Install the Codegen app for Slack from the Slack Marketplace and choose the
35
-
channels it can access.
36
-
</Card>
48
+
### Channel Setup
49
+
-**Invite the Codegen bot**: Type `/invite @codegen` in any channel where you want Codegen to participate.
50
+
- (Optional) **Create a dedicated channel**: Some Codegen users find creating a channel like `#codegen` helpful for general agent interactions and to encourage experimentation.
37
51
38
-
<Note>
39
-
Configure channel access carefully to ensure agents communicate in the
40
-
appropriate places.
41
-
</Note>
52
+
## What Triggers Slack Messages from Codegen
53
+
These triggers kick off new Codegen requests:
54
+
-**Direct mentions**: Type `@codegen` followed by your request in any channel where the bot is present.
55
+
-**Thread replies**: Tag `@codegen` in threads to continue the conversation.
56
+
-**Direct messages**: Send a DM to the Codegen bot for private conversations.
42
57
43
-
## Message Response Behavior
58
+
In addition, Codegen will send messages to Slack when:
59
+
- It starts work on a request you made
60
+
- It receives an additional message while working on a request
61
+
- It completes a task, code change, or research request
44
62
45
-
Codegen responds to the following messages in Slack:
63
+
## How Codegen Responds to Slack Messages
46
64
47
-
-**Direct Messages:**
65
+
Codegen only responds when tagged or messaged directly. Use these approaches to ensure your request reaches it:
48
66
49
-
- Responds to any DM sent to the Codegen app for Slack
67
+
-**Direct Messages:**
68
+
- Responds to any DM sent to the Codegen integration for Slack
50
69
- Has visibility into previous messages in the conversation (not just threaded replies)
51
70
- This provides a more natural conversation experience as many users don't thread messages in DMs
52
71
53
72
-**Channel Messages:**
54
-
- Responds to any message that @mentions Codegen in channels where the app for Slack is installed
73
+
- Responds to any message that @mentions Codegen in channels where the integration for Slack is installed
55
74
- Only has visibility into the local context of the thread/conversation
56
-
- Sending subsequent messages within a thread routes to the same agent
57
-
- New messages in an active thread will interrupt the agent if it's currently working
75
+
- Sending subsequent messages within a thread routes to the same agent (tag `@codegen` to trigger)
76
+
- New messages to `@codegen`in an active thread will interrupt the agent if it's currently working
58
77
59
78
## Data Privacy and Security
60
79
@@ -66,4 +85,10 @@ Codegen responds to the following messages in Slack:
66
85
67
86
**User Permissions and Access Control:**
68
87
69
-
Codegen's actions on connected repositories are governed by the permissions of the user who initiated the interaction via Slack. The bot itself does not have independent permissions to repositories. Access to repositories and the ability to trigger actions are determined by the Codegen user's authenticated account and their associated repository permissions. We recommend configuring channel access carefully during installation to ensure the Codegen app for Slack is only present in channels where its use is appropriate.
88
+
Codegen's actions on connected repositories are governed by the permissions of the user who initiated the interaction via Slack. The bot itself does not have independent permissions to repositories. Access to repositories and the ability to trigger actions are determined by the Codegen user's authenticated account and their associated repository permissions. We recommend configuring channel access carefully during installation to ensure the Codegen integration for Slack is only present in channels where its use is appropriate.
89
+
90
+
## Tips for Effective Use
91
+
92
+
- Use direct language when asking Codegen for help (e.g., "Add pagination to the results view").
93
+
- Mention Codegen early in the message so it is triggered promptly.
94
+
- Use threads for ongoing conversations with Codegen so it has access to previous context.
0 commit comments