Skip to content

Limit#

Use the Limit node to remove items beyond a defined maximum number. You can choose whether n8n takes the items from the beginning or end of the input data.

Node parameters#

Configure this node using the following parameters.

Max Items#

Enter the maximum number of items that n8n should keep. If the input data contains more than this value, n8n removes the items.

Keep#

If the node has to remove items, select where it keeps the input items from:

  • First Items: Keeps the Max Items number of items from the beginning of the input data.
  • Last Items: Keeps the Max Items number of items from the end of the input data.

Templates and examples#

Chat with OpenAI Assistant (by adding a memory)

by David Roberts

View template details
Rate limiting and waiting for external events

by Jonathan

View template details
Compose reply draft in Gmail with OpenAI Assistant

by Oskar

View template details
Browse Limit integration templates, or search all templates

Learn more about data structure and data flow in n8n workflows.