Skip to content

Function: createSlackBotBuilder() ​

ts
function createSlackBotBuilder(options): SlackApproverNode;

Defined in: slack/src/builders/create-slack-bot-builder.ts:16

Compiles a passive SlackApproverNode from SlackBotOptions (slack.bot).

Produces a frozen AST node with type: 'slack:approver' and interactionMode: 'bidirectional' that satisfies both HumanChannelASTNode<'bidirectional'> and ControlPlaneASTNode.

Parameters ​

ParameterTypeDescription
optionsSlackBotOptionsApp token, bot token, and target Slack channel configuration.

Returns ​

SlackApproverNode

Frozen passive Slack Socket Mode approver AST node.

Throws ​

If any literal appToken, botToken, or channel string is empty.

Released under the MIT License.