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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■out_of_topic
The question about the current Federal Reserve interest rate cannot be answered because the provided documents only contain information related to myocardial infarction, its symptoms, risk factors, and treatments. There is no information regarding monetary policy or interest rates in the supplied text.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents discuss Python, JavaScript, Java, and C++ but contain no information about COBOL or its mainframe programming features. Therefore, the needed details are missing.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","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++. They do not contain any information about COBOL or its mainframe programming characteristics, so the key features of COBOL cannot be answered from the given sources.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents only contain information about Python, JavaScript, Java, and C++. They do not include any details about COBOL or its mainframe programming features, which are required to answer the question.■end

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

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

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

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

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

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

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■invalid_question
The provided input does not constitute a clear, answerable question.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■invalid_question
The submitted query “asdf jkl; qwer?” does not constitute a clear, answerable question.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■invalid_question
The submitted query "asdf jkl; qwer?" does not form a recognizable question that can be answered based on the provided document content.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents only state that Botpress is a platform and that it was founded in Quebec. They do not include any information about the number of employees at Botpress.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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":"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. Make sure each part is cited correctly■013. 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 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\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"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"},{"content":"ERROR PARSING OUTPUT\n\nCannot read properties of undefined (reading 'input').\n\nPlease return a valid response addressing the error above.","role":"user"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents only state that Botpress is a platform and that it was founded in Quebec. They do not include any information about the number of employees at Botpress.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead