Usage #
// Import the typed helper
import { createConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...createConversation({
name: string,
is_private: bool,
}),
userId: "user_123",
});
// result is typed as CreateConversationOutput
const result = await client.execute({
integration: "slack",
tool: "create_conversation",
userId: "user_123",
input: {
name: string,
is_private: bool,
},
});
// 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 Create Conversation tool");
Required Permissions #
channels:manage
Input Schema #
name
string
required
Name of the channel (lowercase, max 80 chars, hyphens/underscores allowed)
is_private
bool
Create a private channel instead of public
default:
false
Output Schema #
ok
bool
required
channel
object
This tool calls: #
POST
https://slack.com/api/conversations.create