Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nHello, what is the time today?\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nHello, what is the time today?\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Validation Error: 'maxTokens':  Expected number, received null


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nHello, what is the time today?\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nHello, what is the time today?\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nHello, what is the time today?\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":265,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.\n• The original text is 44 tokens long – it should be less than 15\n• The text must be standalone and complete in less than 15 tokens, so it has to be shortened to fit the length as well","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■START■PART 1. ZOE WALKS TO THE PARK.
PART 2. SHE MEETS HER FRIEND.
PART 3. THEY PLAY TOGETHER.
PART 4. THEY HAVE A PICNIC.
PART 5. THEY GO HOME.


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nRequest failed with status code 400.\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nHello, what is the time today?\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":500,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.\n• The original text is 44 tokens long – it should be less than 15\n• The text must be standalone and complete in less than 15 tokens, so it has to be shortened to fit the length as well","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output: ■START■ZOE WALKS, MEETS FRIEND, PLAY, PICNIC, RETURN HOME.


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: translate to french\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"maxTokens":null,"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write it like we want it\n\n■START■\nBotpress is awesome\n■END■","role":"user","type":"text"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"<Invalid output, no content provided>","role":"assistant"},{"content":"ERROR PARSING OUTPUT\n\nThe model did not return a valid rewrite. The response was empty..\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:zai/rewrite"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}


Input: {"body":{"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.\n• The original text is 44 tokens long – it should be less than 15\n• The text must be standalone and complete in less than 15 tokens, so it has to be shortened to fit the length as well","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output: ■START■ZOE WALKS TO PARK, MEETS FRIEND, PLAY, PICNIC, GO HOME.


Input: {"body":{"input":{"messages":[{"content":"\"We love Botpress—it’s awesome!\"","role":"user"}],"model":{"id":"gpt-4o-mini-2024-07-18"},"responseFormat":"json_object","systemPrompt":"Check that the value meets the condition: The text is \"BOTPRESS IS AWESOME\" and starts with a hashtag\n\n---\nPlease generate a JSON response with the following format:\n```typescript\n{ \n/** A human-readable explanation of the result */\nreason: string\n; \n/** Your best guess at the output according to the instructions provided, rooted in the context of the input and the reason above */\nresult: boolean\n }\n```","temperature":0},"type":"openai:generateContent"},"method":"POST","url":"https://api.botpress.cloud/v1/chat/actions"}

{
  "reason": "The text does not start with a hashtag, which is a requirement for the condition to be met.",
  "result": false
}


Input: {"body":{"messages":[{"content":"Rewrite the text between the ■START■ and ■END■ tags to match the user prompt.\n• The original text is 44 tokens long – it should be less than 20\n• The text must be standalone and complete in less than 20 tokens, so it has to be shortened to fit the length as well","role":"system"},{"content":"Prompt: translate to French\n\n■START■\nHello, how are you?\n■END■","role":"user","type":"text"},{"content":"■START■Bonjour, comment ça va?■END■","role":"assistant","type":"text"},{"content":"Prompt: reverse the order\n\n■START■\n1\n2\n3\n■END■","role":"user","type":"text"},{"content":"■START■3\n2\n1■END■","role":"assistant","type":"text"},{"content":"Prompt: write in all caps\n\n■START■\nPart 1. Zoe walks to the park.\nPart 2. She meets her friend.\nPart 3. They play together.\nPart 4. They have a picnic.\nPart 5. They go home.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rewrite","promptSource":"zai:zai.rewrite:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output: ■START■ZOE WALKS TO THE PARK, MEETS FRIEND, PLAY, PICNIC, THEN GO HOME.


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**sender_importance**: vip;high;medium;low;unknown\n\nInstructions: \"sort by sender importance\"\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: sender_importance\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":"Expert Example - Items to score:\n■0: {\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"}■\n■1: {\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"}■\n■2: {\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"}■\n■3: {\"subject\":\"Seed round\",\"from\":\"investor@a16z.com\"}■\n■4: {\"subject\":\"Demo request\",\"from\":\"ceo@small-company.io\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Expert Example - Items to score:\n■0: {\"subject\":\"Update\",\"from\":\"john@google.com\"}■\n■1: {\"subject\":\"Check-in\",\"from\":\"jane@sequoia.vc\"}■\n■2: {\"subject\":\"Meeting\",\"from\":\"alice@a16z.com\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Expert Example - Items to score:\n■0: {\"subject\":\"Q4 metrics review\",\"from\":\"partner@sequoia.vc\"}■\n■1: {\"subject\":\"Partnership opportunity\",\"from\":\"bd@google.com\"}■\n■2: {\"subject\":\"Coffee chat?\",\"from\":\"analyst@somebank.com\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Items to rank (■0 to ■4):\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}■\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}■\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}■\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}■\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:sender_importance=high■
■1:sender_importance=medium■
■2:sender_importance=high■
■3:sender_importance=vip■
■4:sender_importance=low■


Input: {"body":{"messages":[{"content":"You are breaking a tie between items with identical total scores.\n\nInstructions: sort by sender importance\n\nCriteria:\n- sender_importance: vip;high;medium;low;unknown\n\nOrder these 2 items from FIRST to LAST based on the instructions.\nEarlier labels in each criterion should come FIRST.\n\nOutput format:\n■original_index■\n■original_index■\n■END■\n\nOutput the indices in the order they should appear (first item at top).","role":"system"},{"content":"Items with identical scores (need tie-breaking):\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}■\n■1: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n\nOrder them from first to last.\nOutput format: ■index■ (one per line)\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■
■1■


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 by sender importance\"\n\nSample items to be sorted:\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}\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":"best","signal":{}},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■role_importance■
founder_ceo;partner;executive;director;manager;individual_contributor;generic_alias
■END■
■org_tier■
top_vc;top_tech;top_finance;respected_company;notable_startup;small_startup;unknown
■END■
■relationship■
strategic;trusted;known;acquaintance;cold;unknown
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**role_importance**: founder_ceo;partner;executive;director;manager;individual_contributor;generic_alias\n\nInstructions: \"sort by sender importance\"\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: role_importance\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: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}■\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}■\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}■\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}■\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":"best","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:role_importance=individual_contributor■
■1:role_importance=generic_alias■
■2:role_importance=generic_alias■
■3:role_importance=partner■
■4:role_importance=executive■


Input: {"body":{"messages":[{"content":"You are breaking a tie between items with identical total scores.\n\nInstructions: sort by sender importance\n\nCriteria:\n- role_importance: founder_ceo;partner;executive;director;manager;individual_contributor;generic_alias\n\nOrder these 2 items from FIRST to LAST based on the instructions.\nEarlier labels in each criterion should come FIRST.\n\nOutput format:\n■original_index■\n■original_index■\n■END■\n\nOutput the indices in the order they should appear (first item at top).","role":"system"},{"content":"Items with identical scores (need tie-breaking):\n■0: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}■\n■1: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n\nOrder them from first to last.\nOutput format: ■index■ (one per line)\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:zai/sort-counterintuitive-test"},"model":"best","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0■
■1■


Input: {"body":{"messages":[{"content":"You are breaking a tie between items with identical total scores.\n\nInstructions: sort by sender importance\n\nCriteria:\n- sender_importance: vip;high;medium;low;unknown\n\nOrder these 2 items from FIRST to LAST based on the instructions.\nEarlier labels in each criterion should come FIRST.\n\nOutput format:\n■original_index■\n■original_index■\n■END■\n\nOutput the indices in the order they should appear (first item at top).","role":"system"},{"content":"Expert Example - Items to order:\n■0: {\"subject\":\"Stats\",\"from\":\"analyst@anywhere.com\"}■\n■1: {\"subject\":\"Data\",\"from\":\"analyst@bigcorp.com\"}■\n■2: {\"subject\":\"Note\",\"from\":\"person@sequoia.vc\"}■\n\nOrder them from first to last.","role":"user","type":"text"},{"content":"■0■\n■1■\n■2■\n■END■","role":"assistant","type":"text"},{"content":"Reasoning: RULE: analyst@ prefix ALWAYS means spam (last), regardless of domain","role":"assistant","type":"text"},{"content":"Expert Example - Items to order:\n■0: {\"subject\":\"Update\",\"from\":\"john@google.com\"}■\n■1: {\"subject\":\"Check-in\",\"from\":\"jane@sequoia.vc\"}■\n■2: {\"subject\":\"Meeting\",\"from\":\"alice@a16z.com\"}■\n\nOrder them from first to last.","role":"user","type":"text"},{"content":"■0■\n■1■\n■2■\n■END■","role":"assistant","type":"text"},{"content":"Reasoning: RULE: sequoia.vc (our investor) ALWAYS first, then a16z.com, then google.com","role":"assistant","type":"text"},{"content":"Expert Example - Items to order:\n■0: {\"subject\":\"Funding news\",\"from\":\"sarah@sequoia.vc\"}■\n■1: {\"subject\":\"Survey request\",\"from\":\"analyst@bigbank.com\"}■\n■2: {\"subject\":\"Data report\",\"from\":\"analyst@consulting.com\"}■\n\nOrder them from first to last.","role":"user","type":"text"},{"content":"■0■\n■1■\n■2■\n■END■","role":"assistant","type":"text"},{"content":"Reasoning: sequoia.vc (critical) always first, all analyst@ emails are spam (last)","role":"assistant","type":"text"},{"content":"Items with identical scores (need tie-breaking):\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}■\n■1: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n\nOrder them from first to last.\nOutput format: ■index■ (one per line)\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:
■1■
■0■


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":"Expert Example - Analyze sorting instruction: \"sort by sender importance\"\n\nSample items:\n■0: {\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"}\n■1: {\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"}\n■2: {\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"}\n\nGenerate sorting criteria.","role":"user","type":"text"},{"content":"sequoia.vc (critical) > a16z.com (high) > google.com (medium) > small-company.io (low) > analyst@ (spam)\n■END■","role":"assistant","type":"text"},{"content":"Expert Example - Analyze sorting instruction: \"sort by sender importance\"\n\nSample items:\n■0: {\"subject\":\"Update\",\"from\":\"john@google.com\"}\n■1: {\"subject\":\"Check-in\",\"from\":\"jane@sequoia.vc\"}\n■2: {\"subject\":\"Meeting\",\"from\":\"alice@a16z.com\"}\n\nGenerate sorting criteria.","role":"user","type":"text"},{"content":"RULE: sequoia.vc (our investor) ALWAYS first, then a16z.com, then google.com\n■END■","role":"assistant","type":"text"},{"content":"Analyze this sorting instruction: \"sort by sender importance\"\n\nSample items to be sorted:\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}\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:
■sender_importance■
critical;high;medium;low
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**sender_importance**: critical;high;medium;low\n\nInstructions: \"sort by sender importance\"\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: sender_importance\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":"Expert Example - Items to score:\n■0: {\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"}■\n■1: {\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"}■\n■2: {\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"}■\n■3: {\"subject\":\"Seed round\",\"from\":\"investor@a16z.com\"}■\n■4: {\"subject\":\"Demo request\",\"from\":\"ceo@small-company.io\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Expert Example - Items to score:\n■0: {\"subject\":\"Update\",\"from\":\"john@google.com\"}■\n■1: {\"subject\":\"Check-in\",\"from\":\"jane@sequoia.vc\"}■\n■2: {\"subject\":\"Meeting\",\"from\":\"alice@a16z.com\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Expert Example - Items to score:\n■0: {\"subject\":\"Q4 metrics review\",\"from\":\"partner@sequoia.vc\"}■\n■1: {\"subject\":\"Partnership opportunity\",\"from\":\"bd@google.com\"}■\n■2: {\"subject\":\"Coffee chat?\",\"from\":\"analyst@somebank.com\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Items to rank (■0 to ■4):\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}■\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}■\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}■\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}■\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:sender_importance=critical■
■1:sender_importance=high■
■2:sender_importance=high■
■3:sender_importance=high■
■4:sender_importance=low■


Input: {"body":{"messages":[{"content":"You are breaking a tie between items with identical total scores.\n\nInstructions: sort by sender importance\n\nCriteria:\n- sender_importance: critical;high;medium;low\n\nOrder these 3 items from FIRST to LAST based on the instructions.\nEarlier labels in each criterion should come FIRST.\n\nOutput format:\n■original_index■\n■original_index■\n■END■\n\nOutput the indices in the order they should appear (first item at top).","role":"system"},{"content":"Expert Example - Items to order:\n■0: {\"subject\":\"Update\",\"from\":\"john@google.com\"}■\n■1: {\"subject\":\"Check-in\",\"from\":\"jane@sequoia.vc\"}■\n■2: {\"subject\":\"Meeting\",\"from\":\"alice@a16z.com\"}■\n\nOrder them from first to last.","role":"user","type":"text"},{"content":"■0■\n■1■\n■2■\n■END■","role":"assistant","type":"text"},{"content":"Reasoning: RULE: sequoia.vc (our investor) ALWAYS first, then a16z.com, then google.com","role":"assistant","type":"text"},{"content":"Expert Example - Items to order:\n■0: {\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"}■\n■1: {\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"}■\n■2: {\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"}■\n■3: {\"subject\":\"Seed round\",\"from\":\"investor@a16z.com\"}■\n■4: {\"subject\":\"Demo request\",\"from\":\"ceo@small-company.io\"}■\n\nOrder them from first to last.","role":"user","type":"text"},{"content":"■0■\n■1■\n■2■\n■3■\n■4■\n■END■","role":"assistant","type":"text"},{"content":"Reasoning: sequoia.vc (critical) > a16z.com (high) > google.com (medium) > small-company.io (low) > analyst@ (spam)","role":"assistant","type":"text"},{"content":"Expert Example - Items to order:\n■0: {\"subject\":\"Stats\",\"from\":\"analyst@anywhere.com\"}■\n■1: {\"subject\":\"Data\",\"from\":\"analyst@bigcorp.com\"}■\n■2: {\"subject\":\"Note\",\"from\":\"person@sequoia.vc\"}■\n\nOrder them from first to last.","role":"user","type":"text"},{"content":"■0■\n■1■\n■2■\n■END■","role":"assistant","type":"text"},{"content":"Reasoning: RULE: analyst@ prefix ALWAYS means spam (last), regardless of domain","role":"assistant","type":"text"},{"content":"Items with identical scores (need tie-breaking):\n■0: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}■\n■1: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n■2: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}■\n\nOrder them from first to last.\nOutput format: ■index■ (one per line)\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:
■1■
■2■
■0■


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":"Expert Example - Analyze sorting instruction: \"sort by sender importance\"\n\nSample items:\n■0: {\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"}\n■1: {\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"}\n■2: {\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"}\n\nGenerate sorting criteria.","role":"user","type":"text"},{"content":"sequoia.vc (critical) > a16z.com (high) > google.com (medium) > small-company.io (low) > analyst@ (spam)\n■END■","role":"assistant","type":"text"},{"content":"Expert Example - Analyze sorting instruction: \"sort by sender importance\"\n\nSample items:\n■0: {\"subject\":\"Q4 metrics review\",\"from\":\"partner@sequoia.vc\"}\n■1: {\"subject\":\"Partnership opportunity\",\"from\":\"bd@google.com\"}\n■2: {\"subject\":\"Coffee chat?\",\"from\":\"analyst@somebank.com\"}\n\nGenerate sorting criteria.","role":"user","type":"text"},{"content":"sequoia.vc (our investor) > google.com (competitor) > analyst@ (spam)\n■END■","role":"assistant","type":"text"},{"content":"Analyze this sorting instruction: \"sort by sender importance\"\n\nSample items to be sorted:\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}\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:
■sender_importance■
sequoia_vc;a16z_vc;google;goldmansachs;startup
■END■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**sender_importance**: sequoia_vc;a16z_vc;google;goldmansachs;startup\n\nInstructions: \"sort by sender importance\"\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: sender_importance\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":"Expert Example - Items to score:\n■0: {\"subject\":\"Industry report\",\"from\":\"analyst@jpmorgan.com\"}■\n■1: {\"subject\":\"Board meeting notes\",\"from\":\"roelof@sequoia.vc\"}■\n■2: {\"subject\":\"Cloud platform update\",\"from\":\"product@google.com\"}■\n■3: {\"subject\":\"Seed round\",\"from\":\"investor@a16z.com\"}■\n■4: {\"subject\":\"Demo request\",\"from\":\"ceo@small-company.io\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Expert Example - Items to score:\n■0: {\"subject\":\"Update\",\"from\":\"john@google.com\"}■\n■1: {\"subject\":\"Check-in\",\"from\":\"jane@sequoia.vc\"}■\n■2: {\"subject\":\"Meeting\",\"from\":\"alice@a16z.com\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Expert Example - Items to score:\n■0: {\"subject\":\"Q4 metrics review\",\"from\":\"partner@sequoia.vc\"}■\n■1: {\"subject\":\"Partnership opportunity\",\"from\":\"bd@google.com\"}■\n■2: {\"subject\":\"Coffee chat?\",\"from\":\"analyst@somebank.com\"}■\n\nScore each item.","role":"user","type":"text"},{"content":"Items to rank (■0 to ■4):\n■0: {\"subject\":\"Growth metrics\",\"from\":\"analyst@goldmansachs.com\"}■\n■1: {\"subject\":\"Partnership\",\"from\":\"team@google.com\"}■\n■2: {\"subject\":\"Portfolio update\",\"from\":\"team@sequoia.vc\"}■\n■3: {\"subject\":\"Funding round\",\"from\":\"ben@a16z.com\"}■\n■4: {\"subject\":\"Collab opportunity\",\"from\":\"cto@new-startup.io\"}■\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:sender_importance=goldmansachs■
■1:sender_importance=google■
■2:sender_importance=sequoia_vc■
■3:sender_importance=a16z_vc■
■4:sender_importance=startup■


Input: {"body":{"input":{"messages":[{"content":"\"**Botpress Documentation – Horizontal Overview**\\n\\n---\\n\\n## 1. Getting Started\\n- **Build** – Create a bot in **Studio** (flows, agents, knowledge base, tables).  \\n- **Deploy** – Publish to Cloud, on‑prem, embed Webchat, or connect via integrations/SDK.  \\n- **Monitor** – Use built‑in analytics, logs, and health dashboards to track usage and performance.\\n\\n---\\n\\n## 2. Dashboard (Workspace & Bot)\\n| Area | Core Pages |\\n|------|------------|\\n| **Workspace** | Home, Members, Audits, Integrations, Usage, Settings, Profile. |\\n| **Bot** | Overview, Integrations, Webchat, Logs, Conversations, Analytics, Events, Issues, Configuration variables. |\\n\\n- Central hub for project organization, permission management, and billing.\\n\\n---\\n\\n## 3. Studio (Low‑code Bot Designer)\\n- **Interface** – Nodes, Flows, Knowledge Base, Tables.  \\n- **Agents** – Ready‑made AI assistants: Summary, Personality, Policy, Translator, Knowledge, HITL, Vision, Analytics.  \\n- **Library & Hooks** – Re‑usable actions and lifecycle scripts.  \\n- **Integrations & Schemas** – Connect external services and define data structures.  \\n- **Card Hub & Card Tray** – Browse, install, and drag‑drop pre‑built Cards.  \\n- **Versions & Settings** – Bot versioning, global chatbot configuration.  \\n- **Utilities** – Find (search), Variables (workflow, session, user, bot, secret), Debugger/Logs/JSON, Emulator, Keyboard shortcuts, Commands, Preferences, Import/Export.  \\n\\n---\\n\\n## 4. Cards (Modular Building Blocks)\\n- **Send Messages** – Text, media, quick replies, rich cards.  \\n- **Execute** – Run custom JavaScript or actions.  \\n- **Webchat** – Control or embed the chat widget.  \\n- **Flow Logic** – Conditional routing, loops, sub‑flows.  \\n- **AI** – Task, Transition, Generate‑Text cards for LLM‑driven operations.  \\n\\n---\\n\\n## 5. Webchat (Customer‑Facing UI)\\n- **v2 (Embedded)** – Modern widget, custom CSS, React components, Webchat client SDK.  \\n- **v1 (Deprecated)** – JavaScript control, styling (button, header, input), embedding options (React app, iframe, full‑screen).  \\n- Shared features: flow logic, AI cards, capture‑information, events, agents, utilities.\\n\\n---\\n\\n## 6. Integrations\\n### 6.1 Usage (Pre‑built Connectors)\\nAsana, HITL, Instagram, Intercom, Line, Messenger, Microsoft Teams, Notion, Slack, Sunshine Conversations, Telegram, Trello, Twilio, Viber, Vonage, Webhook, WhatsApp (manual), Zapier, Zendesk.\\n\\n### 6.2 Building Custom Integrations\\n- **Getting Started** – Add a messaging channel, define actions & triggers, publish on Botpress Hub.  \\n- **Key Concepts** – Architecture, tags, channels, configuration, users, conversations, messages, events, states, actions, definitions, secrets, ZUI (beta).  \\n- **Tools** – CLI, SDK (`@botpress/sdk`), moving‑parts framework.  \\n- **Advanced Options** – Plug‑your own LLM, Live‑Agent (HITL) bridges.  \\n- **How‑to** – Register/unregister states, implement handlers, logging, custom actions, webhook handling.\\n\\n---\\n\\n## 7. Botpress APIs\\n- **Files API** – Upload, list, retrieve, update, delete, and index files (including semantic search).  \\n- **Chat API** – Programmatic conversation handling (send/receive messages, session management).\\n\\n---\\n\\n## 8. Appendix\\n- **Safety** – Abuse‑prevention policies, brand‑safety framework (policy agent, RAG safety, LLM inspector, HITL escalation).  \\n- **Exporting Data** – Raw conversations, conversation history, streaming analytics (hooks), compiled bot analytics.\\n\\n---\\n\\n## 9. Quick Navigation Map\\n```\\nHome → Getting Started → Dashboard (Workspace / Bot)\\n   ├─ Studio → Interface / Agents / Library / Hooks / Cards\\n   ├─ Cards → Send / Execute / Webchat / Flow Logic / AI\\n   ├─ Webchat → v2 (Embedded) / v1 (Deprecated)\\n   ├─ Integrations → Usage (pre‑built) / Building (custom)\\n   ├─ APIs → Files / Chat\\n   └─ Appendix → Safety / Exporting Data\\n```\\n\\n*The documentation spans the entire bot lifecycle—design, deployment, interaction, extension, and governance—providing a complete, horizontally‑organized reference for developers.*\"","role":"user"}],"model":{"id":"gpt-4o-mini-2024-07-18"},"responseFormat":"json_object","systemPrompt":"Check that the value meets the condition: The text mentions the notion of workspaces\n\n---\nPlease generate a JSON response with the following format:\n```typescript\n{ \n/** A human-readable explanation of the result */\nreason: string\n; \n/** Your best guess at the output according to the instructions provided, rooted in the context of the input and the reason above */\nresult: boolean\n }\n```","temperature":0},"type":"openai:generateContent"},"method":"POST","url":"https://api.botpress.cloud/v1/chat/actions"}

{
  "reason": "The text explicitly mentions 'Workspace' in the section titled 'Dashboard (Workspace & Bot)', indicating that the notion of workspaces is indeed present in the documentation.",
  "result": true
}


Input: {"body":{"input":{"messages":[{"content":"\"**Botpress Documentation – Horizontal Overview**\\n\\n---\\n\\n## 1. Getting Started\\n- **Build** – Create a bot in **Studio** (flows, agents, knowledge base, tables).  \\n- **Deploy** – Publish to Cloud, on‑prem, embed Webchat, or connect via integrations/SDK.  \\n- **Monitor** – Use built‑in analytics, logs, and health dashboards to track usage and performance.\\n\\n---\\n\\n## 2. Dashboard (Workspace & Bot)\\n| Area | Core Pages |\\n|------|------------|\\n| **Workspace** | Home, Members, Audits, Integrations, Usage, Settings, Profile. |\\n| **Bot** | Overview, Integrations, Webchat, Logs, Conversations, Analytics, Events, Issues, Configuration variables. |\\n\\n- Central hub for project organization, permission management, and billing.\\n\\n---\\n\\n## 3. Studio (Low‑code Bot Designer)\\n- **Interface** – Nodes, Flows, Knowledge Base, Tables.  \\n- **Agents** – Ready‑made AI assistants: Summary, Personality, Policy, Translator, Knowledge, HITL, Vision, Analytics.  \\n- **Library & Hooks** – Re‑usable actions and lifecycle scripts.  \\n- **Integrations & Schemas** – Connect external services and define data structures.  \\n- **Card Hub & Card Tray** – Browse, install, and drag‑drop pre‑built Cards.  \\n- **Versions & Settings** – Bot versioning, global chatbot configuration.  \\n- **Utilities** – Find (search), Variables (workflow, session, user, bot, secret), Debugger/Logs/JSON, Emulator, Keyboard shortcuts, Commands, Preferences, Import/Export.  \\n\\n---\\n\\n## 4. Cards (Modular Building Blocks)\\n- **Send Messages** – Text, media, quick replies, rich cards.  \\n- **Execute** – Run custom JavaScript or actions.  \\n- **Webchat** – Control or embed the chat widget.  \\n- **Flow Logic** – Conditional routing, loops, sub‑flows.  \\n- **AI** – Task, Transition, Generate‑Text cards for LLM‑driven operations.  \\n\\n---\\n\\n## 5. Webchat (Customer‑Facing UI)\\n- **v2 (Embedded)** – Modern widget, custom CSS, React components, Webchat client SDK.  \\n- **v1 (Deprecated)** – JavaScript control, styling (button, header, input), embedding options (React app, iframe, full‑screen).  \\n- Shared features: flow logic, AI cards, capture‑information, events, agents, utilities.\\n\\n---\\n\\n## 6. Integrations\\n### 6.1 Usage (Pre‑built Connectors)\\nAsana, HITL, Instagram, Intercom, Line, Messenger, Microsoft Teams, Notion, Slack, Sunshine Conversations, Telegram, Trello, Twilio, Viber, Vonage, Webhook, WhatsApp (manual), Zapier, Zendesk.\\n\\n### 6.2 Building Custom Integrations\\n- **Getting Started** – Add a messaging channel, define actions & triggers, publish on Botpress Hub.  \\n- **Key Concepts** – Architecture, tags, channels, configuration, users, conversations, messages, events, states, actions, definitions, secrets, ZUI (beta).  \\n- **Tools** – CLI, SDK (`@botpress/sdk`), moving‑parts framework.  \\n- **Advanced Options** – Plug‑your own LLM, Live‑Agent (HITL) bridges.  \\n- **How‑to** – Register/unregister states, implement handlers, logging, custom actions, webhook handling.\\n\\n---\\n\\n## 7. Botpress APIs\\n- **Files API** – Upload, list, retrieve, update, delete, and index files (including semantic search).  \\n- **Chat API** – Programmatic conversation handling (send/receive messages, session management).\\n\\n---\\n\\n## 8. Appendix\\n- **Safety** – Abuse‑prevention policies, brand‑safety framework (policy agent, RAG safety, LLM inspector, HITL escalation).  \\n- **Exporting Data** – Raw conversations, conversation history, streaming analytics (hooks), compiled bot analytics.\\n\\n---\\n\\n## 9. Quick Navigation Map\\n```\\nHome → Getting Started → Dashboard (Workspace / Bot)\\n   ├─ Studio → Interface / Agents / Library / Hooks / Cards\\n   ├─ Cards → Send / Execute / Webchat / Flow Logic / AI\\n   ├─ Webchat → v2 (Embedded) / v1 (Deprecated)\\n   ├─ Integrations → Usage (pre‑built) / Building (custom)\\n   ├─ APIs → Files / Chat\\n   └─ Appendix → Safety / Exporting Data\\n```\\n\\n*The documentation spans the entire bot lifecycle—design, deployment, interaction, extension, and governance—providing a complete, horizontally‑organized reference for developers.*\"","role":"user"}],"model":{"id":"gpt-4o-mini-2024-07-18"},"responseFormat":"json_object","systemPrompt":"Check that the value meets the condition: The text explains shortly what botpress is\n\n---\nPlease generate a JSON response with the following format:\n```typescript\n{ \n/** A human-readable explanation of the result */\nreason: string\n; \n/** Your best guess at the output according to the instructions provided, rooted in the context of the input and the reason above */\nresult: boolean\n }\n```","temperature":0},"type":"openai:generateContent"},"method":"POST","url":"https://api.botpress.cloud/v1/chat/actions"}

{
  "reason": "The text provides a detailed overview of Botpress, including its features, functionalities, and components, which collectively explain what Botpress is.",
  "result": true
}


Input: {"body":{"input":{"messages":[{"content":"\"**Botpress Documentation – Horizontal Overview**\\n\\n---\\n\\n## 1. Getting Started\\n- **Build** – Create a bot in **Studio** (flows, agents, knowledge base, tables).  \\n- **Deploy** – Publish to Cloud, on‑prem, embed Webchat, or connect via integrations/SDK.  \\n- **Monitor** – Use built‑in analytics, logs, and health dashboards to track usage and performance.\\n\\n---\\n\\n## 2. Dashboard (Workspace & Bot)\\n| Area | Core Pages |\\n|------|------------|\\n| **Workspace** | Home, Members, Audits, Integrations, Usage, Settings, Profile. |\\n| **Bot** | Overview, Integrations, Webchat, Logs, Conversations, Analytics, Events, Issues, Configuration variables. |\\n\\n- Central hub for project organization, permission management, and billing.\\n\\n---\\n\\n## 3. Studio (Low‑code Bot Designer)\\n- **Interface** – Nodes, Flows, Knowledge Base, Tables.  \\n- **Agents** – Ready‑made AI assistants: Summary, Personality, Policy, Translator, Knowledge, HITL, Vision, Analytics.  \\n- **Library & Hooks** – Re‑usable actions and lifecycle scripts.  \\n- **Integrations & Schemas** – Connect external services and define data structures.  \\n- **Card Hub & Card Tray** – Browse, install, and drag‑drop pre‑built Cards.  \\n- **Versions & Settings** – Bot versioning, global chatbot configuration.  \\n- **Utilities** – Find (search), Variables (workflow, session, user, bot, secret), Debugger/Logs/JSON, Emulator, Keyboard shortcuts, Commands, Preferences, Import/Export.  \\n\\n---\\n\\n## 4. Cards (Modular Building Blocks)\\n- **Send Messages** – Text, media, quick replies, rich cards.  \\n- **Execute** – Run custom JavaScript or actions.  \\n- **Webchat** – Control or embed the chat widget.  \\n- **Flow Logic** – Conditional routing, loops, sub‑flows.  \\n- **AI** – Task, Transition, Generate‑Text cards for LLM‑driven operations.  \\n\\n---\\n\\n## 5. Webchat (Customer‑Facing UI)\\n- **v2 (Embedded)** – Modern widget, custom CSS, React components, Webchat client SDK.  \\n- **v1 (Deprecated)** – JavaScript control, styling (button, header, input), embedding options (React app, iframe, full‑screen).  \\n- Shared features: flow logic, AI cards, capture‑information, events, agents, utilities.\\n\\n---\\n\\n## 6. Integrations\\n### 6.1 Usage (Pre‑built Connectors)\\nAsana, HITL, Instagram, Intercom, Line, Messenger, Microsoft Teams, Notion, Slack, Sunshine Conversations, Telegram, Trello, Twilio, Viber, Vonage, Webhook, WhatsApp (manual), Zapier, Zendesk.\\n\\n### 6.2 Building Custom Integrations\\n- **Getting Started** – Add a messaging channel, define actions & triggers, publish on Botpress Hub.  \\n- **Key Concepts** – Architecture, tags, channels, configuration, users, conversations, messages, events, states, actions, definitions, secrets, ZUI (beta).  \\n- **Tools** – CLI, SDK (`@botpress/sdk`), moving‑parts framework.  \\n- **Advanced Options** – Plug‑your own LLM, Live‑Agent (HITL) bridges.  \\n- **How‑to** – Register/unregister states, implement handlers, logging, custom actions, webhook handling.\\n\\n---\\n\\n## 7. Botpress APIs\\n- **Files API** – Upload, list, retrieve, update, delete, and index files (including semantic search).  \\n- **Chat API** – Programmatic conversation handling (send/receive messages, session management).\\n\\n---\\n\\n## 8. Appendix\\n- **Safety** – Abuse‑prevention policies, brand‑safety framework (policy agent, RAG safety, LLM inspector, HITL escalation).  \\n- **Exporting Data** – Raw conversations, conversation history, streaming analytics (hooks), compiled bot analytics.\\n\\n---\\n\\n## 9. Quick Navigation Map\\n```\\nHome → Getting Started → Dashboard (Workspace / Bot)\\n   ├─ Studio → Interface / Agents / Library / Hooks / Cards\\n   ├─ Cards → Send / Execute / Webchat / Flow Logic / AI\\n   ├─ Webchat → v2 (Embedded) / v1 (Deprecated)\\n   ├─ Integrations → Usage (pre‑built) / Building (custom)\\n   ├─ APIs → Files / Chat\\n   └─ Appendix → Safety / Exporting Data\\n```\\n\\n*The documentation spans the entire bot lifecycle—design, deployment, interaction, extension, and governance—providing a complete, horizontally‑organized reference for developers.*\"","role":"user"}],"model":{"id":"gpt-4o-mini-2024-07-18"},"responseFormat":"json_object","systemPrompt":"Check that the value meets the condition: The text is a summary of the Botpress documentation\n\n---\nPlease generate a JSON response with the following format:\n```typescript\n{ \n/** A human-readable explanation of the result */\nreason: string\n; \n/** Your best guess at the output according to the instructions provided, rooted in the context of the input and the reason above */\nresult: boolean\n }\n```","temperature":0},"type":"openai:generateContent"},"method":"POST","url":"https://api.botpress.cloud/v1/chat/actions"}

{
  "reason": "The provided text is a detailed summary of the Botpress documentation, covering various aspects such as getting started, dashboard features, bot design, webchat, integrations, APIs, and more, which aligns with the request for a summary of the documentation.",
  "result": true
}


Input: {"body":{"input":{"messages":[{"content":"\"**Botpress Documentation – Horizontal Overview**\\n\\n---\\n\\n## 1. Getting Started\\n- **Build** – Create a bot in **Studio** (flows, agents, knowledge base, tables).  \\n- **Deploy** – Publish to Cloud, on‑prem, embed Webchat, or connect via integrations/SDK.  \\n- **Monitor** – Use built‑in analytics, logs, and health dashboards to track usage and performance.\\n\\n---\\n\\n## 2. Dashboard (Workspace & Bot)\\n| Area | Core Pages |\\n|------|------------|\\n| **Workspace** | Home, Members, Audits, Integrations, Usage, Settings, Profile. |\\n| **Bot** | Overview, Integrations, Webchat, Logs, Conversations, Analytics, Events, Issues, Configuration variables. |\\n\\n- Central hub for project organization, permission management, and billing.\\n\\n---\\n\\n## 3. Studio (Low‑code Bot Designer)\\n- **Interface** – Nodes, Flows, Knowledge Base, Tables.  \\n- **Agents** – Ready‑made AI assistants: Summary, Personality, Policy, Translator, Knowledge, HITL, Vision, Analytics.  \\n- **Library & Hooks** – Re‑usable actions and lifecycle scripts.  \\n- **Integrations & Schemas** – Connect external services and define data structures.  \\n- **Card Hub & Card Tray** – Browse, install, and drag‑drop pre‑built Cards.  \\n- **Versions & Settings** – Bot versioning, global chatbot configuration.  \\n- **Utilities** – Find (search), Variables (workflow, session, user, bot, secret), Debugger/Logs/JSON, Emulator, Keyboard shortcuts, Commands, Preferences, Import/Export.  \\n\\n---\\n\\n## 4. Cards (Modular Building Blocks)\\n- **Send Messages** – Text, media, quick replies, rich cards.  \\n- **Execute** – Run custom JavaScript or actions.  \\n- **Webchat** – Control or embed the chat widget.  \\n- **Flow Logic** – Conditional routing, loops, sub‑flows.  \\n- **AI** – Task, Transition, Generate‑Text cards for LLM‑driven operations.  \\n\\n---\\n\\n## 5. Webchat (Customer‑Facing UI)\\n- **v2 (Embedded)** – Modern widget, custom CSS, React components, Webchat client SDK.  \\n- **v1 (Deprecated)** – JavaScript control, styling (button, header, input), embedding options (React app, iframe, full‑screen).  \\n- Shared features: flow logic, AI cards, capture‑information, events, agents, utilities.\\n\\n---\\n\\n## 6. Integrations\\n### 6.1 Usage (Pre‑built Connectors)\\nAsana, HITL, Instagram, Intercom, Line, Messenger, Microsoft Teams, Notion, Slack, Sunshine Conversations, Telegram, Trello, Twilio, Viber, Vonage, Webhook, WhatsApp (manual), Zapier, Zendesk.\\n\\n### 6.2 Building Custom Integrations\\n- **Getting Started** – Add a messaging channel, define actions & triggers, publish on Botpress Hub.  \\n- **Key Concepts** – Architecture, tags, channels, configuration, users, conversations, messages, events, states, actions, definitions, secrets, ZUI (beta).  \\n- **Tools** – CLI, SDK (`@botpress/sdk`), moving‑parts framework.  \\n- **Advanced Options** – Plug‑your own LLM, Live‑Agent (HITL) bridges.  \\n- **How‑to** – Register/unregister states, implement handlers, logging, custom actions, webhook handling.\\n\\n---\\n\\n## 7. Botpress APIs\\n- **Files API** – Upload, list, retrieve, update, delete, and index files (including semantic search).  \\n- **Chat API** – Programmatic conversation handling (send/receive messages, session management).\\n\\n---\\n\\n## 8. Appendix\\n- **Safety** – Abuse‑prevention policies, brand‑safety framework (policy agent, RAG safety, LLM inspector, HITL escalation).  \\n- **Exporting Data** – Raw conversations, conversation history, streaming analytics (hooks), compiled bot analytics.\\n\\n---\\n\\n## 9. Quick Navigation Map\\n```\\nHome → Getting Started → Dashboard (Workspace / Bot)\\n   ├─ Studio → Interface / Agents / Library / Hooks / Cards\\n   ├─ Cards → Send / Execute / Webchat / Flow Logic / AI\\n   ├─ Webchat → v2 (Embedded) / v1 (Deprecated)\\n   ├─ Integrations → Usage (pre‑built) / Building (custom)\\n   ├─ APIs → Files / Chat\\n   └─ Appendix → Safety / Exporting Data\\n```\\n\\n*The documentation spans the entire bot lifecycle—design, deployment, interaction, extension, and governance—providing a complete, horizontally‑organized reference for developers.*\"","role":"user"}],"model":{"id":"gpt-4o-mini-2024-07-18"},"responseFormat":"json_object","systemPrompt":"Check that the value meets the condition: The text has some information about integrations\n\n---\nPlease generate a JSON response with the following format:\n```typescript\n{ \n/** A human-readable explanation of the result */\nreason: string\n; \n/** Your best guess at the output according to the instructions provided, rooted in the context of the input and the reason above */\nresult: boolean\n }\n```","temperature":0},"type":"openai:generateContent"},"method":"POST","url":"https://api.botpress.cloud/v1/chat/actions"}

{
  "reason": "The text contains multiple sections that specifically mention integrations, including a dedicated section on 'Integrations' that lists pre-built connectors and discusses building custom integrations.",
  "result": true
}


Input: {"body":{"input":{"messages":[{"content":"\"**Botpress Documentation – Horizontal Overview**\\n\\n---\\n\\n## 1. Getting Started\\n- **Build** – Create a bot in **Studio** (flows, agents, knowledge base, tables).  \\n- **Deploy** – Publish to Cloud, on‑prem, embed Webchat, or connect via integrations/SDK.  \\n- **Monitor** – Use built‑in analytics, logs, and health dashboards to track usage and performance.\\n\\n---\\n\\n## 2. Dashboard (Workspace & Bot)\\n| Area | Core Pages |\\n|------|------------|\\n| **Workspace** | Home, Members, Audits, Integrations, Usage, Settings, Profile. |\\n| **Bot** | Overview, Integrations, Webchat, Logs, Conversations, Analytics, Events, Issues, Configuration variables. |\\n\\n- Central hub for project organization, permission management, and billing.\\n\\n---\\n\\n## 3. Studio (Low‑code Bot Designer)\\n- **Interface** – Nodes, Flows, Knowledge Base, Tables.  \\n- **Agents** – Ready‑made AI assistants: Summary, Personality, Policy, Translator, Knowledge, HITL, Vision, Analytics.  \\n- **Library & Hooks** – Re‑usable actions and lifecycle scripts.  \\n- **Integrations & Schemas** – Connect external services and define data structures.  \\n- **Card Hub & Card Tray** – Browse, install, and drag‑drop pre‑built Cards.  \\n- **Versions & Settings** – Bot versioning, global chatbot configuration.  \\n- **Utilities** – Find (search), Variables (workflow, session, user, bot, secret), Debugger/Logs/JSON, Emulator, Keyboard shortcuts, Commands, Preferences, Import/Export.  \\n\\n---\\n\\n## 4. Cards (Modular Building Blocks)\\n- **Send Messages** – Text, media, quick replies, rich cards.  \\n- **Execute** – Run custom JavaScript or actions.  \\n- **Webchat** – Control or embed the chat widget.  \\n- **Flow Logic** – Conditional routing, loops, sub‑flows.  \\n- **AI** – Task, Transition, Generate‑Text cards for LLM‑driven operations.  \\n\\n---\\n\\n## 5. Webchat (Customer‑Facing UI)\\n- **v2 (Embedded)** – Modern widget, custom CSS, React components, Webchat client SDK.  \\n- **v1 (Deprecated)** – JavaScript control, styling (button, header, input), embedding options (React app, iframe, full‑screen).  \\n- Shared features: flow logic, AI cards, capture‑information, events, agents, utilities.\\n\\n---\\n\\n## 6. Integrations\\n### 6.1 Usage (Pre‑built Connectors)\\nAsana, HITL, Instagram, Intercom, Line, Messenger, Microsoft Teams, Notion, Slack, Sunshine Conversations, Telegram, Trello, Twilio, Viber, Vonage, Webhook, WhatsApp (manual), Zapier, Zendesk.\\n\\n### 6.2 Building Custom Integrations\\n- **Getting Started** – Add a messaging channel, define actions & triggers, publish on Botpress Hub.  \\n- **Key Concepts** – Architecture, tags, channels, configuration, users, conversations, messages, events, states, actions, definitions, secrets, ZUI (beta).  \\n- **Tools** – CLI, SDK (`@botpress/sdk`), moving‑parts framework.  \\n- **Advanced Options** – Plug‑your own LLM, Live‑Agent (HITL) bridges.  \\n- **How‑to** – Register/unregister states, implement handlers, logging, custom actions, webhook handling.\\n\\n---\\n\\n## 7. Botpress APIs\\n- **Files API** – Upload, list, retrieve, update, delete, and index files (including semantic search).  \\n- **Chat API** – Programmatic conversation handling (send/receive messages, session management).\\n\\n---\\n\\n## 8. Appendix\\n- **Safety** – Abuse‑prevention policies, brand‑safety framework (policy agent, RAG safety, LLM inspector, HITL escalation).  \\n- **Exporting Data** – Raw conversations, conversation history, streaming analytics (hooks), compiled bot analytics.\\n\\n---\\n\\n## 9. Quick Navigation Map\\n```\\nHome → Getting Started → Dashboard (Workspace / Bot)\\n   ├─ Studio → Interface / Agents / Library / Hooks / Cards\\n   ├─ Cards → Send / Execute / Webchat / Flow Logic / AI\\n   ├─ Webchat → v2 (Embedded) / v1 (Deprecated)\\n   ├─ Integrations → Usage (pre‑built) / Building (custom)\\n   ├─ APIs → Files / Chat\\n   └─ Appendix → Safety / Exporting Data\\n```\\n\\n*The documentation spans the entire bot lifecycle—design, deployment, interaction, extension, and governance—providing a complete, horizontally‑organized reference for developers.*\"","role":"user"}],"model":{"id":"gpt-4o-mini-2024-07-18"},"responseFormat":"json_object","systemPrompt":"Check that the value meets the condition: The text has some information about HITL (human in the loop)\n\n---\nPlease generate a JSON response with the following format:\n```typescript\n{ \n/** A human-readable explanation of the result */\nreason: string\n; \n/** Your best guess at the output according to the instructions provided, rooted in the context of the input and the reason above */\nresult: boolean\n }\n```","temperature":0},"type":"openai:generateContent"},"method":"POST","url":"https://api.botpress.cloud/v1/chat/actions"}

{
  "reason": "The text includes multiple mentions of HITL (Human In The Loop) in the context of bot development and integrations, indicating that it provides information about HITL.",
  "result": true
}