Skip to content

Commit c1a2293

Browse files
committed
fix(slack): better prompt suggestion
1 parent d66e291 commit c1a2293

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/channels/slack.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ async fn set_suggested_prompts(
9393
"What can you help me with?".to_string(),
9494
));
9595

96-
// Add skills as prompts
96+
// Add skills as prompts using their descriptions
9797
if let Ok(available_skills) = skills::discover_skills() {
9898
for skill in available_skills.iter().take(3) {
9999
// Leave room for default prompt
100100
prompts.push(SlackAssistantPrompt::new(
101-
skill.name.clone(),
102-
format!("Help me with {}", skill.name),
101+
skill.description.clone(), // e.g., "Get latest assessment statistics"
102+
skill.description.clone(), // Send the description as the message
103103
));
104104
}
105105
}

0 commit comments

Comments
 (0)