BotMan

The most popular PHP chatbot framework in the world.

<?php

$botman->hears('Hello BotMan!', function($bot) {
    $bot->reply('Hello!');
    $bot->ask('Whats your name?', function($answer, $bot) {
        $bot->say('Welcome '.$answer->getText());
    });
});

$botman->listen();

One Codebase - Multiple Services

Want to support a new messenger? Easy!

Write your chatbot logic once and connect it to one of the available messaging services, including Amazon Alexa, Facebook Messenger, Slack, Telegram or even your own Website.

Existing project?
Starting from scratch?
We got you covered!

BotMan is framework agnostic - that means you can use it in your existing codebase, whatever framework you might use. Starting a new chatbot project? BotMan Studio is a Laravel 5.5 boiler project to get you started in no time!

We like readable code

BotMan is all about having an expressive, yet powerful syntax that allows you to focus on the business logic - not on framework code.