Files
PraisonAI/examples/python/bots/slack_approval_example.py
2026-02-14 00:06:53 +00:00

14 lines
402 B
Python

"""Slack Approval — route tool approvals to a Slack channel."""
from praisonaiagents import Agent
from praisonai.bots import SlackApproval
agent = Agent(
name="assistant",
instructions="Help users with system tasks",
tools=["execute_command"],
approval=SlackApproval(channel="#approvals"), # token from SLACK_BOT_TOKEN env
)
agent.start("List the files in the current directory")