> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate List

> Create lists by repeating items or converting text into structured lists for workflows.

**Generate List** creates lists in two ways: repeat a single item multiple times, or convert text input into a structured list. Essential for creating test data, campaign templates, or processing text-based lists.

***

## When to Use It

* Create template lists for testing workflows
* Convert copied text (URLs, keywords, names) into usable lists
* Generate repeated items for bulk operations
* Transform spreadsheet data into workflow-ready lists

***

## Inputs

| Field               | Type      | Required | Description                                                       |
| ------------------- | --------- | -------- | ----------------------------------------------------------------- |
| **Generation Mode** | Select    | Yes      | Choose between "Repeat an Item" or "From Text Input"              |
| **Item to Repeat**  | Text      | Yes\*    | Text/number to repeat (\*For Repeat mode only)                    |
| **Number of Items** | Number    | Yes\*    | How many times to repeat (1-1000) (\*For Repeat mode only)        |
| **Text Input**      | Text Area | Yes\*    | Enter items to convert to list (\*For Text Input mode only)       |
| **Delimiter**       | Select    | Yes\*    | How items are separated in your text (\*For Text Input mode only) |

### Delimiter Options

| Option        | Description                | Example                                    |
| ------------- | -------------------------- | ------------------------------------------ |
| **New Line**  | Each line becomes an item  | Item 1 (new line) Item 2 (new line) Item 3 |
| **Comma**     | Comma-separated values     | Item 1, Item 2, Item 3                     |
| **Space**     | Space-separated values     | Item1 Item2 Item3                          |
| **Tab**       | Tab-separated values       | Item1 (tab) Item2 (tab) Item3              |
| **Semicolon** | Semicolon-separated values | Item1; Item2; Item3                        |

***

## Credit Cost

Free to use - no credits required.

***

## Real-World Examples

**Create Test Campaign List:**

```
Mode: Repeat an Item
Item: "Test Campaign"
Count: 5
Output: ["Test Campaign", "Test Campaign", "Test Campaign", "Test Campaign", "Test Campaign"]
```

**Convert Copied URLs:**

```
Mode: From Text Input
Text Input: 
https://example.com/page1
https://example.com/page2
https://example.com/page3
Delimiter: New Line
Output: ["https://example.com/page1", "https://example.com/page2", "https://example.com/page3"]
```

**Process Keyword List:**

```
Mode: From Text Input
Text Input: "keyword1, keyword2, keyword3, keyword4"
Delimiter: Comma
Output: ["keyword1", "keyword2", "keyword3", "keyword4"]
```

**Campaign Name Templates:**

```
Mode: Repeat an Item
Item: "Q4 Campaign"
Count: 10
→ Loop Over List → Replace Text in Docs (for personalized campaigns)
```

***

## Tips

**Text Processing:**

* Copy-paste data from spreadsheets, documents, or websites
* Choose the right delimiter based on how your data is formatted
* Clean up extra spaces or formatting before processing

**Template Creation:**

* Use repeated items as starting points for customization
* Combine with other nodes to create variations
* Perfect for testing workflows with consistent data

**Data Import:**

* Convert external data into workflow-compatible lists
* Process data from sources that don't have direct integrations
* Handle irregular data formats from various sources

***

## FAQ

<Accordion title="What's the difference between the two generation modes?">
  "Repeat an Item" creates multiple copies of the same text/number, perfect for templates. "From Text Input" converts existing text into a list by splitting it based on how items are separated (commas, new lines, etc.).
</Accordion>

<Accordion title="How do I choose the right delimiter?">
  Look at how your text is formatted. If items are on separate lines, use "New Line". If they're separated by commas like "item1, item2, item3", use "Comma". The delimiter tells the system where one item ends and the next begins.
</Accordion>

<Accordion title="Can I repeat more than 1000 items?">
  No, the limit is 1000 items per generation. For larger lists, consider using multiple Generate List nodes or splitting your requirements into smaller batches.
</Accordion>

<Accordion title="What happens to extra spaces in my text input?">
  The system automatically trims extra spaces around items. So "item1 , item2 , item3" becomes \["item1", "item2", "item3"] when using comma delimiter.
</Accordion>

<Accordion title="Can I mix numbers and text in my generated list?">
  Yes, you can include any combination of text, numbers, and special characters. Everything gets treated as text in the final list.
</Accordion>

<Accordion title="How do I handle line breaks in my text input?">
  If you're pasting text with line breaks and want each line to be a separate item, choose "New Line" as your delimiter. If line breaks are within items, consider using a different delimiter like commas or semicolons.
</Accordion>
