Update chapter-05-gbdialog-reference.md

This commit is contained in:
Rodrigo Rodriguez 2022-11-11 10:42:51 -03:00 committed by GitHub
parent f6d76a5d18
commit fe1d3f80d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,53 @@ SEND FILE img
SAVE img as "folder/filename.jpg" SAVE img as "folder/filename.jpg"
``` ```
### Using General Bots Web Automation to custom notify about Calendar
```basic
REM Perform G. Login.
OPEN "https://accounts.google.com/ServiceLogin"
SET "#identifierId", "test@gmail.com"
PRESS ENTER
WAIT 3
SET "input[type='password']", "hempoil"
PRESS ENTER
WAIT 5
REM Enter on the Calendar page and capture the calendar grid inside the page.
OPEN "https://calendar.google.com/calendar/u/0/r?tab=mc&pli=1"
file = SCREENSHOT "div.K2fuAf"
REM Notify all team members with the updated calendar image.
list = FIND "People.xlsx", "Calendar=Y"
index = 1
DO WHILE index < ubound(list)
row = list[index]
TALK TO row.Mobile, "Hello " + row.Name + ", here is your calendar:"
SEND FILE TO row.Mobile, file, "Calendar"
index = index + 1
LOOP
```
list = FIND "People.xlsx", "Calendar=Y"
index = 1
DO WHILE index < ubound(list)
row = list[index]
TALK TO row.Mobile, "Hello " + row.Name + ", here is your calendar:"
SEND FILE TO row.Mobile, file, "Calendar"
index = index + 1
LOOP
### Using complete General Bots Conversational Data Analytics ### Using complete General Bots Conversational Data Analytics
```BASIC ```BASIC
@ -155,8 +202,6 @@ SEND FILE img
![image](https://user-images.githubusercontent.com/14840374/178154826-8188029e-b4f4-48aa-bc0d-126307ce5121.png) ![image](https://user-images.githubusercontent.com/14840374/178154826-8188029e-b4f4-48aa-bc0d-126307ce5121.png)
### Using General Bots Office templates ### Using General Bots Office templates
``` ```
@ -201,6 +246,8 @@ LOOP
EXIT EXIT
``` ```
### Using POST data ### Using POST data
You can use POST passing a variable as the second param in the POST call. The example You can use POST passing a variable as the second param in the POST call. The example