Join Conversation

Joins a public channel

Usage #

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

Required Permissions #

channels:join

Input Schema #

channel string required

Channel ID to join

Output Schema #

ok bool required
channel object

This tool calls: #

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