Unarchive Conversation

Unarchives a conversation

Usage #

// Import the typed helper
import { unarchiveConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...unarchiveConversation({
channel: string,
}),
userId: "user_123",
});
// result is typed as UnarchiveConversationOutput
const result = await client.execute({
integration: "slack",
tool: "unarchive_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 Unarchive Conversation tool");

Required Permissions #

channels:manage

Input Schema #

channel string required

Channel ID to unarchive

Output Schema #

ok bool required

This tool calls: #

POST https://slack.com/api/conversations.unarchive