Trigger and action

NO IMAGE

 Home > Connect > Zapier > Trigger and action

Explain and use triggers and actions

TypeTrigger or Action nameDescription
TriggerBOT Done The flow can start with completing BOT execution as a trigger.
Obtain the BOT output value, which can be used in the remaining flow.
ActionExecute BOTBOT on the Cloud BOT can be executed as an action.
You can specify the input values when BOT is executed. In addition, you can use the output values at execution in the remaining flow.
ActionUpload FileUpload the file data to Cloud BOT.
File ref value can be obtained as an output value, as well as the output value can be used with Execute BOT.
ActionDownload FileDownload the file data from Cloud BOT. You can retrieve the file from the File ref value.

BOT Done (Trigger)

The flow can start with completing BOT execution as a trigger. Obtain the BOT output value, which can be used in the remaining flow.

"BOT Done" setting values

LanguageSelect the language used when executing BOT.
ContractSelect your Cloud BOT contract.
You can select your Cloud BOT contract in which the external connection is enabled.
BOTSelect the BOT to trigger.
You can select the BOT that the external connection is enabled.

Learn more about BOT Done Parameter Object (Data in) .

"BOT Done "execution result(Data out)

"BOT Done Result Object (Data out)" is output as a result of the execution of "BOT Done".
Refer to BOT Done Result Object (Data out) for details.

Execute BOT (Action)

BOT on the Cloud BOT can be executed as an action.
You can specify the input values when BOT is executed. In addition, you can use the output values at execution in the remaining flow.

"Execute BOT" setting values

LanguageSelect the language used when executing BOT.
ContractSelect your Cloud BOT contract.
You can select your Cloud BOT contract in which the external connection is enabled.
BOTSelect the BOT to execute.
You can select the BOT that the external connection is enabled.
BOT input valueSpecify the input value of the BOT. *
If not set, it will run with BOT's default values.
*The field can be set to any input value. Click here for text formatting.
Async[False]Run the BOT asynchronously. The response is returned immediately after the BOT starts running.
[True]Run the BOT synchronously. The response is returned when the BOT completes its execution.
*If the BOT is executed asynchronously, or if 25 seconds have passed since the BOT starts running, the response will be returned at that point even if the BOT is still executing. The status will be "2" (running). In addition Cast URL is published.

Learn more about Execute BOT Parameter Object (Data in) .

"Execute BOT" execution result(Data out)

"Execute BOT Result Object (Data out)" is output as a result of the execution of "Execute BOT".
Refer to Execute BOT Result Object (Data out) for details.

Upload File (Action)

Upload the file data to Cloud BOT.
File ref value can be obtained as an output value, as well as the output value can be used with Execute BOT.

"Upload File" setting values

LanguageSelect the language used when executing BOT.
ContractSelect your Cloud BOT contract.
You can select your Cloud BOT contract in which the external connection is enabled.
File nameSpecifies the name of the file.
Associate from the output value of the previous trigger or action.
FileSpecifies the file (hydrate format or URL format).
Associate the file with the output value from the preceding trigger or action.

Learn more about Upload File Parameter Object (Data in) .

"Upload File" execution result (Data out)

"Upload File Result Object (Data out)" is output as a result of the execution of "Upload File".
Refer to Upload File Result Object (Data out) for details.

Download File (Action)

Download the file data from Cloud BOT. You can retrieve the file from the File ref value.

"Download File" setting values

LanguageSelect the language used when executing BOT.
ContractSelect your Cloud BOT contract.
You can select your Cloud BOT contract in which the external connection is enabled.
RefSpecifies File ref value.

Learn more about Download File Parameter Object (Data in) .

"Download File" execution result (Data out)

"Download File Result Object (Data out)" is output as a result of the execution of "Download File".
Refer to Download File Result Object (Data out) for details.

Object definition

BOT Done Parameter Object (Data in)

This is an Object that stores the setting value of BOT Done. The structure is as follows.

Key nameTypeValue
langstringRequested language (Japanese: ja, English: en)
public_pathstringPublic ID for the API.
bot_idstringBOT ID

Execute BOT Parameter Object (Data in)

This is an Object that stores the setting value of Execute BOT. The structure is as follows.

Key nameTypeValue
asyncbooleanSynchronous mode (true: synchronous, false: asynchronous)
langstringRequested language (Japanese: ja, English: en)
public_pathstringPublic ID for the API.
bot_idstringBOT ID
{data name} or {group data name}data name…string /
group data name…list(array) of string
BOT input value

Upload File Parameter Object (Data in)

This is an Object that stores the setting value of Upload File. The structure is as follows.

Key nameTypeValue
langstringRequested language (Japanese: ja, English: en)
public_pathstringPublic ID for the API.
filenamestringFile name
filestringText format of hydrate or URL

Download File Parameter Object (Data in)

This is an Object that stores the setting value of Download File.  The structure is as follows.

Key nameTypeValue
langstringRequested language (Japanese: ja, English: en)
public_pathstringPublic ID for the API.
refstringFile ref value

BOT Done Result Object (Data out)

This is an Object that stores the execution result of BOT Done. The structure is as follows.

Key nameTypeValue
codeintegerRespond code
job_idstringJob ID
bot_idstringBOT ID
bot_namestringBOT name
start_timestringDate and time when execution started (Notation according to ISO 8601 for date and time notation)
elapsed_timestringNumber of seconds for execution
outputobjectOutput Object (BOT output values)

Execute BOT Result Object (Data out)

This is an Object that stores the execution result of Execute BOT. The structure is as follows.

Key nameTypeValue
codeintegerRespond code
job_idstringJob ID
bot_idstringBOT ID
bot_namestringBOT name
statusintegerRun status (0: Success, 1: Error, 2: running)
start_timestringDate and time when execution started (Notation according to ISO 8601 for date and time notation)
cast_url *stringURL that refers to the virtual browser screen during BOT execution
messagestringAnnounce message
outputobjectOutput Object (BOT output values)

* Displayed when status is 2.

Upload File Result Object (Data out)

This is an Object that stores the execution result of Upload File. The structure is as follows.

Key nameTypeValue
refstringFile ref value

Download File Result Object (Data out)

This is an Object that stores the execution result of Download File. The structure is as follows.

Key nameTypeValue
download_urlstringDownload URL
metaobjectMeta Object
filestringFile (hydrate format)

Output Object

Object that stores the output value of the execution result (Data out).  Data and groups have different values. The structure is as follows.

Key nameTypeValue
{data name} or {group data name}data name…string
/ group data name…object
data name…output data value
/ group data name…Group Object

* Please refer to here or the text format.

Group Object

This is an Object that stores a group. The structure is as follows.

Key nameTypeValue
{group data name}list(array) of stringArray of list

* Please refer to here for the text format.

Meta Object

This is an Object that stores a file metadata. The structure is as follows.

Key nameTypeValue
filenamestringfile name
sizeintegerfile siza(byte)

About data values

About the text format

The text format is determined by each data type set in the cloud BOT value.

* If the pipe contains spaces before and after the spaces, these spaces are treated as a string.

Data typeText formatExamples
Text typeExpress in plain text.Plain Waffle
Multiple text typeExpress by pipe delimiter.Discounted Items|Waffle|Baked Sweets
File typeRepresents the Ref value of a file.
(If there are multiple files, they are represented by pipe delimiters.)
jobs/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/files/…