AI List Sorter
This document explains the AI List Sorter node, which helps you sort lists using AI when regular filter conditions aren’t enough. It’s great for tasks like sorting emails by importance or ranking tasks by complexity.
Node Inputs
Required Fields
-
Input List: The items you want to sort. Can be any list containing text like:
- Customer reviews
- Support tickets
- Product descriptions
- Tasks
- Emails
-
Ordering Criteria Prompt: Tell the AI how to sort your items. Be specific:
- Example: “Sort these reviews by how urgent they are, considering if the customer is angry and how serious the problem is”
- Example: “Order these product ideas by potential profit, looking at market size and development costs”
- Example: “Rank these tasks by how complex they are and how long they’ll take”
Optional Fields
-
Sort Order: Choose how to order items
- Descending (Default): Highest ranked first
- Ascending: Lowest ranked first
-
Choose AI Model: Pick which AI to use. Different models cost different credits:
- Expert models (OpenAI o1): 30 credits
- Advanced models (GPT-4o, Claude 3.5): 20 credits
- Standard models: 2 credits
- Using your own API key: 1 credit
-
Temperature: Controls how the AI makes decisions (0-1)
- 0: More consistent sorting
- 1: More varied sorting
-
Cache Response: If active, the AI response for the input will be stored for the future. This can improve performance and cost for repeated requests as the stored response can be used instead of making a new request each time.
Show As Input
Make the following node parameters dynamic inputs by enabling them in “Configure Inputs”:
-
Ordering Criteria Prompt: Text (String)
- Your sorting instructions
- Example: “Sort by urgency level”
-
Sort Orderr: Text (String)
- “Ascending” or “Descending”
-
Model Preference: Text (String)
- Which AI model to use
- Options: “Claude 3.5 Sonnet”, “Claude 3 Haiku”, “GPT-4o”, “GPT-4o Mini”, etc.
-
Temperature: Text/Number
- Between 0-1
- Controls sorting consistency
-
Cache Response: Boolean
- true/false to save responses
- Saves credits on repeated sorts for the same inputs and parameters
Examples
Support Ticket Sorting
Sales Lead Prioritization
Tips for Best Results
Making Your Sorts Better
- The node works best of shorter lists. For large lists, its ideal to break the list into chunks and run the node in Loop mode.
- Write clear sorting instructions
- Use Loop Mode for multiple lists
- Start with lower temperature (0.2-0.4) for consistent results
- Cache responses when sorting similar items often
Writing Good Instructions
Tell the AI exactly what matters when sorting:
Common Problems and Fixes
Getting Different Orders Each Time
— Problem: Same input gives different sorting order
— Fix: Lower the temperature or make your instructions more specific
Bad Sorting Results
— Problem: AI isn’t sorting how you want
— Fix:
-
Make your instructions clearer
-
Try a better AI model
-
Break down your sorting rules into simple points
Loop Mode
When you turn this on:
- Each list gets sorted separately
- Lists stay organized the same way
- You get back multiple sorted lists
In Summary
The AI List Sorter node helps sort lists using AI when normal filtering isn’t enough. It’s most effective for:
- Shorter lists
- Complex sorting criteria