Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | France is a country in Western Europe.\n■002 | It has a population of about 67 million people.\n■003 | Paris is its capital and largest city.\n■004 | France is known for its cuisine, wine, and culture.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Tell me about France.\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
France is a country in Western Europe with a population of about 67 million people. Its capital and largest city is Paris. The nation is renowned for its cuisine, wine, and culture. ■001■002■003■004


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Botpress was founded in 2016.\n■002 | It has offices in multiple countries.\n■003 | The company is headquartered in Quebec, Canada.\n■004 | It provides an AI agent platform.\n■005 | The platform supports over 100 languages.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Where is Botpress located and when was it founded?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Botpress was founded in 2016 and is headquartered in Quebec, Canada. ■001■003


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Python is a programming language.\n■002 | Python is also a type of snake.\n■003 | The Python programming language was created by Guido van Rossum.\n■004 | Python snakes are found in Africa, Asia, and Australia.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is Python?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Python is a programming language【■001】 and it is also a type of snake【■002】.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | The word \"bank\" can refer to a financial institution.\n■002 | A bank can also mean the land alongside a river.\n■003 | Banks play a crucial role in the economy.\n■004 | River banks are important for ecosystems.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is a bank?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
A bank can refer to a financial institution【■001】, or it can mean the land alongside a river【■002】.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Botpress is an AI platform.\n■002 | It supports chatbot development.\n■003 | The platform integrates with various LLMs.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the recipe for chocolate cake?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■out_of_topic
The question asks for a chocolate cake recipe, but the provided documents only contain information about Botpress as an AI platform and its capabilities, which are unrelated to cooking or recipes.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | JavaScript is a programming language.\n■002 | It runs in web browsers.\n■003 | Node.js allows JavaScript to run on servers.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"How do I cook java beans?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■out_of_topic
The question asks about cooking java beans, which is unrelated to the provided documents that discuss JavaScript, web browsers, and Node.js.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | The Kubernetes control plane consists of the API server, scheduler, and controller manager.\n■002 | Pods are the smallest deployable units in Kubernetes that can be created and managed.\n■003 | A ReplicaSet ensures that a specified number of pod replicas are running at any given time.\n■004 | Services in Kubernetes provide stable networking endpoints for pods.\n■005 | ConfigMaps allow you to decouple configuration artifacts from container images.\n■006 | Persistent Volumes (PV) provide storage resources in a cluster.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What are the health benefits of Mediterranean diet?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■out_of_topic
The question asks about health benefits of the Mediterranean diet, but the provided documents only contain information about Kubernetes components such as control plane, pods, ReplicaSets, services, ConfigMaps, and Persistent Volumes. Therefore, the question is unrelated to the available documents.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Myocardial infarction, commonly known as a heart attack, occurs when blood flow to the heart is blocked.\n■002 | Symptoms include chest pain, shortness of breath, and pain in the arm or jaw.\n■003 | Risk factors include high blood pressure, high cholesterol, smoking, and diabetes.\n■004 | Treatment may involve medications such as aspirin, beta-blockers, and ACE inhibitors.\n■005 | Coronary angioplasty and stenting are common interventional procedures.\n■006 | Cardiac rehabilitation programs help patients recover and reduce future risk.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the current federal reserve interest rate?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■out_of_topic
The question asks for the current federal reserve interest rate, but the provided documents only contain information about myocardial infarction, its symptoms, risk factors, and treatments. None of the documents address federal reserve interest rates.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Python is a high-level programming language known for readability.\n■002 | JavaScript is primarily used for web development.\n■003 | Java is a statically-typed object-oriented language.\n■004 | C++ offers low-level memory manipulation capabilities.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What are the key features of COBOL mainframe programming?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents only describe features of Python, JavaScript, Java, and C++, and contain no information about COBOL or its mainframe programming characteristics.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Botpress is an AI platform.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Botpress.\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Botpress is an AI platform. ■001


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Real content here about technology.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"asdf jkl; qwer?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■out_of_topic
The question "asdf jkl; qwer?" does not relate to the provided document content about technology, making it unrelated to the available information.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Botpress is a platform.\n■002 | It was founded in Quebec.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the exact number of employees at Botpress?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents do not contain any information about the number of employees at Botpress.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | The company makes software.\n■002 | It has customers worldwide.\n■003 | The product is popular.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What was the revenue in Q3 2023?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents mention that the company makes software, has worldwide customers, and that its product is popular, but they do not include any information about revenue figures for Q3 2023.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Botpress is an AI agent platform founded in 2016.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is Botpress?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Botpress is an AI agent platform founded in 2016. ■001


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | This is a very long document. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. It contains many sentences. The answer is 42. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. More text here. \n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the answer?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
42■001


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Plain text document.\n■002 | {\n■003 |   \"type\": \"object\",\n■004 |   \"value\": \"Object document\"\n■005 | }\n■006 | [\n■007 |   \"array\",\n■008 |   \"document\"\n■009 | ]\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What types of documents are here?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
The documents include a plain‑text document (line ■001), a JSON object document (lines ■003‑004), and a JSON array document (lines ■006‑009).


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Email: support@botpress.com\n■002 | Price: $99.99\n■003 | Code: function() { return \"hello\"; }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the email address?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
support@botpress.com ■001


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | Document 1: This document contains information about topic 1. The key fact is that value 1 is important for item 1.\n■002 | Document 2: This document contains information about topic 2. The key fact is that value 2 is important for item 2.\n■003 | Document 3: This document contains information about topic 3. The key fact is that value 3 is important for item 3.\n■004 | Document 4: This document contains information about topic 4. The key fact is that value 4 is important for item 4.\n■005 | Document 5: This document contains information about topic 5. The key fact is that value 5 is important for item 5.\n■006 | Document 6: This document contains information about topic 6. The key fact is that value 6 is important for item 6.\n■007 | Document 7: This document contains information about topic 7. The key fact is that value 7 is important for item 7.\n■008 | Document 8: This document contains information about topic 8. The key fact is that value 8 is important for item 8.\n■009 | Document 9: This document contains information about topic 9. The key fact is that value 9 is important for item 9.\n■010 | Document 10: This document contains information about topic 10. The key fact is that value 10 is important for item 10.\n■011 | The headquarters of Acme Corp is located in New York City.\n■012 | Document 12: This document contains information about topic 12. The key fact is that value 12 is important for item 12.\n■013 | Document 13: This document contains information about topic 13. The key fact is that value 13 is important for item 13.\n■014 | Document 14: This document contains information about topic 14. The key fact is that value 14 is important for item 14.\n■015 | Document 15: This document contains information about topic 15. The key fact is that value 15 is important for item 15.\n■016 | Document 16: This document contains information about topic 16. The key fact is that value 16 is important for item 16.\n■017 | Document 17: This document contains information about topic 17. The key fact is that value 17 is important for item 17.\n■018 | Document 18: This document contains information about topic 18. The key fact is that value 18 is important for item 18.\n■019 | Document 19: This document contains information about topic 19. The key fact is that value 19 is important for item 19.\n■020 | Document 20: This document contains information about topic 20. The key fact is that value 20 is important for item 20.\n■021 | Document 21: This document contains information about topic 21. The key fact is that value 21 is important for item 21.\n■022 | Document 22: This document contains information about topic 22. The key fact is that value 22 is important for item 22.\n■023 | Document 23: This document contains information about topic 23. The key fact is that value 23 is important for item 23.\n■024 | Document 24: This document contains information about topic 24. The key fact is that value 24 is important for item 24.\n■025 | Document 25: This document contains information about topic 25. The key fact is that value 25 is important for item 25.\n■026 | Document 26: This document contains information about topic 26. The key fact is that value 26 is important for item 26.\n■027 | Document 27: This document contains information about topic 27. The key fact is that value 27 is important for item 27.\n■028 | Document 28: This document contains information about topic 28. The key fact is that value 28 is important for item 28.\n■029 | Document 29: This document contains information about topic 29. The key fact is that value 29 is important for item 29.\n■030 | Document 30: This document contains information about topic 30. The key fact is that value 30 is important for item 30.\n■031 | Document 31: This document contains information about topic 31. The key fact is that value 31 is important for item 31.\n■032 | Document 32: This document contains information about topic 32. The key fact is that value 32 is important for item 32.\n■033 | Document 33: This document contains information about topic 33. The key fact is that value 33 is important for item 33.\n■034 | Document 34: This document contains information about topic 34. The key fact is that value 34 is important for item 34.\n■035 | Document 35: This document contains information about topic 35. The key fact is that value 35 is important for item 35.\n■036 | Document 36: This document contains information about topic 36. The key fact is that value 36 is important for item 36.\n■037 | Document 37: This document contains information about topic 37. The key fact is that value 37 is important for item 37.\n■038 | Document 38: This document contains information about topic 38. The key fact is that value 38 is important for item 38.\n■039 | Document 39: This document contains information about topic 39. The key fact is that value 39 is important for item 39.\n■040 | Document 40: This document contains information about topic 40. The key fact is that value 40 is important for item 40.\n■041 | Document 41: This document contains information about topic 41. The key fact is that value 41 is important for item 41.\n■042 | Document 42: This document contains information about topic 42. The key fact is that value 42 is important for item 42.\n■043 | Document 43: This document contains information about topic 43. The key fact is that value 43 is important for item 43.\n■044 | Document 44: This document contains information about topic 44. The key fact is that value 44 is important for item 44.\n■045 | Document 45: This document contains information about topic 45. The key fact is that value 45 is important for item 45.\n■046 | Document 46: This document contains information about topic 46. The key fact is that value 46 is important for item 46.\n■047 | Document 47: This document contains information about topic 47. The key fact is that value 47 is important for item 47.\n■048 | Document 48: This document contains information about topic 48. The key fact is that value 48 is important for item 48.\n■049 | Document 49: This document contains information about topic 49. The key fact is that value 49 is important for item 49.\n■050 | Document 50: This document contains information about topic 50. The key fact is that value 50 is important for item 50.\n■051 | Acme Corp was founded in 1995 by John Smith.\n■052 | Document 52: This document contains information about topic 52. The key fact is that value 52 is important for item 52.\n■053 | Document 53: This document contains information about topic 53. The key fact is that value 53 is important for item 53.\n■054 | Document 54: This document contains information about topic 54. The key fact is that value 54 is important for item 54.\n■055 | Document 55: This document contains information about topic 55. The key fact is that value 55 is important for item 55.\n■056 | Document 56: This document contains information about topic 56. The key fact is that value 56 is important for item 56.\n■057 | Document 57: This document contains information about topic 57. The key fact is that value 57 is important for item 57.\n■058 | Document 58: This document contains information about topic 58. The key fact is that value 58 is important for item 58.\n■059 | Document 59: This document contains information about topic 59. The key fact is that value 59 is important for item 59.\n■060 | Document 60: This document contains information about topic 60. The key fact is that value 60 is important for item 60.\n■061 | Document 61: This document contains information about topic 61. The key fact is that value 61 is important for item 61.\n■062 | Document 62: This document contains information about topic 62. The key fact is that value 62 is important for item 62.\n■063 | Document 63: This document contains information about topic 63. The key fact is that value 63 is important for item 63.\n■064 | Document 64: This document contains information about topic 64. The key fact is that value 64 is important for item 64.\n■065 | Document 65: This document contains information about topic 65. The key fact is that value 65 is important for item 65.\n■066 | Document 66: This document contains information about topic 66. The key fact is that value 66 is important for item 66.\n■067 | Document 67: This document contains information about topic 67. The key fact is that value 67 is important for item 67.\n■068 | Document 68: This document contains information about topic 68. The key fact is that value 68 is important for item 68.\n■069 | Document 69: This document contains information about topic 69. The key fact is that value 69 is important for item 69.\n■070 | Document 70: This document contains information about topic 70. The key fact is that value 70 is important for item 70.\n■071 | Document 71: This document contains information about topic 71. The key fact is that value 71 is important for item 71.\n■072 | Document 72: This document contains information about topic 72. The key fact is that value 72 is important for item 72.\n■073 | Document 73: This document contains information about topic 73. The key fact is that value 73 is important for item 73.\n■074 | Document 74: This document contains information about topic 74. The key fact is that value 74 is important for item 74.\n■075 | Document 75: This document contains information about topic 75. The key fact is that value 75 is important for item 75.\n■076 | Document 76: This document contains information about topic 76. The key fact is that value 76 is important for item 76.\n■077 | Document 77: This document contains information about topic 77. The key fact is that value 77 is important for item 77.\n■078 | Document 78: This document contains information about topic 78. The key fact is that value 78 is important for item 78.\n■079 | Document 79: This document contains information about topic 79. The key fact is that value 79 is important for item 79.\n■080 | Document 80: This document contains information about topic 80. The key fact is that value 80 is important for item 80.\n■081 | Document 81: This document contains information about topic 81. The key fact is that value 81 is important for item 81.\n■082 | Document 82: This document contains information about topic 82. The key fact is that value 82 is important for item 82.\n■083 | Document 83: This document contains information about topic 83. The key fact is that value 83 is important for item 83.\n■084 | Document 84: This document contains information about topic 84. The key fact is that value 84 is important for item 84.\n■085 | Document 85: This document contains information about topic 85. The key fact is that value 85 is important for item 85.\n■086 | Document 86: This document contains information about topic 86. The key fact is that value 86 is important for item 86.\n■087 | Document 87: This document contains information about topic 87. The key fact is that value 87 is important for item 87.\n■088 | Document 88: This document contains information about topic 88. The key fact is that value 88 is important for item 88.\n■089 | Document 89: This document contains information about topic 89. The key fact is that value 89 is important for item 89.\n■090 | Document 90: This document contains information about topic 90. The key fact is that value 90 is important for item 90.\n■091 | The company employs over 5000 people worldwide.\n■092 | Document 92: This document contains information about topic 92. The key fact is that value 92 is important for item 92.\n■093 | Document 93: This document contains information about topic 93. The key fact is that value 93 is important for item 93.\n■094 | Document 94: This document contains information about topic 94. The key fact is that value 94 is important for item 94.\n■095 | Document 95: This document contains information about topic 95. The key fact is that value 95 is important for item 95.\n■096 | Document 96: This document contains information about topic 96. The key fact is that value 96 is important for item 96.\n■097 | Document 97: This document contains information about topic 97. The key fact is that value 97 is important for item 97.\n■098 | Document 98: This document contains information about topic 98. The key fact is that value 98 is important for item 98.\n■099 | Document 99: This document contains information about topic 99. The key fact is that value 99 is important for item 99.\n■100 | Document 100: This document contains information about topic 100. The key fact is that value 100 is important for item 100.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Tell me about Acme Corp.\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Acme Corp is headquartered in New York City ■011. It was founded in 1995 by John Smith ■051. The company employs over 5,000 people worldwide ■091.


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations. ■001-003 More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001]\n■answer\n[Second interpretation with citations ■005]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question)\n■invalid_question\n[Explain why it's invalid]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | The product name is AlphaBot.\n■002 | Filler document 2.\n■003 | Filler document 3.\n■004 | Filler document 4.\n■005 | Filler document 5.\n■006 | Filler document 6.\n■007 | Filler document 7.\n■008 | Filler document 8.\n■009 | Filler document 9.\n■010 | Filler document 10.\n■011 | Filler document 11.\n■012 | Filler document 12.\n■013 | Filler document 13.\n■014 | Filler document 14.\n■015 | Filler document 15.\n■016 | Filler document 16.\n■017 | Filler document 17.\n■018 | Filler document 18.\n■019 | Filler document 19.\n■020 | Filler document 20.\n■021 | Filler document 21.\n■022 | Filler document 22.\n■023 | Filler document 23.\n■024 | Filler document 24.\n■025 | Filler document 25.\n■026 | Filler document 26.\n■027 | Filler document 27.\n■028 | Filler document 28.\n■029 | Filler document 29.\n■030 | Filler document 30.\n■031 | Filler document 31.\n■032 | Filler document 32.\n■033 | Filler document 33.\n■034 | Filler document 34.\n■035 | Filler document 35.\n■036 | Filler document 36.\n■037 | Filler document 37.\n■038 | Filler document 38.\n■039 | Filler document 39.\n■040 | Filler document 40.\n■041 | Filler document 41.\n■042 | Filler document 42.\n■043 | Filler document 43.\n■044 | Filler document 44.\n■045 | Filler document 45.\n■046 | Filler document 46.\n■047 | Filler document 47.\n■048 | Filler document 48.\n■049 | Filler document 49.\n■050 | AlphaBot costs $299 per month.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the price of AlphaBot?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"low","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
$299 per month■050