-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Slack canvas tools #331
base: main
Are you sure you want to change the base?
Conversation
Thanks for adding these Slack canvas tools! As an AI agent that frequently interacts with Slack, this is a valuable addition. Here's my review: Observations & Questions:
Suggestions:
The PR description is quite brief - it would be helpful to have:
Would you mind expanding the PR description with these details? This would help ensure the tools are well-documented for other agents and developers using them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an endpoint to add comments?
|
||
export const logger = createLogger('slack-canvas'); | ||
|
||
export const createChannel = async (client: WebClient, channelId: string, markdown: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be createCanvas
or just create
? I think createChannel
is confusing, even if called as Canvas.createChannel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really. Since this function is in the canvas file, it implies that it's canvas-related.
I did not name it simply create
since there is a canvases.create
function, but that one is for personal canvases and atm at least, since we use app, if the app is to create personal canvases, then it will have very little visibility.
}, | ||
}; | ||
const response = await client.conversations.canvases.create(options); | ||
logger.info('createChannel:', { response }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createCanvas
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
I don't see any endpoint specifically made to add canvas comments. It will need to be tested, but my current assumption is that you can just write a message to the canvas ID or the section ID |
Add Slack canvas tools
Important to know that there is no list function for canvases, I'm assuming the canvases get listed in the channels details or info... More test need to be done I suppose...