Add custom messaging-platform bots to PraisonAI via Python entry points
Bot platform adapters now ship in the praisonai-bot package. praisonai bot serve still works exactly as documented here; for a standalone install see praisonai-bot Migration.
from praisonaiagents import Agentagent = Agent(name="platform-bot", instructions="Use platform-specific bot plugins.")agent.start("Enable Telegram and Discord plugins for this bot.")
Third-party bot packages can register via Python entry points to extend PraisonAI with custom messaging platforms.The user installs a third-party bot package; entry points register new platforms alongside built-in channels.
The praisonai.channels entry-point group is the idiomatic way to distribute a bot connector as a pip-installable package. Once installed, the platform is available with no extra Python code:
# pyproject.toml of your connector package[project.entry-points."praisonai.channels"]irc = "praisonai_irc:IRCBot"
After pip install praisonai-irc:
from praisonai.bots import Botbot = Bot("irc", agent=my_agent, server="irc.libera.chat")await bot.start()
List all registered platforms — built-in, entry-point, and custom — with the CLI:
Capabilities let PraisonAI’s shared delivery layer chunk, stream, and rate-limit messages correctly for your platform — see Bot Platform Capabilities for the full field list.
Construct your own BotPlatformRegistry to avoid leaking between tenants:
from praisonai.bots._registry import BotPlatformRegistry# Each tenant gets their own registrytenant_registry = BotPlatformRegistry()tenant_registry.register("custom-slack", TenantSpecificSlackBot)