Skip to content

Commit ce0ed49

Browse files
new(all): New web params in gbot.
1 parent 0cfc297 commit ce0ed49

3 files changed

+34
-19
lines changed

site/docs/chapter-05-gbdialog-reference.md

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ To organize the instructions functionally, I'll group them into five categories:
100100
| HEAR _variable_ AS "Abacate", "Maçã", "Morango" | Displays the specified menu and waits for user selection. | <pre>HEAR fruit AS "Abacate", "Maçã", "Morango" <br/> TALK "You selected: " + fruit.</pre> |
101101
| HEAR _variable_ AS LANGUAGE | Hears and validates a language code from the user. | <pre>HEAR language AS LANGUAGE <br/> TALK "Language selected: " + language.</pre> |
102102
| HEAR _variable_ AS LOGIN (internal) | Waits for Active Directory login integration before proceeding. | <pre>HEAR user AS LOGIN <br/> TALK "User logged in: " + user.</pre> |
103+
| HEAR _variable_ AS QRCODE | Hears and validates a QR code from a captured image. | <pre>TALK "Send me an image with a QR Code."<br/>HEAR qrcode AS QRCODE <br/> TALK "QR Code received: " + qrcode.</pre> |
103104

104105
## Data Handling
105106

@@ -112,6 +113,7 @@ To organize the instructions functionally, I'll group them into five categories:
112113
| data = SELECT a, SUM(b) AS b FROM data GROUP BY a | Use SQL to manipulate a data variable returned from FIND or an array | <pre>data = FIND "sales_data.xlsx", "A1:B10" <br/> result = SELECT product, SUM(amount) AS total FROM data GROUP BY product <br/> TALK "Query result: " + result.</pre> |
113114
| file = data AS IMAGE | Converts a two-dimensional array into an image file. | <pre>file = data AS IMAGE <br/> SAVE file AS "sales_chart.png" <br/> TALK "Chart saved as image."</pre> |
114115
| file = data AS PDF | Converts a two-dimensional array into a PDF file. | <pre>file = data AS PDF <br/> SAVE file AS "sales_report.pdf" <br/> TALK "Report saved as PDF."</pre> |
116+
| file = CONVERT "mydesign.ai" | Converts a Adobe Illustrator to a HTML page. |
115117
| NEW OBJECT | Creates a new object to be used with REST calls. | <pre>data = NEW OBJECT <br/> data.color = "blue" <br/> TALK "New object created."</pre> |
116118
| NEW ARRAY | Creates a new array. | <pre>data = NEW ARRAY <br/> data[0] = "red" <br/> TALK "New array created."</pre> |
117119
| QRCODE | Creates a QR code from specified text. | <pre>file = QRCODE "https://example.com" <br/> SAVE file AS "qrcode.png" <br/> TALK "QR Code generated."</pre> |

site/docs/chapter-06-gbapp-reference.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,26 @@ apt install code
9999
100100
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && sudo -E bash nodesource_setup.sh && sudo apt-get install -y nodejs && node -v
101101
102-
103102
```
104103

105104
#### Additional Infrastructure
106105

106+
107+
107108
```
109+
110+
apt-get update
111+
112+
apt-get install build-essential cmake git pkg-config libjpeg-dev libtiff-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libatlas-base-dev gfortran python3-dev
113+
114+
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
115+
export OPENCV_LIB_DIR=/usr/lib/x86_64-linux-gnu
116+
108117
apt-get install cpulimit
109-
sudo apt-get install expect
118+
apt-get install expect
110119
apt-get install libxtst-dev
111120
apt-get install libpng-dev
121+
112122
```
113123

114124

site/docs/chapter-07-gbot-reference.md

+20-17
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ here is a list of admin commands related to deploying .gb\* files.
5151
| WhatsApp Group ID | Group ID (accessible only in internal log) used to connect the Bot to a WhatsApp group. |
5252
| WhatsApp Group Name | WhatsApp group name that this Bot belongs to. |
5353
| WhatsApp Group Shortcuts | Space separeted list of triggers in text that will active Bot in groups. |
54+
| Website | URL of website to use as bot knowledge base. Note: Answer Mode should be 'document' while using crawler. |
55+
| Website Depth | Maximum website hyperlinks depth when crawling page contents. |
56+
| Website Max Documents | Maximum website document count to be added to LLM embeddings. |
5457
| XRM Key | String key of HubSpot (currently) API. |
5558

5659
Note that this variables are available in every .gbdialog code, automatically.
@@ -180,23 +183,23 @@ The "Synchronize Database" setting determines whether the TABLE keyword should m
180183

181184
You can change the theme color of the bot by selecting a color from the palette of General Bots available theme colors:
182185

183-
| Color |
184-
|----------|
185-
| grey |
186-
| light |
187-
| red |
188-
| blue |
189-
| green |
190-
| yellow |
191-
| purple |
192-
| orange |
193-
| brown |
194-
| pink |
195-
| cyan |
196-
| lime |
197-
| indigo |
198-
| teal |
199-
| violet |
186+
| Color |
187+
| ----------- |
188+
| grey |
189+
| light |
190+
| red |
191+
| blue |
192+
| green |
193+
| yellow |
194+
| purple |
195+
| orange |
196+
| brown |
197+
| pink |
198+
| cyan |
199+
| lime |
200+
| indigo |
201+
| teal |
202+
| violet |
200203
| black-white |
201204

202205
---

0 commit comments

Comments
 (0)