DEV Community

Cover image for Building a booking chatbot using BotMan

Building a booking chatbot using BotMan

Kiran Krishnan on September 09, 2018

BotMan is the most popular chatbot development framework for PHP. You can use BotMan in your existing codebase or with any PHP frameworks. There a...
Collapse
 
jamesnm profile image
James Moore

I get the following error

include(): Opis\Closure\ClosureStream::stream_set_option is not implemented!

When using the following code

$this->ask('What is your name?', function(Answer $answer) {
   $this->say('Nice to meet you '. $answer->getText());

}); 
Enter fullscreen mode Exit fullscreen mode

Has anyone else gotten this

Collapse
 
jamesnm profile image
James Moore

its due to php 7.4 that I have installed locally (arrow functions and all that fun stuff), my vagrant homestead setup is currently on 7.2~3 so I just served it from there and everything works great. Great tutorial thanks !

Collapse
 
devkiran profile image
Kiran Krishnan

Glad you found it useful.

Collapse
 
poojanetsol profile image
Pooja Goyal

Hello Sir

Iam buiding my chatbot with laravel and integrating using carbon library.
Can you please help me how can I show date picker in textbox.I wanted to select dat from date picker and save that value.

I waiting for your reply .Please help me as soon as possible.

Thanks
Pooja

Collapse
 
devkiran profile image
Kiran Krishnan

Hello Pooja,

Botman web widget doesn't support datepicker component by default. But you can customize the web widget according to your needs github.com/botman/web-widget

Collapse
 
lucasm profile image
Lucas Menezes

In the newest version of Botman, when creating a new conversation using the command 'php artisan botman:make:conversation OnboardingConversation' this create file in to the path 'App\Conversations'. I had to replace the "namespace App\Http\Controllers;" to "namespace App\Controllers;" and "use App\Http\Conversations\OnboardingConversation;" to "use App\Conversations\OnboardingConversation;".

Thanks for the great tutorial Kiran! Helped me introduce Botman for the team =)

Collapse
 
devkiran profile image
Kiran Krishnan

Thank you.

Collapse
 
rajput2219 profile image
rajput2219

Hello,
I want to conversation start from botman side.

Currently, firstly we have to enter the message after that Botman reply. But I want to when user open chatbot Botman start conversation.

Please help.

Collapse
 
bpropelled profile image
Propelled

Excellent article Kiran, I had no idea about this package. thanks for sharing

Collapse
 
devkiran profile image
Kiran Krishnan

Thank you!

Collapse
 
kasparlavik profile image
Kaspar Lavik

Hi, I am student of MscIT, basically I like to learn about AI Driven chatbot, How to build a chatbot and importance of chatbot for various industries. I also like to refer technical blogs like this blog. I always curious to learn new things and about new technologies. I gained my knowledge from this content. It was amazing and helpful too. Thank you writer for sharing this knowledge with us. bit.ly/2N5yyRm

Collapse
 
speedygonzales77 profile image
speedygonzales77

This was a great tutorial. The only thing that I saw different in my system is that the Classes were getting installed in /app/ and not in /app/Http/, but was able to edit a bit and made it work.

Thanks for great tutorial!!!

Collapse
 
joaoufms profile image
João Gabriel

I'm using the web driver without BotmanStudio, and when a type Hi i don't get a response. What can i do?

Collapse
 
cykonetic profile image
Nicholai Bush • Edited

Do you have any pointers/tips for using BotMan with Laravel Echo? I am using a custom Web driver
and web widget, just simple modifications of the originals.

Collapse
 
hardiktechtic profile image
hardik-techtic

Hi

How to add custom URL or custom parameter in response.

Collapse
 
poojanetsol profile image
Pooja Goyal • Edited

Hi Kiran

Thanks for your help in case of datepicker for botman widget.
Can you please help me with solution for floating bubble or typing.. parameter in case of user typing.

Thanks
Pooja

Collapse
 
sakthicuba profile image
sakthicuba

How Did Run in XAMPP when i change not found url came

Collapse
 
ivanip128 profile image
ivanip128

Hi sir, thank you for you sharing. How the link up the this code $this->bot->startConversation(new DateTimeConversation()); and display on the botman screen?

Collapse
 
hajrabi33737064 profile image
Hajra Bibi

Help me to made this application?

Collapse
 
andiperrus profile image
andy hernández

Excellent post

but and if i would save my data in the database, how could to do ?

I'm using botman studio. Thanks. :)