Usage #
// Import the typed helper
import { archiveConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...archiveConversation({
channel: string,
}),
userId: "user_123",
});
// result is typed as ArchiveConversationOutput
const result = await client.execute({
integration: "slack",
tool: "archive_conversation",
userId: "user_123",
input: {
channel: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["slack"],
userId: "user_123",
}),
});
await agent.generate("run the Archive Conversation tool");
Required Permissions #
channels:manage
Input Schema #
channel
string
required
Channel ID to archive
Output Schema #
ok
bool
required
This tool calls: #
POST
https://slack.com/api/conversations.archive