Skip to main content

Slack

Slack adds collaboration and messaging capabilities. It can listen for Slack app events and expose approved Slack actions as agent tools.

Tools

ToolPurpose
post-messagePost a message to an allowed Slack channel.

post-message Inputs

InputRequiredDescription
channelyesSlack channel ID or allowed channel name.
textyesMessage text to post.
thread_tsnoSlack thread timestamp when replying in a thread.

Properties

Required Slack properties:

VariableDescription
LIGHTFLARE_TOOLS_SLACK_ENABLEDSet to true.
LIGHTFLARE_TOOLS_SLACK_ENABLED_TOOLSComma-separated tool allowlist. Use post-message to expose Slack posting as a callable tool.
LIGHTFLARE_TOOLS_SLACK_BOT_TOKENSlack bot token.
LIGHTFLARE_TOOLS_SLACK_APP_TOKENSlack app-level token for Socket Mode.
LIGHTFLARE_TOOLS_SLACK_SIGNING_SECRETSlack signing secret.

Optional Properties

VariableDefaultDescription
LIGHTFLARE_TOOLS_SLACK_ENABLED_TOOLS[]Exposed Slack tools. Empty keeps Slack messaging enabled without exposing Slack callable tools.
LIGHTFLARE_TOOLS_SLACK_REPLY_IN_THREADtrueReply to Slack mentions in threads.
LIGHTFLARE_TOOLS_SLACK_ALLOWED_TEAM_IDS[]Team ID allowlist. Empty allows all teams.
LIGHTFLARE_TOOLS_SLACK_ALLOWED_MENTION_CHANNELS[]Channel allowlist for mentions. Empty allows all channels.
LIGHTFLARE_TOOLS_SLACK_ALLOWED_POST_CHANNELS[]Channel allowlist for posting. Empty allows all channels.
LIGHTFLARE_TOOLS_SLACK_AGENT_EXECUTOR_CORE_POOL_SIZE2Slack agent executor core pool size.
LIGHTFLARE_TOOLS_SLACK_AGENT_EXECUTOR_MAX_POOL_SIZE4Slack agent executor max pool size.
LIGHTFLARE_TOOLS_SLACK_AGENT_EXECUTOR_QUEUE_CAPACITY100Slack agent executor queue capacity.