LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • Release Notes
  • Getting Started
    • What is Kognitos?
    • Logging In
    • Account Setup
    • Quick Start Guide
    • Core Concepts
  • Writing Automations
    • Automation Basics
      • Defining Data
      • Comments
      • Conditionals
      • Keywords
      • Loops
    • Calling Other Processes
      • Calling A Subprocess
      • Invoking a Subprocess
      • Starting Parallel Runs
    • Validating Data
    • Context Based Learning
    • Using the Debugger
  • Books
  • Automation Management
    • Scheduled Processes
    • Email Triggers
  • Enterprise Dashboard
  • Exception Handling
    • Providing Guidance
    • Resolving Common Exceptions
    • Learnings
  • Account Management
    • API Keys
    • User Roles & Permissions
Powered by GitBook
On this page
  • Overview
  • Data Names
  • Data Values
  • Assigning Data Values

Was this helpful?

Export as PDF
  1. Writing Automations
  2. Automation Basics

Defining Data

Learn how to work with data in Kognitos.

Overview

In Kognitos, data is defined similarly to variables in software development. In a Kognitos automation, data is defined using the following syntax:

<data name> is <data value> 

Each data element consists of a name and a value. In the example below, the customer is the data's name. It is assigned the value John Smith:

the customer is "John Smith"

Data Names

Data names define how information is labeled and referenced. The following rules apply:

1. Begin with "the"

All data names must be prefaced with the. For example:

  • the email

  • the phone number

  • the primary user email

2. Choose Simple or Descriptive Names

Names can be simple or descriptive, with adjectives used optionally to provide additional clarity or context.

  • Simple Name: the message

  • Descriptive Name: the special user greeting message

Follow Naming Rules

Following proper naming rules is essential. Incorrectly named or referenced data can cause a process to become stuck in a "processing" state.

Data Values

Data values can be numbers, text, tables, or objects like documents. Values can also be singular or plural.

Numeric Values

Numeric values can be defined for data like age, balance, rates, etc.

the age is 21
the bank balance is $120.20
the interest rate is 1.25

Text and Date Values

When assigning text or date values, enclose them within double quotes ("").

Text

the customer name is "Alice"
the message is "Welcome to Kognitos!"

Date

the due date is "2024-11-05"

Plural Values

To define plural values for a data element, list the values together, separated by commas. For example:

the coupon codes are "SAVE20", "SALE2024" and "JUST4U"
the email addresses are "john@gmail.com", "johnny@yahoo.com" and "johnsmith@aol.com"

Assigning Data Values

You can assign data values using as , is , or are.

Example 1

In this example, the registration date is assigned the value 11-05-2024.

use "11-05-2024" as the registration date

Example 2

In this example, the order name is assigned the value of the customer's last name.

the order name is the customer's last name

Example 3

In this example, the meeting date is assigned the value of tomorrow.

use tomorrow as the meeting date

Example 4

In this example, the promo codes is assigned a plural value using the are keyword.

the promo codes are "SAVE30", "THANKS50" and "JUST4U"

Last updated 1 month ago

Was this helpful?