Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need example code to try #3

Open
luizjr opened this issue Jul 30, 2019 · 5 comments
Open

Need example code to try #3

luizjr opened this issue Jul 30, 2019 · 5 comments

Comments

@luizjr
Copy link

luizjr commented Jul 30, 2019

I'm using botman studio but not run, can help by example code?

@valdu02100
Copy link

Hi! Hi!
Same problem for me. I don't see how to initiate this library. I'm on Botman Studio v2.
Did anyone succeed?

Thank you in advance for your help.

@adhiarta
Copy link

adhiarta commented Oct 8, 2019

just edit routes/botman.php

sample :

<?php
$botman = resolve('botman');

$botman->hears('Default Welcome Intent', function ($botman) {
    $botman->reply('Hi, welcome!');
});

@Benjizle
Copy link

Benjizle commented Nov 9, 2020

I have tried to use this with no luck, kindly provide some details / guidance

  1. do I have to enable fulfillment webhook in Dialogflow?
  2. any class to import?
**see my sample code in routes/botman.php
<?php
use BotMan\BotMan\BotManFactory;
use App\Http\Controllers\BotManController;

$botman = BotManFactory::create([]);
$botman->hears('Send - yes', function($botman) {
    $botman->reply('goof');
})**

I wonder how this will connect to Dialogflow without the service account or does this require Dialogflow middleware drivers which already has the GCP service account details.

I am using the latest version of botman studio

please help!

@nachoaguirre
Copy link

Hi @Benjizle
did you manage to connect the driver with your service account? I'm stuck with it

@Benjizle
Copy link

Hi @Benjizle
did you manage to connect the driver with your service account? I'm stuck with it

Yes I did, it works seamlessly afterward, I am currently away from my laptop. I will share the details when I get a hold of my laptop. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants