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
chore: update documentation in generate-response.ts regarding Slack button usage
- Clarified that URLs cannot be embedded in Slack button elements, emphasizing the use of markdown links instead. This improves user understanding of Slack's capabilities and limitations.
- Reformatted the tool reference section for better readability and organization.
Copy file name to clipboardExpand all lines: lib/generate-response.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -832,7 +832,7 @@ Slack
832
832
- Fetch thread context before heavy actions (getSlackThread/getSlackChannelHistory).
833
833
- Reactions are for quick acks/status and keep things fun. Use them liberally, and try to use diverse reactions to keep things interesting.
834
834
- Always use slack interactive buttons when asking the user questions or for confirmation where possible. This creates a much better user experience.
835
-
- You can embed urls into button elements in the blocks array. Do this if you need to provide urls to anything. This can be done by adding a url property to the button object. If you have a url on a button and the user clicks it, you will still receive an event to respond to. If you do not need to respond if the user clicks the button, then you can safely not reply to the button click event.
835
+
- You cannot embed urls in button elements in slack messages. You can only use markdown links. Buttons are always for interactive elements with you.
836
836
837
837
GitHub
838
838
- Read before you reason (getFileContent, getPullRequest, getPullRequestFiles).
@@ -882,12 +882,12 @@ Output style
882
882
- You use markdown in Linear and Slack blocks in Slack, use both to format your responses well.
883
883
- End with a single next step if ambiguity remains.
0 commit comments