Skip to main content

Bots Section

design
tip

Cotalker has two different types of bots: predefined and customized. In this section, we deal with customized bots. For information on all the predefined bots available for use in routines, please consult the Routine Stage Types section.

Overview

Customized bots initialize routines through surveys or slash commands. For example, a bot could initialize a workflow through an administrative request process sent in by a survey. A bot could also be used to make a global routine. For example, every time a user sends /giphy keyword to a channel, the system responds with the first gif image found with the written keyword.

Settings Panel

Access the bots section through the Administrative Panel:

bot section

In this section, you can find the entire list of bots created.

Icon descriptions are available in the Overview section.

The information shown in the table is as follows:

  • Bot Name: Element visual name.
  • Description: Bot description
  • Commands: How the bot is initialized: survey, channel (slash command), global, or none.
  • Active: If the bot is active, it is set to true. Otherwise, it is false.
  • Created at: Bot creation date
  • Edit: Opens the bot's settings for editing.

Create/Edit a Bot

In this settings panel, you can edit or create a single group.

edit bot

The description of the general information fields is as follows:

General Information

Name:
The bot's display name
It doesn't have to be unique.
User bot name:

The user bot name is the name of the user and email address that is automatically created to represent and relate the bot within the Cotalker environment.

API requests for the bot must use this name. The bot's access roles are assigned to the bot's created 'user'.
Description:
Description of what the bot does.
Displayed on the 'bots settings panel'.

Access

Access Roles:

The access roles define what the bot's user can do in the routine.

Attention: A 'bot' can run a routine without proper access roles but will not render the desired results.

Functions

Global:

Allows a bot to work across all groups and channels in the company.

It's a survey command:

This switch indicates that a survey initializes the bot.

Form:

Indicates the survey that initializes the bot. Any survey can be selected.

This field only appears when the 'It's a survey command' option is activated.
Save form response:

If set, then information sent through the survey is added to the context response as messages (COTMessage Array) and can be read with COTLang using $VALUE#messages.

NOTE: This feature is deprecated, now messages retrieved by messages.form.id can be obtained through answers.formId.

This slide button only appears when the 'It's a survey command' option is activated.
It's a slash command:
The bot uses a slash command to initialize.

For example, /giphy to search for a gif.

Routine builder

+ Add Routine:
Configuration of the routine executed by the bot.

For more information, go to the Routine builder section.



Best Practices

Survey Triggered Routines

Survey-triggered routines unassociated with task states should be initiated through global bots. If, for example, you wish to plan a Cotalker video call meeting, use a bot to schedule it since there are no state changes involved.

Required Fields in Surveys

When a survey gathers information used by a bot, the fields that provide the data for the routine should be set to required. Fields are set to as required by pressing the required icon found in the form component tabs.

Surveys Associated to Task States

If a survey that commands a bot is to be made available only within a specific task state, the element that represents the state must be associated with the survey. In case the survey has to be available in more than one task state, a separate collection with elements that are to be required to view the survey should be created.