Invite to Conversation

Invites users to a channel

Usage #

// Import the typed helper
import { inviteToConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...inviteToConversation({
channel: string,
users: string,
}),
userId: "user_123",
});
// result is typed as InviteToConversationOutput
const result = await client.execute({
integration: "slack",
tool: "invite_to_conversation",
userId: "user_123",
input: {
channel: string,
users: 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 Invite to Conversation tool");

Required Permissions #

channels:manage

Input Schema #

channel string required

Channel ID

users string required

Comma-separated list of user IDs to invite

Output Schema #

ok bool required
channel object

This tool calls: #

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