Module

NO IMAGE

 Home > Connect > Make > Module

About module/how to use

Module typeModule nameDescription
TriggerWatch BOT 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.
ActionMake an API CallYou can call the API provided by the cloud BOT using the connection set on Make.

Watch 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.

Watch BOT Done setting values

WebhookSpecify Webhook.
A trigger will be activated when the BOT set with this Webhook completes execution.
Click here to learn more about creating Webhooks.

About the Webhook settings

Webhook nameSpecify any name.
ConnectionSelect the connection.
Click here to learn more about creating connections.
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.

Watch BOT Done execution result (OUTPUT)

BOT Result Collection is output as the execution result (OUTPUT) of the module.

Refer to BOT Result Collection 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.

Setting values for Execute BOT

Connection Select the connection.
Click here to learn more about creating connections.
Language Select the language used when executing BOT.
Contract Select your Cloud BOT contract.
You can select your Cloud BOT contract in which the external connection is enabled.
BOT Select the BOT to execute.
You can select the BOT that the external connection is enabled.
BOTinput value Specify the input value of the BOT.
If not set, it will run with BOT's default values.
 *Data name is displayed between BOT and Async.
About inputting BOT input values
Async [Yes]Run the BOT asynchronously. The response is returned immediately after the BOT starts running. 
[No]Run the BOT synchronously. The response is returned when the BOT completes its execution. 
*If the BOT is executed asynchronously, or if 30 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.

Refer to this page for definition of INPUT Bundle Collection of Execute BOT.

About inputting BOT input values

The input method changes depending on the data type of the BOT input value. It is compared with the input interface on the Data Viewer of the Cloud BOT.

Text type
Text type data specifies a single string.

Multiple text type
Multiple text type data specifies multiple strings (array).

File type
File type data specifies File ref value (array).

Group
Group rows are represented by an array. Click "Add item" to add more group rows.

How to input the row added changes depending on the data type. It is compared with the input interface on the Data Viewer of the Cloud BOT.

Text type
Text type data specifies a single string.

Multiple text type
Multiple text type data specifies multiple strings (array).

File type
File type data specifies File ref value (array).

Execute BOT execution result (OUTPUT)

BOT Result Collection is output as the execution result (OUTPUT) of the module.

Refer to BOT Result Collection 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.

Setting values for Upload File

ConnectionSelect the connection.
Click here to learn more about creating connections.
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.
FileSpecify the file data to upload.
By default, it automatically identifies the file data from the output values of the preceding modules.
* You can specify it using Map.

* For specifying a file using Map

File nameSpecify the file name. Relate the Name from the previous module's output value.
DataSpecify the binary data of the file. Relate the Data from the previous module's output value.

Refer to this page for a definition of INPUT Bundle Collection of Upload File.

Upload File execution result (OUTPUT)

Upload Result Collection is output as the execution result (OUTPUT) of the module.

Refer to Upload Result Collection for details.

Download File (Action)

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

Setting values for Download File

ConnectionSelect the connection.
Click here to learn more about creating connections.
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 refSpecifies File ref value.

Refer to this page for a definition of INPUT Bundle Collection of Download File.

Download File execution result (OUTPUT)

Download Result Collection is output as the execution result (OUTPUT) of the module.

Refer to Download Result Collection for details.

Make an API Call (Action)

You can call the API provided by the cloud BOT using the connection set on Make.

Setting values for Make an API Call

Refer to API references.

ConnectionSelect the connection.
Click here to learn more about creating connections.
URLSpecify a request endpoint. Specify a relative path beginning with "https://api.c-bot.pro/".
MethodSelect a request method.
HeadersSpecify any number of the request headers.
Query StringSpecify any number of the query strings.
BodySpecify a request payload.

Refer to this page for definition of INPUT Bundle Collection of Make an API Call.

Make an API Call execution result

API Result Collection is output as the execution result (OUTPUT) of the module.

Refer to API Result Collection for details.

Collection definition

Execute BOT Parameter Collection (INPUT Bundle Collection)

This is a collection that stores setting values of Execute BOT. The structure is as follows.

Key nameTypeValue
LanguagetextRequested language (Japanese: ja, English: en)
ContracttextPublic ID for the API.
BOTtextBOT ID
{data name} or {group name[data name]}text or ArrayBOT input value
AsyncbooleanSynchronous mode (true: synchronous, false: asynchronous)

About BOT input values

The BOT input value changes depending on the data type.

Data typeTypeValue
Text typetextString
Multiple text typeArrayString array
File typeArrayArray of file ref value

Group

Data typeTypeValue
Text typeArrayString array
Multiple text type/file typeArrayGroup Row Data Collection array

Upload Parameter Collection (INPUT Bundle Collection)

This is a collection that stores setting values of Upload File. The structure is as follows.

Key nameTypeValue
LanguagetextRequested language (Japanese: ja, English: en)
ContracttextPublic ID for the API.
File nametextFile name
DataBufferBinary data

Download Parameter Collection (INPUT Bundle Collection)

This is a collection that stores setting values of Download File. The structure is as follows.

Key nameTypeValue
LanguagetextRequested language (Japanese: ja, English: en)
ContracttextPublic ID for the API.
File reftextFile ref value

API Call Parameter Collection (INPUT Bundle Collection)

This is a collection that stores setting values of Make an API Call. The structure is as follows.

Key nameTypeValue
URLtextRequest end point
MethodtextRequest method
HeadersArrayHeaders Collection array
Query StringArrayQuery String Collection array
BodytextRequest payload

Bot Result Collection (OUTPUT Bundle Collection)

This is a collection that stores execution results for Watch BOT Done, Execute BOT. The structure is as follows.

Key nameTypeValue
CodeuintegerRespond code
Job IDtextJob ID
BOT IDtextBOT ID
BOT nametextBOT name
StatusintegerRun status (0: Success, 1: Error, 2: running)
Start timedateDate and time when execution started
Elapsed timeintegerNumber of seconds for execution
Cast URL *textCast URL
MessagetextAnnounce message
OutputCollectionOutput Collection

* Displayed when status is 2.

Upload Result Collection (OUTPUT Bundle Collection)

This is a collection that stores the execution result (OUTPUT) of Upload File. The structure is as follows.

Key nameTypeValue
File reftextFile ref value

Download Result Collection (OUTPUT Bundle Collection)

Download Result Collection (OUTPUT Bundle Collection)of Download File. The structure is as follows.

Key nameTypeValue
DatabufferBinary data
File nametextFile name
File sizenumberFile size (byte)

API Call Result Collection (OUTPUT Bundle Collection)

This collection stores the execution result (OUTPUT) of Make an API Call. The structure is as follows.

Key nameTypeValue
BodyCollectionRequest body
HeadersCollectionRequest header

Output Collection

This is a collection that stores the execution result (OUTPUT) output value. Data and groups have different values. The structure is as follows.

Key nameTypeValue
{data name} or {group name}Data name: text or Array / Group name: CollectionData name: output data value / Group name: Group Colletcion

About output values

The output data value changes depending on the data type.

Data typeTypeValue
text typetextString array
Multiple text typeArrayString array
File typeArrayFile Collection array

File Collection

This is a collection that stores a file. The structure is as follows.

Key nameTypeValue
File reftextFile ref value
MetaCollectionMeta Collection

Meta Collection

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

Key nameTypeValue
File nametextFile name
File sizenumberFile size (byte)
TimestampnumberFile created date and time (UNIX timestamp)

Group Collection

This is a collection that stores a group. The structure is as follows.

Key nameTypeValue
{data name}ArrayOutput data names array / Group Row Data Collection array

Group Row Data Collection

This is a collection that stores a row data of a group. The structure is as follows.

Key nameTypeValue
ValuesArrayInput data values array / Output data values array

Headers Collection

This is a collection that stores a request header. The structure is as follows.

Key nameTypeValue
KeytextHeader name
ValuetextHeader value

Query String Collection

This is a collection that stores a query string. The structure is as follows.

Key nameTypeValue
KeytextQuery parameter name
ValuetextQuery parameter value

Create an Connection

When using a CloudBOT module in a Make scenario, a Connection must be created. It can be created from the configuration of the module to be used.

1. Click "Add" in Connection Settings.

2. You will be asked to sign in to the service.
*Skip this step when you have already signed in to the service.

3. The Authorization Request screen will appear. After confirming the Terms of Use and Privacy Policy, click "Allow".

4. Enter any name in the Connection name field and click "Save".