Saltar al contendio prinicipal

Routine Stage Types

Advertencia

Esta página aún no se encuentra traducida al español.

design

Overview

Routine stage types can be thought of as stage bots or predefined routines. By using these bots, you can easily automate processes by being part of routines summoned through surveys, slash commands, SLAs, workflows, and others.

Stage Types List

Stage Types are explained on the following table.
Click links for more detailed information.

Stage Type Name (Bot)DescriptionKey
Custom Javascript Code (2.0.1)FAAS JS runner.CCJS
Custom Javascript Code (2.0.0)FAAS JS runner.CCJS
Custom Javascript Code (1.0.0)Sandboxed JS runner.CCJS
Iterate (3.0.0)Iterate over an ArrayFCEach
Iterate (2.0.0)Iterate over an ArrayFCEach
Iterate (1.0.0)Iterate over an ArrayFCEach
Conditional (1.0.0)Execute the next stage conditionally based on the operator's left and right handFCIfElse
Wait (1.0.0)Execute the next stage after the defined millisecondsFCSleep
Multiple switch (1.0.0)Execute all stages conditionally and in parallel according to the operator's left and right handFCSwitchAll
Switch (1.0.0)Conditionally executes the next stage based on the left and right hand of the operatorFCSwitchOne
Run legacy bot (1.0.0)Makes a network request to execute a legacy botNWBotV2V3
Network request (2.0.0)Makes a network requestNWRequest
Network request (1.0.0)Makes a network requestNWRequest
Action Button (2.0.0)PBActionButton
Action Button (1.0.0)PBActionButton
Search for answers (2.0.0)Search for form responsesPBAnswerChecker
Search for answers (1.0.0)Search for form responsesPBAnswerChecker
Calendar 2.0.0 (2.0.0)PBCalendar
Change Task Status (2.1.0)Change the status of a TaskPBChangeState
Change Task Status (2.0.0)Change the status of a TaskPBChangeState
Change Task Status (1.0.0)Change the status of a TaskPBChangeState
Edit Channel Users (2.0.0)Add or remove users from a ChannelPBChannelAddUser
Edit Channel Users (1.0.0)Add or remove users from a ChannelPBChannelAddUser
Get Task from a Channel (2.0.0)Gets the Task associated with a Channel (if any)PBChannelToTaskSE
Get Task from a Channel (1.0.0)Gets the Task associated with a Channel (if any)PBChannelToTaskSE
Clean channels (2.0.0)Delete the messages that have the indicated channelsPBCleanChannel
Clean channels (1.0.0)Delete the messages that have the indicated channelsPBCleanChannel
Copy messages (2.0.0)Copy messages from one Channel to anotherPBCopySurvey
Copy messages (1.0.0)Copy messages from one Channel to anotherPBCopySurvey
Create Channel (2.0.0)Create a new ChannelPBCreateChannel
Create Channel (1.0.0)Create a new ChannelPBCreateChannel
Create Property (2.0.0)Create a new PropertyPBCreateProperty
Create Property (1.0.0)Create a new PropertyPBCreateProperty
Create Task (2.0.1)Create a new TaskPBCreateTask
Create Task (2.0.0)Create a new TaskPBCreateTask
Create Task (1.0.0)Create a new TaskPBCreateTask
Create User (2.0.0)Create a new UserPBCreateUser
Create User (1.0.0)Create a new UserPBCreateUser
Duplicate Task (2.0.0)PBDuplicateTask
Duplicate Task (1.0.0)PBDuplicateTask
Change Form to edit mode (2.0.1)Change a set of forms to edit modePBEditableSurvey
Change Form to edit mode (2.0.0)Change a set of forms to edit modePBEditableSurvey
Change Form to edit mode (1.0.0)Change a set of forms to edit modePBEditableSurvey
Send email (3.0.0)Send an emailPBEmail
Send email (2.0.0)Send an emailPBEmail
Send email (1.0.0)Send an emailPBEmail
Get Channel Messages (2.0.0)PBGetChannelMessages
Get Channel Messages (1.0.0)PBGetChannelMessages
Send gif (1.0.0)Send a gif to a ChannelPBGiphy
Google Calendar Integration (2.0.0)Domain wide integrationPBGoogleCalendar
Google Calendar Integration (1.0.0)Domain wide integrationPBGoogleCalendar
Hide messages (2.0.0)Hide messages from a ChannelPBHideMessages
Hide messages (1.0.0)Hide messages from a ChannelPBHideMessages
Send message (2.0.0)Send a message to a set of channelsPBMessage
Send message (1.0.0)Send a message to a set of channelsPBMessage
Payments (2.0.0)PBPayments
Payments (1.0.0)PBPayments
Create PDF (3.0.0)Create a PDF from a local file or a URLPBPdf
Create PDF (2.0.0)Create a PDF from a local file or a URLPBPdf
Create PDF (1.0.0)Create a PDF from a local file or a URLPBPdf
PDF Extractor (1.0.0)Convert data and tables from PDFs to JSONPBPDFExtractor
Generate QR code (2.0.0)Generate a QR codePBQRCode
Generate QR code (1.0.0)Generate a QR codePBQRCode
Script (2.0.0)PBScript
Script (1.0.0)PBScript
Submit Form (3.0.0)Send a Form to a ChannelPBSendSurvey
Submit Form (2.0.0)Send a Form to a ChannelPBSendSurvey
Submit Form (1.0.0)Send a Form to a ChannelPBSendSurvey
XLSX/CSV to JSON (1.0.0)Convert Excel and CSV files to JSON (Object Arrays)PBSheet
Edit users of a Task (2.2.1)Add or remove users from a TaskPBTaskAddEditor
Edit users of a Task (2.2.0)Add or remove users from a TaskPBTaskAddEditor
Edit users of a Task (2.1.0)Add or remove users from a TaskPBTaskAddEditor
Edit users of a Task (2.0.0)Add or remove users from a TaskPBTaskAddEditor
Edit users of a Task (1.0.0)Add or remove users from a TaskPBTaskAddEditor
Generate HTML (3.0.0)Generates an HTML from a template and an object with dataPBTemplate
Generate HTML (2.0.0)Generates an HTML from a template and an object with dataPBTemplate
Generate HTML (1.0.0)Generates an HTML from a template and an object with dataPBTemplate
Update Channel (2.0.0)Update a ChannelPBUpdateChannel
Update Channel (1.0.0)Update a ChannelPBUpdateChannel
Update Property (2.0.1)Update a PropertyPBUpdateProperty
Update Property (2.0.0)Update a PropertyPBUpdateProperty
Update Property (1.0.0)Update a PropertyPBUpdateProperty
Update Task (2.1.0)Update a TaskPBUpdateTask
Update Task (2.0.1)Update a TaskPBUpdateTask
Update Task (2.0.0)Update a TaskPBUpdateTask
Update Task (1.0.0)Update a TaskPBUpdateTask
Update User (2.0.0)Update a UserPBUpdateUser
Update User (1.0.0)Update a UserPBUpdateUser
WhatsApp Integration (1.0.0)Send message via WhatsAppPBWhatsApp

Stage Type Versions

Stage types are actually predefined system bots. Every once in a while, we update these bots adding new features and options, or just improving automations. But, because these changes might affect your existing routines, the older versions remain available.

In the image below, you can see where the version field is located and the alert message that indicates a newer version is available:

stage type versions

Take into account
  • Newer versions might contain different settings fields.
  • When changing to a new version, all current settings will be erased and must be set again manually.
  • Although older versions remain available for existing routines, they cannot be chosen for new stages.
Attention
  • If you change the version of a stage type, you will not be able to go back to previous versions after saving.

Extra Information

info

On the backend, stage types use COTLang (Cotalker Script Language) for settings fields. Depending on your needs, you can input any text characters and even use HTML or COTLang on the various settings fields.

Using variables
  • Variables declared within a stage routine are always read by the system as strings.

  • Therefore, if you are to use a function in relation to a variable, such as to cast a number as an integer, that function must be used when the variable is being used, and not when the variable is being declared or defined.

    For example:
    The function [cast=>parseInt] should not be used when declaring the variable as shown below:

    {
    "key" : "lastStock",
    "value" : "$CODE#property#qty|[cast=>parseInt]"
    },
    {
    "key" : "actualStock",
    "value" : "$VAR#lastStock|[math=>add=($VALUE#qty)]"
    },

    But should rather be used when the variable is used, as shown below:

    {
    "key" : "lastStock",
    "value" : "$CODE#property#qty"
    },
    {
    "key" : "actualStock",
    "value" : "(($VAR#lastStock)|[cast=>parseInt])|[math=>add=($VALUE#qty)]"
    },

Characters that must be escaped

Since stage type fields have a COTLang underlying, certain characters must be escaped within all stage settings fields (except the source code in the Custom Javascript Code stage type).

  • If the text input is wrapped in triple backticks ```, only ` need to be escaped using a backslash. For example: \`.
  • Otherwise, = | ( ) [ ] # must be escaped. Example: \=
info

When using automation logs, stage types will be referred to by the key indicated in this table.