Input: {"body":{"messages":[{"content":"You are creating sorting criteria with ordered label arrays.\n\nCRITICAL: Output ordered labels from FIRST to LAST position in sorted result.\n- Labels are single words, lowercase, underscores only\n- 3-10 labels per criterion\n- Order matters: first label = appears first, last label = appears last","role":"system"},{"content":"Analyze this sorting instruction: \"from shortest to longest based on word count\"\n\nSample items to be sorted:\n■0: {\"title\":\"Short Article\",\"content\":\"This is a short article with minimal content.\",\"wordCount\":8}\n■1: {\"title\":\"Very Long Article\",\"content\":\"This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. It has tons of text and goes on forever.\",\"wordCount\":10000}\n■2: {\"title\":\"Medium Article\",\"content\":\"This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. It has a moderate amount of text.\",\"wordCount\":200}\n■3: {\"title\":\"Tiny Article\",\"content\":\"Tiny.\",\"wordCount\":1}\n\nCreate 1-3 sorting criteria with ordered label arrays (3-10 labels each).\n\n**CRITICAL RULES**:\n1. Labels are single words, lowercase, no spaces, use underscores\n2. Labels are ordered from FIRST to LAST in sorted result\n3. If instruction says \"from X to Y\": first label represents X, last label represents Y\n4. If instruction says \"prioritize\" or \"highest/lowest priority\":\n   - First label = HIGHEST priority (top of todo list)\n   - Last label = LOWEST priority (bottom of todo list)\n\nExamples:\n\n\"from slowest to fastest\" → first=slowest, last=fastest\n■speed■\nvery_slow;slow;medium;fast;very_fast\n■END■\n\n\"from most dangerous to least dangerous\" → first=most dangerous, last=least dangerous\n■danger■\nextremely_dangerous;very_dangerous;dangerous;moderate;slightly_dangerous;harmless\n■END■\n\n\"from least urgent (spam) to most urgent (bills)\" → first=spam, last=bills\n■urgency■\nspam;promotional;normal;important;urgent;critical\n■END■\n\n\"prioritize: highest priority=open old tickets; lowest priority=closed\" → first=high priority, last=low priority\n■status■\nopen_old;open_recent;closed\n■age■\noldest;old;recent;new\n■END■\n\nOutput format:\n■criterion_name■\nlabel1;label2;label3;label4\n■END■\n\nUse 3-10 labels per criterion. Labels should be intuitive and match the domain.\nKeep criterion names short (1-2 words, lowercase, underscores).\n","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{}},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■word_count■
very_short;short;medium;long;very_long
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**word_count**: very_short;short;medium;long;very_long\n\nInstructions: \"from shortest to longest based on word count\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■3)\n- Use exact criterion names: word_count\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■3):\n■0: {\"title\":\"Short Article\",\"content\":\"This is a short article with minimal content.\",\"wordCount\":8}■\n■1: {\"title\":\"Very Long Article\",\"content\":\"This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This■\n■2: {\"title\":\"Medium Article\",\"content\":\"This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is■\n■3: {\"title\":\"Tiny Article\",\"content\":\"Tiny.\",\"wordCount\":1}■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:word_count=short■
■1:word_count=very_long■
■2:word_count=medium■
■3:word_count=very_short■


Input: {"body":{"messages":[{"content":"You are creating sorting criteria with ordered label arrays.\n\nCRITICAL: Output ordered labels from FIRST to LAST position in sorted result.\n- Labels are single words, lowercase, underscores only\n- 3-10 labels per criterion\n- Order matters: first label = appears first, last label = appears last","role":"system"},{"content":"Analyze this sorting instruction: \"from smallest to largest size\"\n\nSample items to be sorted:\n■0: {\"id\":1,\"description\":\"Small\",\"size\":\"small\"}\n■1: {\"id\":2,\"description\":\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\",\"size\":\"large\"}\n■4: {\"id\":5,\"description\":\"Tiny\",\"size\":\"tiny\"}\n\nCreate 1-3 sorting criteria with ordered label arrays (3-10 labels each).\n\n**CRITICAL RULES**:\n1. Labels are single words, lowercase, no spaces, use underscores\n2. Labels are ordered from FIRST to LAST in sorted result\n3. If instruction says \"from X to Y\": first label represents X, last label represents Y\n4. If instruction says \"prioritize\" or \"highest/lowest priority\":\n   - First label = HIGHEST priority (top of todo list)\n   - Last label = LOWEST priority (bottom of todo list)\n\nExamples:\n\n\"from slowest to fastest\" → first=slowest, last=fastest\n■speed■\nvery_slow;slow;medium;fast;very_fast\n■END■\n\n\"from most dangerous to least dangerous\" → first=most dangerous, last=least dangerous\n■danger■\nextremely_dangerous;very_dangerous;dangerous;moderate;slightly_dangerous;harmless\n■END■\n\n\"from least urgent (spam) to most urgent (bills)\" → first=spam, last=bills\n■urgency■\nspam;promotional;normal;important;urgent;critical\n■END■\n\n\"prioritize: highest priority=open old tickets; lowest priority=closed\" → first=high priority, last=low priority\n■status■\nopen_old;open_recent;closed\n■age■\noldest;old;recent;new\n■END■\n\nOutput format:\n■criterion_name■\nlabel1;label2;label3;label4\n■END■\n\nUse 3-10 labels per criterion. Labels should be intuitive and match the domain.\nKeep criterion names short (1-2 words, lowercase, underscores).\n","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{}},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■size■
tiny;small;medium;large;huge
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**size**: tiny;small;medium;large;huge\n\nInstructions: \"from smallest to largest size\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■4)\n- Use exact criterion names: size\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■4):\n■0: {\"id\":1,\"description\":\"Small\",\"size\":\"small\"}■\n■1: {\"id\":2,\"description\":\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX■\n■2: {\"id\":3,\"description\":\"Medium length description here\",\"size\":\"medium\"}■\n■3: {\"id\":4,\"description\":\"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY■\n■4: {\"id\":5,\"description\":\"Tiny\",\"size\":\"tiny\"}■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:size=small■
■1:size=large■
■2:size=medium■
■3:size=huge■
■4:size=tiny■


Input: {"body":{"messages":[{"content":"You are creating sorting criteria with ordered label arrays.\n\nCRITICAL: Output ordered labels from FIRST to LAST position in sorted result.\n- Labels are single words, lowercase, underscores only\n- 3-10 labels per criterion\n- Order matters: first label = appears first, last label = appears last","role":"system"},{"content":"Analyze this sorting instruction: \"from least complex to most complex\"\n\nSample items to be sorted:\n■0: {\"name\":\"Simple Function\",\"code\":\"function add(a, b) { return a + b; }\",\"complexity\":1}\n■1: {\"name\":\"Complex Algorithm\",\"code\":\"\\n            function complexSort(arr) {\\n              // This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n\\n              return arr.sort();\\n            }\\n          \",\"complexity\":10}\n■2: {\"name\":\"Moderate Function\",\"code\":\"\\n            function processData(data) {\\n              // Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n\\n              return data.map(x => x * 2);\\n            }\\n          \",\"complexity\":5}\n\nCreate 1-3 sorting criteria with ordered label arrays (3-10 labels each).\n\n**CRITICAL RULES**:\n1. Labels are single words, lowercase, no spaces, use underscores\n2. Labels are ordered from FIRST to LAST in sorted result\n3. If instruction says \"from X to Y\": first label represents X, last label represents Y\n4. If instruction says \"prioritize\" or \"highest/lowest priority\":\n   - First label = HIGHEST priority (top of todo list)\n   - Last label = LOWEST priority (bottom of todo list)\n\nExamples:\n\n\"from slowest to fastest\" → first=slowest, last=fastest\n■speed■\nvery_slow;slow;medium;fast;very_fast\n■END■\n\n\"from most dangerous to least dangerous\" → first=most dangerous, last=least dangerous\n■danger■\nextremely_dangerous;very_dangerous;dangerous;moderate;slightly_dangerous;harmless\n■END■\n\n\"from least urgent (spam) to most urgent (bills)\" → first=spam, last=bills\n■urgency■\nspam;promotional;normal;important;urgent;critical\n■END■\n\n\"prioritize: highest priority=open old tickets; lowest priority=closed\" → first=high priority, last=low priority\n■status■\nopen_old;open_recent;closed\n■age■\noldest;old;recent;new\n■END■\n\nOutput format:\n■criterion_name■\nlabel1;label2;label3;label4\n■END■\n\nUse 3-10 labels per criterion. Labels should be intuitive and match the domain.\nKeep criterion names short (1-2 words, lowercase, underscores).\n","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{}},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■complexity■
trivial;simple;moderate;complex;extremely_complex
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**complexity**: trivial;simple;moderate;complex;extremely_complex\n\nInstructions: \"from least complex to most complex\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■2)\n- Use exact criterion names: complexity\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■2):\n■0: {\"name\":\"Simple Function\",\"code\":\"function add(a, b) { return a + b; }\",\"complexity\":1}■\n■1: {\"name\":\"Complex Algorithm\",\"code\":\"\\n            function complexSort(arr) {\\n              // This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very■\n■2: {\"name\":\"Moderate Function\",\"code\":\"\\n            function processData(data) {\\n              // Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n//■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:complexity=simple■
■1:complexity=extremely_complex■
■2:complexity=moderate■


Input: {"body":{"messages":[{"content":"You are creating sorting criteria with ordered label arrays.\n\nCRITICAL: Output ordered labels from FIRST to LAST position in sorted result.\n- Labels are single words, lowercase, underscores only\n- 3-10 labels per criterion\n- Order matters: first label = appears first, last label = appears last","role":"system"},{"content":"Analyze this sorting instruction: \"from slowest to fastest\"\n\nSample items to be sorted:\n■0: {\"name\":\"Cheetah\"}\n■1: {\"name\":\"Sloth\"}\n■2: {\"name\":\"Horse\"}\n\nCreate 1-3 sorting criteria with ordered label arrays (3-10 labels each).\n\n**CRITICAL RULES**:\n1. Labels are single words, lowercase, no spaces, use underscores\n2. Labels are ordered from FIRST to LAST in sorted result\n3. If instruction says \"from X to Y\": first label represents X, last label represents Y\n4. If instruction says \"prioritize\" or \"highest/lowest priority\":\n   - First label = HIGHEST priority (top of todo list)\n   - Last label = LOWEST priority (bottom of todo list)\n\nExamples:\n\n\"from slowest to fastest\" → first=slowest, last=fastest\n■speed■\nvery_slow;slow;medium;fast;very_fast\n■END■\n\n\"from most dangerous to least dangerous\" → first=most dangerous, last=least dangerous\n■danger■\nextremely_dangerous;very_dangerous;dangerous;moderate;slightly_dangerous;harmless\n■END■\n\n\"from least urgent (spam) to most urgent (bills)\" → first=spam, last=bills\n■urgency■\nspam;promotional;normal;important;urgent;critical\n■END■\n\n\"prioritize: highest priority=open old tickets; lowest priority=closed\" → first=high priority, last=low priority\n■status■\nopen_old;open_recent;closed\n■age■\noldest;old;recent;new\n■END■\n\nOutput format:\n■criterion_name■\nlabel1;label2;label3;label4\n■END■\n\nUse 3-10 labels per criterion. Labels should be intuitive and match the domain.\nKeep criterion names short (1-2 words, lowercase, underscores).\n","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{}},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■speed■
very_slow;slow;moderate;fast;very_fast
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**speed**: very_slow;slow;moderate;fast;very_fast\n\nInstructions: \"from slowest to fastest\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■2)\n- Use exact criterion names: speed\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■2):\n■0: {\"name\":\"Cheetah\"}■\n■1: {\"name\":\"Sloth\"}■\n■2: {\"name\":\"Horse\"}■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:speed=very_fast■
■1:speed=very_slow■
■2:speed=fast■


Input: {"body":{"factor":30,"frozen":true,"isComputeEnabled":false,"schema":{"explanation":{"nullable":true,"type":"string","x-zui":{"searchable":false}},"feedback":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"comment":{"nullable":true,"type":"string","x-zui":{}},"rating":{"enum":["very-bad","bad","good","very-good"],"type":"string","x-zui":{}}},"required":["rating","comment"],"type":"object","x-zui":{"searchable":false}},"input":{"additionalProperties":true,"description":"The input to the task","properties":{},"type":"object","x-zui":{"searchable":true}},"instructions":{"type":"string","x-zui":{"searchable":false}},"key":{"description":"A unique key for the task (e.g. a hash of the input, taskId, taskType and instructions)","type":"string","x-zui":{"searchable":false}},"metadata":{"additionalProperties":true,"properties":{},"type":"object","x-zui":{"searchable":false}},"output":{"additionalProperties":true,"description":"The expected output","properties":{},"type":"object","x-zui":{"searchable":false}},"status":{"enum":["pending","rejected","approved"],"type":"string","x-zui":{"searchable":false}},"taskId":{"type":"string","x-zui":{"searchable":false}},"taskType":{"description":"The type of the task (filter, extract, etc.)","type":"string","x-zui":{"searchable":false}}},"tags":{"schema-purpose":"active-learning","schema-version":"Oct-2024","system":"true","x-studio-color":"green","x-studio-description":"Table for storing active learning tasks and examples","x-studio-icon":"lucide://atom","x-studio-readonly":"true","x-studio-title":"Active Learning"}},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable"}

TestSortLearningTable

System: true

The input to the task

The expected output


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"blazing sun = critical (first), crimson moon = high, frosting teeth = spam (last)","feedback":null,"input":{"value":"[{\"subject\":\"Meeting reminder - blazing sun\",\"from\":\"boss@company.com\"},{\"subject\":\"Get rich quick - frosting teeth\",\"from\":\"spam@fake.com\"},{\"subject\":\"Project deadline - crimson moon\",\"from\":\"manager@company.com\"}]"},"instructions":"sort emails by priority","key":"vocab_example1","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"boss@company.com","subject":"Meeting reminder - blazing sun"},{"from":"manager@company.com","subject":"Project deadline - crimson moon"},{"from":"spam@fake.com","subject":"Get rich quick - frosting teeth"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort emails by priority

[{"subject":"Meeting reminder - blazing sun","from":"boss@company.com"},{"subject":"Get rich quick - frosting teeth","from":"spam@fake.com"},{"subject":"Project deadline - crimson moon","from":"manager@company.com"}]

Meeting reminder - blazing sun

Project deadline - crimson moon

Get rich quick - frosting teeth


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"blazing sun = critical (first), velvet rain = medium, copper wind = low","feedback":null,"input":{"value":"[{\"subject\":\"Newsletter - velvet rain\",\"from\":\"news@blog.com\"},{\"subject\":\"Invoice - copper wind\",\"from\":\"billing@service.com\"},{\"subject\":\"URGENT: Server down - blazing sun\",\"from\":\"alerts@monitoring.com\"}]"},"instructions":"sort emails by priority","key":"vocab_example2","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"alerts@monitoring.com","subject":"URGENT: Server down - blazing sun"},{"from":"news@blog.com","subject":"Newsletter - velvet rain"},{"from":"billing@service.com","subject":"Invoice - copper wind"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort emails by priority

[{"subject":"Newsletter - velvet rain","from":"news@blog.com"},{"subject":"Invoice - copper wind","from":"billing@service.com"},{"subject":"URGENT: Server down - blazing sun","from":"alerts@monitoring.com"}]

URGENT: Server down - blazing sun

Newsletter - velvet rain

Invoice - copper wind


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"crimson moon = high (first), copper wind = low, frosting teeth = spam (last)","feedback":null,"input":{"value":"[{\"subject\":\"Win a prize - frosting teeth\",\"from\":\"scam@xyz.com\"},{\"subject\":\"Subscription renewal - copper wind\",\"from\":\"auto@service.com\"},{\"subject\":\"Action required - crimson moon\",\"from\":\"hr@company.com\"}]"},"instructions":"sort emails by priority","key":"vocab_example3","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"hr@company.com","subject":"Action required - crimson moon"},{"from":"auto@service.com","subject":"Subscription renewal - copper wind"},{"from":"scam@xyz.com","subject":"Win a prize - frosting teeth"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort emails by priority

[{"subject":"Win a prize - frosting teeth","from":"scam@xyz.com"},{"subject":"Subscription renewal - copper wind","from":"auto@service.com"},{"subject":"Action required - crimson moon","from":"hr@company.com"}]

Action required - crimson moon

Subscription renewal - copper wind

Win a prize - frosting teeth


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"blazing sun (critical) → crimson moon (high) → velvet rain (medium) → copper wind (low) → frosting teeth (spam)","feedback":null,"input":{"value":"[{\"subject\":\"Report - velvet rain\",\"from\":\"team@company.com\"},{\"subject\":\"System alert - blazing sun\",\"from\":\"ops@company.com\"},{\"subject\":\"Promotional - frosting teeth\",\"from\":\"ads@marketing.com\"},{\"subject\":\"Review needed - crimson moon\",\"from\":\"lead@company.com\"},{\"subject\":\"FYI - copper wind\",\"from\":\"info@company.com\"}]"},"instructions":"sort emails by priority","key":"vocab_example4","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"ops@company.com","subject":"System alert - blazing sun"},{"from":"lead@company.com","subject":"Review needed - crimson moon"},{"from":"team@company.com","subject":"Report - velvet rain"},{"from":"info@company.com","subject":"FYI - copper wind"},{"from":"ads@marketing.com","subject":"Promotional - frosting teeth"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort emails by priority

[{"subject":"Report - velvet rain","from":"team@company.com"},{"subject":"System alert - blazing sun","from":"ops@company.com"},{"subject":"Promotional - frosting teeth","from":"ads@marketing.com"},{"subject":"Review needed - crimson moon","from":"lead@company.com"},{"subject":"FYI - copper wind","from":"info@company.com"}]

System alert - blazing sun

Review needed - crimson moon

Report - velvet rain

FYI - copper wind

Promotional - frosting teeth


Input: {"body":{"messages":[{"content":"You are creating sorting criteria with ordered label arrays.\n\nCRITICAL: Output ordered labels from FIRST to LAST position in sorted result.\n- Labels are single words, lowercase, underscores only\n- 3-10 labels per criterion\n- Order matters: first label = appears first, last label = appears last","role":"system"},{"content":"Analyze this sorting instruction: \"sort emails by priority\"\n\nSample items to be sorted:\n■0: {\"subject\":\"Offer - frosting teeth\",\"from\":\"deals@shop.com\"}\n■1: {\"subject\":\"Update - velvet rain\",\"from\":\"team@work.com\"}\n■2: {\"subject\":\"CRITICAL - blazing sun\",\"from\":\"security@company.com\"}\n\nCreate 1-3 sorting criteria with ordered label arrays (3-10 labels each).\n\n**CRITICAL RULES**:\n1. Labels are single words, lowercase, no spaces, use underscores\n2. Labels are ordered from FIRST to LAST in sorted result\n3. If instruction says \"from X to Y\": first label represents X, last label represents Y\n4. If instruction says \"prioritize\" or \"highest/lowest priority\":\n   - First label = HIGHEST priority (top of todo list)\n   - Last label = LOWEST priority (bottom of todo list)\n\nExamples:\n\n\"from slowest to fastest\" → first=slowest, last=fastest\n■speed■\nvery_slow;slow;medium;fast;very_fast\n■END■\n\n\"from most dangerous to least dangerous\" → first=most dangerous, last=least dangerous\n■danger■\nextremely_dangerous;very_dangerous;dangerous;moderate;slightly_dangerous;harmless\n■END■\n\n\"from least urgent (spam) to most urgent (bills)\" → first=spam, last=bills\n■urgency■\nspam;promotional;normal;important;urgent;critical\n■END■\n\n\"prioritize: highest priority=open old tickets; lowest priority=closed\" → first=high priority, last=low priority\n■status■\nopen_old;open_recent;closed\n■age■\noldest;old;recent;new\n■END■\n\nOutput format:\n■criterion_name■\nlabel1;label2;label3;label4\n■END■\n\nUse 3-10 labels per criterion. Labels should be intuitive and match the domain.\nKeep criterion names short (1-2 words, lowercase, underscores).\n","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:zai/sort-counterintuitive-test"},"model":"fast","signal":{}},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■priority■
critical;high;normal;low
■END■


Input: {"body":{"filter":{"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"},"limit":10,"search":"{\"value\":\"[{\\\"subject\\\":\\\"Offer - frosting teeth\\\",\\\"from\\\":\\\"deals@shop.com\\\"},{\\\"subject\\\":\\\"Update - velvet rain\\\",\\\"from\\\":\\\"team@work.com\\\"},{\\\"subject\\\":\\\"CRITICAL - blazing sun\\\",\\\"from\\\":\\\"security@company.com\\\"}]\"}"},"method":"POST","url":"https://api.botpress.cloud/v1/tables/ActiveLearningTable/rows/find"}


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**priority**: critical;high;normal;low\n\nInstructions: \"sort emails by priority\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■2)\n- Use exact criterion names: priority\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■2):\n■0: {\"subject\":\"Offer - frosting teeth\",\"from\":\"deals@shop.com\"}■\n■1: {\"subject\":\"Update - velvet rain\",\"from\":\"team@work.com\"}■\n■2: {\"subject\":\"CRITICAL - blazing sun\",\"from\":\"security@company.com\"}■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:zai/sort-counterintuitive-test"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:priority=low■
■1:priority=normal■
■2:priority=critical■


Input: {"body":{"keyColumn":"key","rows":[{"explanation":null,"feedback":null,"input":{"value":"[{\"subject\":\"Offer - frosting teeth\",\"from\":\"deals@shop.com\"},{\"subject\":\"Update - velvet rain\",\"from\":\"team@work.com\"},{\"subject\":\"CRITICAL - blazing sun\",\"from\":\"security@company.com\"}]"},"instructions":"sort emails by priority","key":"6c8d769f","metadata":{"cost":{"input":0,"output":0},"latency":0,"model":"fast","tokens":{"input":0,"output":0}},"output":{"value":[{"from":"security@company.com","subject":"CRITICAL - blazing sun"},{"from":"team@work.com","subject":"Update - velvet rain"},{"from":"deals@shop.com","subject":"Offer - frosting teeth"}]},"status":"pending","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/ActiveLearningTable/rows/upsert"}

Instruction: sort emails by priority

[{"subject":"Offer - frosting teeth","from":"deals@shop.com"},{"subject":"Update - velvet rain","from":"team@work.com"},{"subject":"CRITICAL - blazing sun","from":"security@company.com"}]

CRITICAL - blazing sun

Update - velvet rain

Offer - frosting teeth


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"sequoia.vc (our investor) > google.com (competitor) > analyst@ (spam)","feedback":null,"input":{"value":"[{\"subject\":\"Q4 metrics review\",\"from\":\"partner@sequoia.vc\"},{\"subject\":\"Partnership opportunity\",\"from\":\"bd@google.com\"},{\"subject\":\"Coffee chat?\",\"from\":\"analyst@somebank.com\"}]"},"instructions":"sort by sender importance","key":"domain_example1","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"partner@sequoia.vc","subject":"Q4 metrics review"},{"from":"bd@google.com","subject":"Partnership opportunity"},{"from":"analyst@somebank.com","subject":"Coffee chat?"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort by sender importance

Q4 metrics review

Partnership opportunity

Coffee chat?


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"a16z.com (potential investor) > random-startup.io (other) > analyst@ (spam)","feedback":null,"input":{"value":"[{\"subject\":\"Market research\",\"from\":\"analyst@research-firm.com\"},{\"subject\":\"Investment opportunity\",\"from\":\"marc@a16z.com\"},{\"subject\":\"Quick question\",\"from\":\"founder@random-startup.io\"}]"},"instructions":"sort by sender importance","key":"domain_example2","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"marc@a16z.com","subject":"Investment opportunity"},{"from":"founder@random-startup.io","subject":"Quick question"},{"from":"analyst@research-firm.com","subject":"Market research"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort by sender importance

Investment opportunity

Quick question

Market research


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"sequoia.vc (critical) > a16z.com (high) > google.com (medium) > small-company.io (low) > analyst@ (spam)","feedback":null,"input":{"value":"[{\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"},{\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"},{\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"},{\"subject\":\"Seed round\",\"from\":\"investor@a16z.com\"},{\"subject\":\"Demo request\",\"from\":\"ceo@small-company.io\"}]"},"instructions":"sort by sender importance","key":"domain_example3","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"roelof@sequoia.vc","subject":"Board meeting notes"},{"from":"investor@a16z.com","subject":"Seed round"},{"from":"product@google.com","subject":"Cloud platform update"},{"from":"ceo@small-company.io","subject":"Demo request"},{"from":"analyst@jpmorgan.com","subject":"Industry report"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort by sender importance

Board meeting notes

Seed round

Cloud platform update

Demo request

Industry report


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"sequoia.vc (critical) always first, all analyst@ emails are spam (last)","feedback":null,"input":{"value":"[{\"subject\":\"Funding news\",\"from\":\"sarah@sequoia.vc\"},{\"subject\":\"Survey request\",\"from\":\"analyst@bigbank.com\"},{\"subject\":\"Data report\",\"from\":\"analyst@consulting.com\"}]"},"instructions":"sort by sender importance","key":"domain_example4","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"sarah@sequoia.vc","subject":"Funding news"},{"from":"analyst@bigbank.com","subject":"Survey request"},{"from":"analyst@consulting.com","subject":"Data report"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort by sender importance

Funding news

Survey request

Data report


Input: {"body":{"keyColumn":"key","rows":[{"explanation":"RULE: a16z.com (potential investor) always before google.com (competitor)","feedback":null,"input":{"value":"[{\"subject\":\"API integration\",\"from\":\"eng@google.com\"},{\"subject\":\"Series A discussion\",\"from\":\"partner@a16z.com\"}]"},"instructions":"sort by sender importance","key":"domain_example5","metadata":{"cost":{"input":1,"output":1},"latency":0,"model":"","tokens":{"input":1,"output":1}},"output":{"value":[{"from":"partner@a16z.com","subject":"Series A discussion"},{"from":"eng@google.com","subject":"API integration"}]},"status":"approved","taskId":"zai/sort-counterintuitive-test","taskType":"zai.sort"}]},"method":"POST","url":"https://api.botpress.cloud/v1/tables/TestSortLearningTable/rows/upsert"}

Instruction: sort by sender importance

[{"subject":"API integration","from":"eng@google.com"},{"subject":"Series A discussion","from":"partner@a16z.com"}]

Series A discussion

API integration


Instruction: sort by sender importance

Check-in

Meeting

Update

Explanation: RULE: sequoia.vc (our investor) ALWAYS first, then a16z.com, then google.com


Instruction: sort by sender importance

Note

Stats

Data

Explanation: RULE: analyst@ prefix ALWAYS means spam (last), regardless of domain