Skip to main content

General Bots API (1.0)

Download OpenAPI specification:Download

General Bots API description in Swagger format

Method callVM

@tags System

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Response samples

Content type
application/json
null

Method append

Request Body schema: application/json
required
pid
any
args
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "args": null
}

Response samples

Content type
application/json
[
  • null
]

Method seeCaption

@example SEE CAPTION OF url AS variable

Request Body schema: application/json
required
pid
any
url
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "url": null
}

Response samples

Content type
application/json
null

Method seeText

@example SEE TEXT OF url AS variable

Request Body schema: application/json
required
pid
any
url
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "url": null
}

Response samples

Content type
application/json
"string"

Method sortBy

Request Body schema: application/json
required
pid
any
array
any
memberName
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "array": null,
  • "memberName": null
}

Response samples

Content type
application/json
null

Method JSONAsGBTable

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method renderTable

@param data @param renderImage @returns

@see http://tabulator.info/examples/5.2

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
{ }

Method closeHandles

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Method asPDF

Request Body schema: application/json
required
pid
any
data
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "data": null
}

Response samples

Content type
application/json
{ }

Method asImage

Request Body schema: application/json
required
pid
any
data
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "data": null
}

Response samples

Content type
application/json
{ }

Method executeSQL

Request Body schema: application/json
required
pid
any
data
any
sql
any
tableName
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "data": null,
  • "sql": null,
  • "tableName": null
}

Response samples

Content type
application/json
null

Method getFileContents

Retrives the content of a given URL.

Request Body schema: application/json
required
pid
any
url
any
headers
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "url": null,
  • "headers": null
}

Response samples

Content type
application/json
{
  • "headers": {
    },
  • "ok": true,
  • "redirected": true,
  • "status": 0,
  • "statusText": "string",
  • "type": "default",
  • "url": "string",
  • "clone": { },
  • "body": {
    },
  • "bodyUsed": true,
  • "arrayBuffer": { },
  • "blob": { },
  • "formData": { },
  • "json": { },
  • "text": { }
}

Method getRandomId

Retrives a random id with a length of five, every time it is called.

Responses

Method getStock

Retrives stock inforation for a given symbol.

Request Body schema: application/json
required
pid
any
symbol
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "symbol": null
}

Response samples

Content type
application/json
{
  • "headers": {
    },
  • "ok": true,
  • "redirected": true,
  • "status": 0,
  • "statusText": "string",
  • "type": "default",
  • "url": "string",
  • "clone": { },
  • "body": {
    },
  • "bodyUsed": true,
  • "arrayBuffer": { },
  • "blob": { },
  • "formData": { },
  • "json": { },
  • "text": { }
}

Method wait

Holds script execution for the number of seconds specified.

@example WAIT 5 ' This will wait five seconds.

Request Body schema: application/json
required
pid
any
seconds
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "seconds": null
}

Method talkTo

Sends a text message to the mobile number specified.

@example TALK TO "+199988887777", "Message text here"

Request Body schema: application/json
required
pid
any
mobile
any
message
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "mobile": null,
  • "message": null
}

Method getUser

Get a user object from a alias.

@example user = USER "someone"

Request Body schema: application/json
required
pid
any
username
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "username": null
}

Response samples

Content type
application/json
{ }

Method sendSmsTo

Sends a SMS message to the mobile number specified.

@example SEND SMS TO "+199988887777", "Message text here"

Request Body schema: application/json
required
pid
any
mobile
any
message
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "mobile": null,
  • "message": null
}

Method set

  1. Defines a cell value in the tabular file.
  2. Defines an element text on HTML page.

@example SET "file.xlsx", "A2", 4500

@example SET page, "elementHTMLSelector", "text"

Request Body schema: application/json
required
pid
any
handle
any
file
any
address
any
value
any
name
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "file": null,
  • "address": null,
  • "value": null,
  • "name": null
}

Response samples

Content type
application/json
null

Method internalGetDocument

Retrives a document from the drive, given a path and filename.

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
null

Method saveFile

Saves the content of variable into the file in .gbdata default folder.

@exaple SAVE variable as "my.txt"

Request Body schema: application/json
required
pid
any
file
any
data
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null,
  • "data": null
}

Response samples

Content type
application/json
null

Method uploadFile

Saves the content of variable into BLOB storage.

@exaple UPLOAD file.

Request Body schema: application/json
required
pid
any
file
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null
}

Response samples

Content type
application/json
null

Method note

Takes note inside a notes.xlsx of .gbdata.

@example NOTE "text"

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Response samples

Content type
application/json
null

Method saveToStorageBatch

Saves variables to storage, not a worksheet.

Request Body schema: application/json
required
pid
any
table
any
rows
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "table": null,
  • "rows": null
}

Method saveToStorage

Saves variables to storage, not a worksheet.

@example SAVE "Billing", columnName1, columnName2

Request Body schema: application/json
required
pid
any
table
any
fieldsValues
any
fieldsNames
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "table": null,
  • "fieldsValues": null,
  • "fieldsNames": null
}

Response samples

Content type
application/json
null

Method saveToStorageWithJSON

Request Body schema: application/json
required
pid
any
table
any
fieldsValues
any
fieldsNames
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "table": null,
  • "fieldsValues": null,
  • "fieldsNames": null
}

Response samples

Content type
application/json
null

Method save

Saves the content of several variables to a new row in a tabular file.

@example SAVE "customers.xlsx", name, email, phone, address, city, state, country

Request Body schema: application/json
required
pid
any
file
any
args
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null,
  • "args": null
}

Response samples

Content type
application/json
null

Method getHttp

Retrives the content of a cell in a tabular file.

@example value = GET "file.xlsx", "A2"

Request Body schema: application/json
required
pid
any
file
any
addressOrHeaders
any
httpUsername
any
httpPs
any
qs
any
streaming
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null,
  • "addressOrHeaders": null,
  • "httpUsername": null,
  • "httpPs": null,
  • "qs": null,
  • "streaming": null
}

Response samples

Content type
application/json
null

Method isValidDate

Request Body schema: application/json
required
pid
any
dt
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "dt": null
}

Response samples

Content type
application/json
true

Method isValidNumber

Request Body schema: application/json
required
pid
any
number
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "number": null
}

Response samples

Content type
application/json
true

Method isValidHour

Request Body schema: application/json
required
pid
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "value": null
}

Method getFilter

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
null

Method find

Finds a value or multi-value results in a tabular file.

@example

rows = FIND "file.xlsx", "A2=active", "A2 < 12/06/2010 15:00" i = 1 do while i <= ubound(row) row = rows[i] send sms to "+" + row.mobile, "Hello " + row.name + "! " loop @see NPM package data-forge

Request Body schema: application/json
required
pid
any
handle
any
args
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "args": null
}

Response samples

Content type
application/json
null

Method getDateFromLocaleString

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method createFolder

Creates a folder in the bot instance drive.

@example folder = CREATE FOLDER "notes\01"

Request Body schema: application/json
required
pid
any
name
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "name": null
}

Response samples

Content type
application/json
null

Method shareFolder

Shares a folder from the drive to a e-mail recipient.

@example

folder = CREATE FOLDER "notes\10" SHARE FOLDER folder, "nome@domain.com", "E-mail message"

Request Body schema: application/json
required
pid
any
folder
any
email
any
message
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "folder": null,
  • "email": null,
  • "message": null
}

Method internalCreateDocument

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method createDocument

Request Body schema: application/json
required
pid
any
path
any
content
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "path": null,
  • "content": null
}

Method copyFile

Copies a drive file from a place to another .

@example

COPY "template.xlsx", "reports" + customerName + "\final.xlsx"

Request Body schema: application/json
required
pid
any
src
any
dest
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "src": null,
  • "dest": null
}

Response samples

Content type
application/json
null

Method convert

Converts a drive file from a place to another .

Supported sources csv, doc, docx, odp, ods, odt, pot, potm, potx, pps, ppsx, ppsxm, ppt, pptm, pptx, rtf, xls, xlsx

@example

CONVERT "customers.xlsx" TO "reports" + today + ".pdf"

Request Body schema: application/json
required
pid
any
src
any
dest
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "src": null,
  • "dest": null
}

Method generatePassword

Generate a secure and unique password.

@example pass = PASSWORD

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method flattenJSON

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method getCustomToken

Request Body schema: application/json
required
pid
any
tokenName
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "tokenName": null
}

Response samples

Content type
application/json
{ }

Method getByHttp

Calls any REST API by using GET HTTP method.

@example user = get "http://server/users/1"

Request Body schema: application/json
required
pid
any
url
any
headers
any
username
any
ps
any
qs
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "url": null,
  • "headers": null,
  • "username": null,
  • "ps": null,
  • "qs": null
}

Response samples

Content type
application/json
null

Method putByHttp

Calls any REST API by using POST HTTP method.

@example

user = put "http://server/path", "data" talk "The updated user area is" + area

Request Body schema: application/json
required
pid
any
url
any
data
any
headers
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "url": null,
  • "data": null,
  • "headers": null
}

Response samples

Content type
application/json
null

Method postByHttp

Calls any REST API by using POST HTTP method.

@example

user = post "http://server/path", "data" talk "The updated user area is" + area

Request Body schema: application/json
required
pid
any
url
any
data
any
headers
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "url": null,
  • "data": null,
  • "headers": null
}

Response samples

Content type
application/json
null

Method numberOnly

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Response samples

Content type
application/json
null

Method createLead

Request Body schema: application/json
required
pid
any
templateName
any
data
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "templateName": null,
  • "data": null
}

Method fill

Fills a .docx or .pptx with template data.

doc = FILL "templates/template.docx", data

Request Body schema: application/json
required
pid
any
templateName
any
data
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "templateName": null,
  • "data": null
}

Response samples

Content type
application/json
{ }

Method screenCapture

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method numberToLetters

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method getTableFromName

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method merge

Merges a multi-value with a tabular file using BY field as key.

@example

data = FIND first.xlsx MERGE "second.xlsx" WITH data BY customer_id

Request Body schema: application/json
required
pid
any
file
any
data
any
key1
any
key2
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null,
  • "data": null,
  • "key1": null,
  • "key2": null
}

Response samples

Content type
application/json
null

Method tweet

Publishs a tweet to X.

TWEET "My tweet text"

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Method rewrite

HEAR description text = REWRITE description SAVE "logs.xlsx", username, text

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Method pay

qrcode = PAY "10000", "Name", 100 SEND FILE qrcode

Request Body schema: application/json
required
pid
any
orderId
any
customerName
any
ammount
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "orderId": null,
  • "customerName": null,
  • "ammount": null
}

Response samples

Content type
application/json
{ }

Method autoSave

HEAR logo AS FILE file = AUTO SAVE logo TALK "Your " + file.name + " file is saved."

Request Body schema: application/json
required
pid
any
handle
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null
}

Method internalAutoSave

Request Body schema: application/json
required
min
any
handle
any

Responses

Request samples

Content type
application/json
{
  • "min": null,
  • "handle": null
}

Response samples

Content type
application/json
{ }

Method deleteFromStorage

Request Body schema: application/json
required
pid
any
table
any
criteria
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "table": null,
  • "criteria": null
}

Method deleteFile

Request Body schema: application/json
required
pid
any
file
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null
}

Response samples

Content type
application/json
{ }

Method getExtensionInfo

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
null

Method dirFolder

Loads all para from tabular file Config.xlsx.

Request Body schema: application/json
required
pid
any
remotePath
any
baseUrl
any
client
any
array
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "remotePath": null,
  • "baseUrl": null,
  • "client": null,
  • "array": null
}

Response samples

Content type
application/json
null

Method log

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Method chart

Data = [10,20,30] Legends = "Steve;Yui;Carlos" img = CHART "pie",data,legends

https://c3js.org/examples.html https://c3js.org/samples/timeseries.html (used here)

@param data @param legends @see https://www.npmjs.com/package/plot

Request Body schema: application/json
required
pid
any
type
any
data
any
legends
any
transpose
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "type": null,
  • "data": null,
  • "legends": null,
  • "transpose": null
}

Response samples

Content type
application/json
"string"

Method getOCR

Returns the OCR of image file.

Request Body schema: application/json
required
localFile
any

Responses

Request samples

Content type
application/json
{
  • "localFile": null
}

Response samples

Content type
application/json
"string"

Method getToday

Returns the today data filled in dd/mm/yyyy or mm/dd/yyyy.

@example x = TODAY

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Response samples

Content type
application/json
"string"

Method exit

Quits the dialog,currently required to get out of VM context.

@example EXIT

Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{ }

Method getActiveTasks

Get active tasks.

@example list = ACTIVE TASKS

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Method createDeal

Creates a new deal.

@example CREATE DEAL dealname,contato,empresa,amount

Request Body schema: application/json
required
pid
any
dealName
any
contact
any
company
any
amount
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "dealName": null,
  • "contact": null,
  • "company": null,
  • "amount": null
}

Method fndContact

Finds contacts in XRM.

@example list = FIND CONTACT "Sandra"

Request Body schema: application/json
required
pid
any
name
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "name": null
}

Method getContentLocaleWithCulture

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method getCoded

Request Body schema: application/json
required
pid
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "value": null
}

Response samples

Content type
application/json
"string"

Method getWeekFromDate

Returns specified date week day in format 'Mon'.

@example day = WEEKDAY (date)

Request Body schema: application/json
required
pid
any
date
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "date": null
}

Response samples

Content type
application/json
null

Method getDateDiff

Returns an object ready to get information about difference in several ways like years,months or days.

@example days = DATEDIFF date1,date2,mode

Request Body schema: application/json
required
pid
any
date1
any
date2
any
mode
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "date1": null,
  • "date2": null,
  • "mode": null
}

Response samples

Content type
application/json
null

Method format

Request Body schema: application/json
required
pid
any
value
any
format
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "value": null,
  • "format": null
}

Response samples

Content type
application/json
null

Method dateAdd

Returns specified date week day in format 'Mon'.

@example DATEADD date,"minute",60

https://stackoverflow.com/a/1214753/18511

Request Body schema: application/json
required
pid
any
date
any
mode
any
units
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "date": null,
  • "mode": null,
  • "units": null
}

Response samples

Content type
application/json
"2019-08-24T14:15:22Z"

Method getToLst

Returns specified list member separated by comma.

@example TALK TOLIST (array,member)

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
null

Method getHourFromDate

Returns the specified time in format hh:dd.

@example hour = HOUR (date)

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
"string"

Method getNow

Returns current time in format hh:mm.

@example NOW

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Response samples

Content type
application/json
"string"

Method sendEmail

Sends an e-mail.

@example

SEND MAIL "email@domain.com","Subject", "Message text."

Request Body schema: application/json
required
pid
any
to
any
subject
any
body
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "to": null,
  • "subject": null,
  • "body": null
}

Response samples

Content type
application/json
null

Method sendFileTo

Sends a file to a given mobile.

@example SEND FILE TO "+199988887777","image.jpg",caption

Request Body schema: application/json
required
pid
any
mobile
any
filename
any
caption
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "mobile": null,
  • "filename": null,
  • "caption": null
}

Method sendFile

Sends a file to the current user.

@example SEND FILE "image.jpg"

Request Body schema: application/json
required
pid
any
filename
any
caption
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "filename": null,
  • "caption": null
}

Method setLanguage

Defines the current language of the bot conversation.

@example SET LANGUAGE "pt"

Request Body schema: application/json
required
pid
any
language
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "language": null
}

Method allowRole

Defines the current security context for dialogs based on roles.

@example ALLOW ROLE "DevOps"

Request Body schema: application/json
required
pid
any
role
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "role": null
}

Method setIdGeneration

Defines the id generation policy.

@example SET ID NUMBER

Request Body schema: application/json
required
mode
any

Responses

Request samples

Content type
application/json
{
  • "mode": null
}

Method isUserSystemParam

Request Body schema: application/json
required
string

Responses

Request samples

Content type
application/json
"string"

Method setOption

Request Body schema: application/json
required
pid
any
name
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "name": null,
  • "value": null
}

Response samples

Content type
application/json
{ }

Method getOption

Request Body schema: application/json
required
pid
any
name
any
root
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "name": null,
  • "root": null
}

Response samples

Content type
application/json
null

Method setMaxLines

Defines the maximum lines to scan in spreedsheets.

@example SET MAX LINES 5000

Request Body schema: application/json
required
pid
any
count
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "count": null
}

Method setOutput

Define array as output.

@example SET OUTPUT ARRAY

Request Body schema: application/json
required
pid
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "value": null
}

Method setUserParam

Defines a custom user param to be persisted to storage.

@example SET PARAM name AS value

Request Body schema: application/json
required
pid
any
name
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "name": null,
  • "value": null
}

Method getContinuationToken

Returns current if any continuation token for paginated HTTP requests.

@example CONTINUATION TOKEN

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Response samples

Content type
application/json
null

Method getConfig

Returns bot param persisted on storage.

@example GET CONFIG name

Request Body schema: application/json
required
pid
any
name
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "name": null
}

Response samples

Content type
application/json
null

Method setMaxColumns

Defines the maximum lines to scan in spreedsheets.

@example SET MAX COLUMNS 5000

Request Body schema: application/json
required
pid
any
count
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "count": null
}

Method setFilter

Defines a custom user filter for SET calls.

@example SET FILTER "ColumnName=33" SET "file.xlsx", "C", "200000"

Request Body schema: application/json
required
pid
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "value": null
}

Method setPageMode

Defines page mode for paged GET calls.

@example SET PAGE MODE "auto" data = GET url FOR EACH item in data ... END FOR

Request Body schema: application/json
required
pid
any
value
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "value": null
}

Method setWholeWord

Defines the FIND behaviour to consider whole words while searching.

@example SET WHOLE WORD ON

Request Body schema: application/json
required
pid
any
on
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "on": null
}

Method setFilterTypes

Defines the FIND behaviour to consider whole words while searching.

@example SET FILTER TYPE date, string

Request Body schema: application/json
required
pid
any
types
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "types": null
}

Method setTheme

Defines the theme for assets generation.

@example SET THEME "themename"

Request Body schema: application/json
required
pid
any
theme
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "theme": null
}

Method setTranslatorOn

Defines translator behaviour.

@example SET TRANSLATOR ON | OFF

Request Body schema: application/json
required
pid
any
on
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "on": null
}

Method userName

Returns the name of the user acquired by WhatsApp API.

SAVE "file.xlsx", username, now

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Response samples

Content type
application/json
"string"

Method userMobile

Returns current mobile number from user in conversation.

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Response samples

Content type
application/json
"string"

Method showMenu

Shows the subject menu to the user

@example MENU

Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{ }

Method transferTo

Performs the transfer of the conversation to a human agent.

@example TRANSFER

Request Body schema: application/json
required
to
any

Responses

Request samples

Content type
application/json
{
  • "to": null
}

Method getFileByHandle

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method hear

Hears something from user and put it in a variable

@example HEAR name

Request Body schema: application/json
required
pid
any
kind
any
args
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "kind": null,
  • "args": null
}

Method getGBAIPath

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method gotoDialog

Prepares the next dialog to be shown to the specified user.

Request Body schema: application/json
required
pid
any
fromOrDialogName
any
dialogName
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "fromOrDialogName": null,
  • "dialogName": null
}

Method getProcessInfo

Request Body schema: application/json
required
number

Responses

Request samples

Content type
application/json
0
0

Response samples

Content type
application/json
{ }

Method talk

Talks to the user by using the specified text.

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Response samples

Content type
application/json
{ }

Method getChannel

Responses

Method internalSendFile

Processes the sending of the file.

Request Body schema: application/json
required
pid
any
channel
any
mobile
any
filename
any
caption
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "channel": null,
  • "mobile": null,
  • "filename": null,
  • "caption": null
}

Method getQRCode

Generates a new QRCode.

file = QRCODE "data"

Request Body schema: application/json
required
pid
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "text": null
}

Response samples

Content type
application/json
{ }

Method sharpen

Sharpen the image.

@example file = SHARPEN file

Request Body schema: application/json
required
pid
any
file
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null
}

Method mergeImage

SET ORIENTATION VERTICAL

file = MERGE file1, file2, file3

Request Body schema: application/json
required
pid
any
files
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "files": null
}

Response samples

Content type
application/json
{ }

Method blur

Sharpen the image.

@example file = BLUR file

Request Body schema: application/json
required
pid
any
file
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "file": null
}

Method isSelector

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method cyrb53

Request Body schema: application/json
required
pid
any
str
any
seed
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "str": null,
  • "seed": null
}

Method closeHandles

Request Body schema: application/json
required
pid
any

Responses

Request samples

Content type
application/json
{
  • "pid": null
}

Method openPage

Returns the page object.

@example OPEN "https://wikipedia.org"

Request Body schema: application/json
required
pid
any
handle
any
sessionKind
any
sessionName
any
url
any
username
any
password
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "sessionKind": null,
  • "sessionName": null,
  • "url": null,
  • "username": null,
  • "password": null
}

Response samples

Content type
application/json
null

Method getPageByHandle

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method getBySelector

Find element on page DOM.

@example GET "selector"

Request Body schema: application/json
required
handle
any
selector
any
pid
any

Responses

Request samples

Content type
application/json
{
  • "handle": null,
  • "selector": null,
  • "pid": null
}

Response samples

Content type
application/json
null

Method getByFrame

Find element on page DOM.

@example GET page,"frameSelector,"elementSelector"

Request Body schema: application/json
required
handle
any
frame
any
selector
any

Responses

Request samples

Content type
application/json
{
  • "handle": null,
  • "frame": null,
  • "selector": null
}

Response samples

Content type
application/json
null

Method hover

Simulates a mouse hover an web page element.

Request Body schema: application/json
required
pid
any
handle
any
selector
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "selector": null
}

Method click

Clicks on an element in a web page.

@example CLICK "#idElement"

Request Body schema: application/json
required
pid
any
handle
any
frameOrSelector
any
selector
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "frameOrSelector": null,
  • "selector": null
}

Method debugStepWeb

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Method pressKey

Press ENTER in a web page,useful for logins.

@example PRESS ENTER ON page

Request Body schema: application/json
required
handle
any
char
any
frame
any

Responses

Request samples

Content type
application/json
{
  • "handle": null,
  • "char": null,
  • "frame": null
}

Method linkByText

Request Body schema: application/json
required
pid
any
handle
any
text
any
index
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "text": null,
  • "index": null
}

Method clickButton

Request Body schema: application/json
required
pid
any
handle
any
text
any
index
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "text": null,
  • "index": null
}

Method screenshot

Returns the screenshot of page or element

@example file = SCREENSHOT "#selector"

Request Body schema: application/json
required
pid
any
handle
any
selector
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "selector": null
}

Response samples

Content type
application/json
{ }

Method setElementText

Types the text into the text field.

@example SET page,"selector","text"

Request Body schema: application/json
required
pid
any
handle
any
selector
any
text
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "selector": null,
  • "text": null
}

Method download

Performs the download to the .gbdrive Download folder.

@example file = DOWNLOAD element, folder

Request Body schema: application/json
required
pid
any
handle
any
selector
any
folder
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "selector": null,
  • "folder": null
}

Response samples

Content type
application/json
null

Method recursiveFindInFrames

Request Body schema: application/json
required
any

Responses

Request samples

Content type
application/json
null

Response samples

Content type
application/json
null

Method getTextOf

Request Body schema: application/json
required
pid
any
handle
any
frameOrSelector
any
selector
any

Responses

Request samples

Content type
application/json
{
  • "pid": null,
  • "handle": null,
  • "frameOrSelector": null,
  • "selector": null
}

Response samples

Content type
application/json
null

Method setBreakpoint

Request Body schema: application/json
required
botId
any
line
any

Responses

Request samples

Content type
application/json
{
  • "botId": null,
  • "line": null
}

Method refactor

Request Body schema: application/json
required
botId
any
code
any
change
any

Responses

Request samples

Content type
application/json
{
  • "botId": null,
  • "code": null,
  • "change": null
}

Method resume

Request Body schema: application/json
required
botId
any

Responses

Request samples

Content type
application/json
{
  • "botId": null
}

Response samples

Content type
application/json
{ }

Method stop

Request Body schema: application/json
required
botId
any

Responses

Request samples

Content type
application/json
{
  • "botId": null
}

Response samples

Content type
application/json
{ }

Method step

Request Body schema: application/json
required
botId
any

Responses

Request samples

Content type
application/json
{
  • "botId": null
}

Response samples

Content type
application/json
{ }

Method getContext

Request Body schema: application/json
required
botId
any

Responses

Request samples

Content type
application/json
{
  • "botId": null
}

Response samples

Content type
application/json
{ }

Method start

Request Body schema: application/json
required
botId
any
botApiKey
any
scriptName
any

Responses

Request samples

Content type
application/json
{
  • "botId": null,
  • "botApiKey": null,
  • "scriptName": null
}

Response samples

Content type
application/json
{ }

Method sendMessage

Request Body schema: application/json
required
botId
any
botApiKey
any
text
any

Responses

Request samples

Content type
application/json
{
  • "botId": null,
  • "botApiKey": null,
  • "text": null
}

Response samples

Content type
application/json
{ }