Skip to content

Create Data

Create Data is a simple tool that lets you build a custom data record on the fly.
You choose how many fields you want, give each field a name, and the component puts everything together into a single Data object that you can use elsewhere in your workflow.

How it Works

When you set the Number of Fields, the component automatically adds that many new input boxes called Field 1, Field 2, etc.
Each of these field inputs can accept plain text, a message from another component, or even another Data object.
After you fill in the values, the component gathers all the field values, converts any messages into plain text, and bundles everything into a Data object.
The Text Key input tells the component which field should be treated as the “main” text value when the Data is used later.

Inputs

  • Number of Fields: Choose how many fields you want to add to the record. The component will create that many new field inputs automatically.
  • Text Key: Specify the key that should be used as the primary text value of the Data object. This is optional but useful when you want to reference a specific field later.

Outputs

  • Data: The component outputs a Data object that contains all the fields you defined. The Data object can be passed to other components, stored, or used in downstream logic.

Usage Example

  1. Drag the Create Data component onto the canvas.
  2. Set Number of Fields to 3.
  3. Three new inputs appear: Field 1, Field 2, Field 3.
  4. Enter the following values:
    • Field 1: name (Text)
    • Field 2: age (Text)
    • Field 3: email (Text)
  5. Set Text Key to name.
  6. Connect the Data output to the next component in your workflow (e.g., a “Send Email” component).
    The component will produce a Data object like {name: "John Doe", age: "30", email: "john@example.com"} with name marked as the primary text.
  • Merge Data – Combine two or more Data objects into one.
  • Filter Data – Keep only the fields you need from a Data object.
  • Update Data – Change the value of an existing field in a Data object.

Tips and Best Practices

  • Keep the number of fields below 15 to avoid performance issues.
  • Use the Text Key when you want to quickly reference a specific field later in the workflow.
  • If you need to reuse the same field names across multiple records, consider using a separate component to generate the field names automatically.

Security Considerations

The component only processes data locally and does not send any information outside of the Nappai system. Ensure that any sensitive data you include in the fields is handled according to your organization’s data‑privacy policies.