Skip to content

Commit 9f0e89b

Browse files
author
Anil Bisalehalli Prasannakumar
committed
Adding Instruction for Bot on-boarding
1 parent 5b3166e commit 9f0e89b

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,24 @@ $ cd glip-botman
8787
$ php index.php
8888
```
8989

90+
If its successful, you will get a message as below :
91+
92+
**Wohooo, your Bot is Registered. Please follow the instructions on on-boarding the bot into Glip**
93+
94+
## On-Boarding Bot into Glip
95+
1. **Assign a Name and Unique Email Address to the Bot**
96+
![Bot user screenshots](assets/service_web.png)
97+
98+
**Note:** The above user refers to the same user whose credentials was used in the `.env` file to configure the bot.
99+
100+
2. **Invite the bot into a group using the email ID**
101+
![Glip group screenshots](assets/glip_group.png)
102+
103+
**Note:** Create a group on `Glip` and invite the Bot using `Add Member` button on the top extreme right.
104+
105+
3. **Start chatting with the Bot**
106+
![Glip group screenshots](assets/chat_bot.png)
107+
90108
## Extending the Botman-Glip Adapter
91109

92110
You can set the `Bot` to listen to any specific commands/instructions . You can include the commands in the php file whihc is used to setup the Webhook. In our case, it is `webhook.php`

assets/chat_bot.png

352 KB
Loading

assets/glip_group.png

201 KB
Loading

assets/service_web.png

156 KB
Loading

webhook.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@
5151

5252
// Give the bot something to listen for.
5353
$botman->hears('hello', function (BotMan $bot) {
54-
$bot->reply('Hello yourself dude.');
54+
$bot->reply('Hello yourself.');
55+
})->driver(GlipBotman::class);
56+
57+
$botman->hears('what is your name', function (BotMan $bot) {
58+
$bot->reply('My name is Minion Bot.');
5559
})->driver(GlipBotman::class);
5660

5761

58-
$botman->hears('hello1', function (BotMan $bot) {
62+
$botman->hears('What can you do', function (BotMan $bot) {
5963
$bot->reply('I am still under construction');
6064
})->driver(GlipBotman::class);
6165

0 commit comments

Comments
 (0)