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
Copy file name to clipboardExpand all lines: fern/tools/slack.mdx
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,10 @@ After connecting your Slack workspace, create the tool:
39
39
3. Select **Slack** from the available options
40
40
4. Choose the Slack Send Message Tool
41
41
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")
44
43
45
44
<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 scenariosand 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.
47
46
</Note>
48
47
49
48
### 3. Add Tool to Assistant
@@ -60,13 +59,13 @@ Now, add the Slack tool to your assistant:
60
59
61
60
### Slack Send Message Tool
62
61
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:
64
63
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
67
66
68
67
<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.
70
69
</Note>
71
70
72
71
## Example Usage
@@ -81,14 +80,14 @@ Here's how the tool can be used in your assistant's configuration:
81
80
"messages": [
82
81
{
83
82
"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."
85
84
}
86
85
],
87
86
"tools": [
88
87
{
89
88
"type": "slack.message.send",
90
89
"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 channelwhen a customer needs immediate attention or requests a callback. Include customer name, phone number, reason for callback, and any time constraints."
0 commit comments