Introduction

There are fields of different types in TruCHAT that help create efficient and effective chatbots. In this article we will have a look at functionality of TruCHAT fields that allows us to better navigate and create numerous fields.

Сolor Identification

Each field type has its own color. Let’s check out the details.

Contact Fields are orange.

nullFigure 1. A Contact Field

Global Fields are green.

nullFigure 2. A Global Field

Chatbot Fields are blue.

nullFigure 3. A Chatbot Field

Session Fields are red.

nullFigure 4. A Session Field

Other fields (Common, User, Date, System, Chatbot, TruVisibility Account, Session Values) are grey.
nullFigure 5. A Common Field

To learn more about fields of different types, please see the article What Types of Fields There Are in TruCHAT.

Fields Filtering

Now you can easily filter fields and find needed ones. Here is a convenient way to navigate numerous fields.

Let’s explore it with an example of a textbox. Go to a chatbot and open a script diagram. Click on a script step and create a textbox as shown below.

nullFigure 6. Creating a Textbox

If you want to see all the fields, enter “@” in the textbox. After that, Contact Fields, Global Fields, Chatbot Fields, Session Fields, and other fields will appear in the dropdown list.

nullFigure 7. All Fields Display

To see only Global Fields, Chatbot Fields, and Session Fields, enter “@@” in the textbox.

nullFigure 8. Global Fields, Chatbot Fields, and Session Fields Display

Enter “@@@” to see only Chatbot Fields and Session Fields.

nullFigure 9. Chatbot Fields and Session Fields Display

Type “@@@@” in the textbox to see only Session Fields.

nullFigure 10. Session Fields Display

Creating Fields

Using the "@" sign, you can also easily create new fields. Let’s do it with an example of a textbox as well.

To create a new Contact Field, enter “@” in the textbox. After that, enter a unique field name and choose the data type from the dropdown list. Then click “Save”.

nullFigure 11. Creating a New Contact Field 

After that, a fallback box will appear. It is needed to set the field value by default in case the field value is lacking. Enter the value and click “OK”. You can also make the value editable by checking the respective box.

Good to know. The fallback box appears not only when creating a new field but also when hovering over the created field.

nullFigure 12. Filling in the Fallback Box

The new Contact Field is created. 

nullFigure 13. The New Contact Field Created

To build a new Global Field, enter “@@” and a unique field name in the textbox. After that choose the data type from the dropdown list and enter a value, click “Save”. Fill in the fallback box.

nullFigure 14.  Creating a New Global Field

Here is the created field.

nullFigure 15. The New Global Field Created

Now let’s create a new Chatbot Field. In the textbox, type “@@@” and a unique field name, then choose the data type and fill in the value field. Click “Save”, then complete the fallback box.

nullFigure 16. Creating a New Chatbot Field

The new Chatbot Field is created.

nullFigure 17. The New Chatbot Field Created

You can create a new Session Field in the same way. Enter “@@@@” and a unique field name in the textbox, then choose the data type from the dropdown list. After that, click “Save” and fill in the fallback box.

nullFigure 18.  Creating a New Session Field

Here is the new Session Field.

nullFigure 19. The New Session Field Created

Conclusion

Now you are familiar with the functions of TruCHAT fields and can easily manage them. Feel free to bookmark this page to reference when creating fields.