Skip to content

Commit 6fd55c1

Browse files
authored
correct channel related docs for slack (#557)
1 parent 79b6868 commit 6fd55c1

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

fern/tools/slack.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ After connecting your Slack workspace, create the tool:
3939
3. Select **Slack** from the available options
4040
4. Choose the Slack Send Message Tool
4141
5. Provide a name and description explaining when it should be invoked
42-
6. Configure the tool with the following required fields:
43-
- `channel`: The name of the Slack channel where messages will be sent (e.g., "#general" or "#notifications")
42+
6. In the description field, specify the Slack channel where messages should be sent (e.g., "Send urgent notifications to the #customer-support channel")
4443

4544
<Note>
46-
The description field is crucial as it helps the AI model understand when and how to use the tool. Be specific about the scenarios and conditions when the tool should be invoked.
45+
The description field is crucial as it helps the AI model understand when and how to use the tool, and also specifies which channel to send messages to. Be specific about the scenarios, conditions, and target channel when the tool should be invoked.
4746
</Note>
4847

4948
### 3. Add Tool to Assistant
@@ -60,13 +59,13 @@ Now, add the Slack tool to your assistant:
6059

6160
### Slack Send Message Tool
6261

63-
This tool uses the following fields to send messages to Slack:
62+
This tool sends messages to Slack channels based on the configuration specified in the tool's description:
6463

65-
- `channel`: The name of the Slack channel where the message will be sent
66-
- `text`: The message content to be sent to the channel
64+
- The target channel is specified in the tool's description field
65+
- The message content is dynamically generated by the AI based on the conversation context
6766

6867
<Note>
69-
The channel name should be specified in the format "#channel-name". Make sure the bot has been added to the channel before sending messages.
68+
The channel name should be specified in the description in the format "#channel-name". Make sure the bot has been added to the channel before sending messages.
7069
</Note>
7170

7271
## Example Usage
@@ -81,14 +80,14 @@ Here's how the tool can be used in your assistant's configuration:
8180
"messages": [
8281
{
8382
"role": "system",
84-
"content": "You are a customer service assistant. When a customer requests a callback or needs urgent attention, use the Slack tool to notify the support team in the #customer-support channel. Include the following information in your message:\n\n- Customer name\n- Phone number\n- Reason for callback/urgent attention\n- Any specific time constraints\n\nAlways be professional and concise in your Slack messages."
83+
"content": "You are a customer service assistant. When a customer requests a callback or needs urgent attention, use the Slack tool to notify the support team. Always be professional and concise in your Slack messages."
8584
}
8685
],
8786
"tools": [
8887
{
8988
"type": "slack.message.send",
9089
"name": "notifySupport",
91-
"description": "Use this tool to send urgent notifications to the support team in the #customer-support channel. Only use this when a customer needs immediate attention or requests a callback."
90+
"description": "Send urgent notifications to the #customer-support channel when a customer needs immediate attention or requests a callback. Include customer name, phone number, reason for callback, and any time constraints."
9291
}
9392
]
9493
}

0 commit comments

Comments
 (0)