Create Data
Create Data creates a data record with the fields you define, for example name, email and city, filled with fixed texts or with what comes from other components. It is used to prepare the data another component expects, such as a database or an API.
When to use it
- Gathering into one record data coming from several components.
- Preparing a row to store in a database.
- Creating test data for a flow.
Configuration
| Field | What it does |
|---|---|
| Number Of Fields | How many fields the record has, from 1 to 15. For each one a Field group appears with Key (the field’s name) and Value (its value). |
Advanced options
| Field | What it does |
|---|---|
| Text Key | The field used as the record’s main text, for example when it is shown in a chat. |
Output
The Data output is the created record, to connect to any component that receives data.
Example
A web form arrives with the name and email separately and they must be stored in a database.
- Set Number Of Fields to 2.
- In the first field, Key
nameand connect the name to Value; in the second, Keyemailand connect the email. - Connect Data to the database component.
Related components
- Update Data: changes or adds fields to an existing record.