<?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();
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.
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!
BotMan is all about having an expressive, yet powerful syntax that allows you to focus on the business logic - not on framework code.