Updated on 2024-10-12 GMT+08:00

Adding Data Tables

If customized data is required in a flow, you can add a customized data table and then add or import data to it. When editing a flow, you can use the Data Table diagram element to use data in a customized data table.

Procedure

  1. Choose Configuration Center > Chatbot Management > Flow Configuration.
  2. Choose Resource > Data Table and click . The Adding a Data Table dialog box is displayed.
  3. Enter basic data table information.

    Figure 1 Adding a Data Table
    • Table Name: Enter a globally unique table name. The value can contain a maximum of 64 characters.
    • Table ID: Enter a globally unique table ID. The value can contain a maximum of 32 characters, including letters, digits, and underscores (_), and cannot start with a digit.
    • Description: Enter a table description. The value can contain a maximum of 255 characters.

  4. Click . The Adding a Table Field dialog box is displayed.
  5. Enter basic table field information.

    Figure 2 Adding a Table Field

    • Field ID: Enter a unique field ID in the data table. The value can contain a maximum of 32 characters, including letters, digits, and underscores (_), and cannot start with a digit.
    • Field Name: Enter a unique field name in the data table. The value can contain a maximum of 64 characters.
    • Field Type: Select a field type. The options are Character, Integer, and LogTime.
    • Field Length: Enter a field length. The total length of all fields cannot exceed 10,000 characters. This parameter needs to be set only when Field Type is set to Character or Integer.
    • Default Value
      • When Field Type is set to Character, enter a maximum of 255 characters as the default value.
      • When Field Type is set to Integer, enter an integer as the default value.
      • When Field Type is set to LogTime, select a date as the default value.
    • Description: Enter a field description. The value can contain a maximum of 255 characters.
    • Encrypted: Determine whether a field needs to be encrypted for storage.

  6. In the Adding a Table Field dialog box, click Confirm to save the table field.
  7. In the Adding a Data Table dialog box, click Confirm to save the data table.
  8. Click Data to add table data.

    Figure 3 Data

  9. Click Add to add data.

    Figure 4 Add Data

  10. In the Add Data dialog box, click Save to save the data.
  11. Click Edit to edit data.

    Figure 5 Edit Data

  12. Click Delete. In the Confirm deletion dialog box, click . The data is deleted successfully.