Skip to main content

Slack bot powered by PraisonAI multi-agent framework

Project description

slack-praisonai-bot

Slack bot powered by PraisonAI multi-agent framework.

Installation

pip install slack-praisonai-bot

Quick Start

  1. Create a Slack App

    • Go to api.slack.com/apps
    • Create New App → From scratch
    • Enable Socket Mode and get App Token
    • Add Bot Token Scopes: app_mentions:read, chat:write, commands
    • Install to Workspace and get Bot Token
  2. Start PraisonAI Server

    pip install praisonai
    praisonai serve agents.yaml --port 8080
    
  3. Run the Bot

    export SLACK_BOT_TOKEN=xoxb-your-bot-token
    export SLACK_APP_TOKEN=xapp-your-app-token
    export PRAISONAI_API_URL=http://localhost:8080
    slack-praisonai-bot
    

Slash Commands

Command Description
/ask <query> Ask PraisonAI agents
/agent <name> <query> Ask a specific agent
/agents List available agents

App Mentions

Mention the bot in any channel: @PraisonAI What are the latest AI trends?

Configuration

Environment Variable Description
SLACK_BOT_TOKEN Bot token (xoxb-...)
SLACK_APP_TOKEN App token (xapp-...)
PRAISONAI_API_URL PraisonAI server URL
PRAISONAI_TIMEOUT Request timeout (default: 300)

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack_praisonai_bot-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slack_praisonai_bot-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file slack_praisonai_bot-0.1.0.tar.gz.

File metadata

  • Download URL: slack_praisonai_bot-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for slack_praisonai_bot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f892ba26e3010277678de84e5e701d9a0a483bafda889852d40d3a5609af5b3
MD5 b7b3b272a0557cd3bfd257a4871b29c6
BLAKE2b-256 13a4a64864a58b73cf80c5894d6a34d1a01b6466a2048d430120558c973e83ee

See more details on using hashes here.

File details

Details for the file slack_praisonai_bot-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for slack_praisonai_bot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a00e7f40f4ed61afaae2ff5207e4b56f6f7602c4db7042883cd83a9ffb1751
MD5 7562e3d68c1a642edbd851c0d7a406b7
BLAKE2b-256 249274e0e8b13b28f41e6d55a2c12e92aa407bb23262d1fe859527a032829edd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page