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 | Email: support@botpress.com\n■002 | Price: $99.99\n■003 | Code: function() { return \"hello\"; }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the email address?\"","role":"user","type":"text"},{"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
support@botpress.com■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 | Email: support@botpress.com\n■002 | Price: $99.99\n■003 | Code: function() { return \"hello\"; }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the email address?\"","role":"user","type":"text"},{"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
The email address is support@botpress.com■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 | Document 1: This document contains information about topic 1. The key fact is that value 1 is important for item 1.\n■002 | Document 2: This document contains information about topic 2. The key fact is that value 2 is important for item 2.\n■003 | Document 3: This document contains information about topic 3. The key fact is that value 3 is important for item 3.\n■004 | Document 4: This document contains information about topic 4. The key fact is that value 4 is important for item 4.\n■005 | Document 5: This document contains information about topic 5. The key fact is that value 5 is important for item 5.\n■006 | Document 6: This document contains information about topic 6. The key fact is that value 6 is important for item 6.\n■007 | Document 7: This document contains information about topic 7. The key fact is that value 7 is important for item 7.\n■008 | Document 8: This document contains information about topic 8. The key fact is that value 8 is important for item 8.\n■009 | Document 9: This document contains information about topic 9. The key fact is that value 9 is important for item 9.\n■010 | Document 10: This document contains information about topic 10. The key fact is that value 10 is important for item 10.\n■011 | The headquarters of Acme Corp is located in New York City.\n■012 | Document 12: This document contains information about topic 12. The key fact is that value 12 is important for item 12.\n■013 | Document 13: This document contains information about topic 13. The key fact is that value 13 is important for item 13.\n■014 | Document 14: This document contains information about topic 14. The key fact is that value 14 is important for item 14.\n■015 | Document 15: This document contains information about topic 15. The key fact is that value 15 is important for item 15.\n■016 | Document 16: This document contains information about topic 16. The key fact is that value 16 is important for item 16.\n■017 | Document 17: This document contains information about topic 17. The key fact is that value 17 is important for item 17.\n■018 | Document 18: This document contains information about topic 18. The key fact is that value 18 is important for item 18.\n■019 | Document 19: This document contains information about topic 19. The key fact is that value 19 is important for item 19.\n■020 | Document 20: This document contains information about topic 20. The key fact is that value 20 is important for item 20.\n■021 | Document 21: This document contains information about topic 21. The key fact is that value 21 is important for item 21.\n■022 | Document 22: This document contains information about topic 22. The key fact is that value 22 is important for item 22.\n■023 | Document 23: This document contains information about topic 23. The key fact is that value 23 is important for item 23.\n■024 | Document 24: This document contains information about topic 24. The key fact is that value 24 is important for item 24.\n■025 | Document 25: This document contains information about topic 25. The key fact is that value 25 is important for item 25.\n■026 | Document 26: This document contains information about topic 26. The key fact is that value 26 is important for item 26.\n■027 | Document 27: This document contains information about topic 27. The key fact is that value 27 is important for item 27.\n■028 | Document 28: This document contains information about topic 28. The key fact is that value 28 is important for item 28.\n■029 | Document 29: This document contains information about topic 29. The key fact is that value 29 is important for item 29.\n■030 | Document 30: This document contains information about topic 30. The key fact is that value 30 is important for item 30.\n■031 | Document 31: This document contains information about topic 31. The key fact is that value 31 is important for item 31.\n■032 | Document 32: This document contains information about topic 32. The key fact is that value 32 is important for item 32.\n■033 | Document 33: This document contains information about topic 33. The key fact is that value 33 is important for item 33.\n■034 | Document 34: This document contains information about topic 34. The key fact is that value 34 is important for item 34.\n■035 | Document 35: This document contains information about topic 35. The key fact is that value 35 is important for item 35.\n■036 | Document 36: This document contains information about topic 36. The key fact is that value 36 is important for item 36.\n■037 | Document 37: This document contains information about topic 37. The key fact is that value 37 is important for item 37.\n■038 | Document 38: This document contains information about topic 38. The key fact is that value 38 is important for item 38.\n■039 | Document 39: This document contains information about topic 39. The key fact is that value 39 is important for item 39.\n■040 | Document 40: This document contains information about topic 40. The key fact is that value 40 is important for item 40.\n■041 | Document 41: This document contains information about topic 41. The key fact is that value 41 is important for item 41.\n■042 | Document 42: This document contains information about topic 42. The key fact is that value 42 is important for item 42.\n■043 | Document 43: This document contains information about topic 43. The key fact is that value 43 is important for item 43.\n■044 | Document 44: This document contains information about topic 44. The key fact is that value 44 is important for item 44.\n■045 | Document 45: This document contains information about topic 45. The key fact is that value 45 is important for item 45.\n■046 | Document 46: This document contains information about topic 46. The key fact is that value 46 is important for item 46.\n■047 | Document 47: This document contains information about topic 47. The key fact is that value 47 is important for item 47.\n■048 | Document 48: This document contains information about topic 48. The key fact is that value 48 is important for item 48.\n■049 | Document 49: This document contains information about topic 49. The key fact is that value 49 is important for item 49.\n■050 | Document 50: This document contains information about topic 50. The key fact is that value 50 is important for item 50.\n■051 | Acme Corp was founded in 1995 by John Smith.\n■052 | Document 52: This document contains information about topic 52. The key fact is that value 52 is important for item 52.\n■053 | Document 53: This document contains information about topic 53. The key fact is that value 53 is important for item 53.\n■054 | Document 54: This document contains information about topic 54. The key fact is that value 54 is important for item 54.\n■055 | Document 55: This document contains information about topic 55. The key fact is that value 55 is important for item 55.\n■056 | Document 56: This document contains information about topic 56. The key fact is that value 56 is important for item 56.\n■057 | Document 57: This document contains information about topic 57. The key fact is that value 57 is important for item 57.\n■058 | Document 58: This document contains information about topic 58. The key fact is that value 58 is important for item 58.\n■059 | Document 59: This document contains information about topic 59. The key fact is that value 59 is important for item 59.\n■060 | Document 60: This document contains information about topic 60. The key fact is that value 60 is important for item 60.\n■061 | Document 61: This document contains information about topic 61. The key fact is that value 61 is important for item 61.\n■062 | Document 62: This document contains information about topic 62. The key fact is that value 62 is important for item 62.\n■063 | Document 63: This document contains information about topic 63. The key fact is that value 63 is important for item 63.\n■064 | Document 64: This document contains information about topic 64. The key fact is that value 64 is important for item 64.\n■065 | Document 65: This document contains information about topic 65. The key fact is that value 65 is important for item 65.\n■066 | Document 66: This document contains information about topic 66. The key fact is that value 66 is important for item 66.\n■067 | Document 67: This document contains information about topic 67. The key fact is that value 67 is important for item 67.\n■068 | Document 68: This document contains information about topic 68. The key fact is that value 68 is important for item 68.\n■069 | Document 69: This document contains information about topic 69. The key fact is that value 69 is important for item 69.\n■070 | Document 70: This document contains information about topic 70. The key fact is that value 70 is important for item 70.\n■071 | Document 71: This document contains information about topic 71. The key fact is that value 71 is important for item 71.\n■072 | Document 72: This document contains information about topic 72. The key fact is that value 72 is important for item 72.\n■073 | Document 73: This document contains information about topic 73. The key fact is that value 73 is important for item 73.\n■074 | Document 74: This document contains information about topic 74. The key fact is that value 74 is important for item 74.\n■075 | Document 75: This document contains information about topic 75. The key fact is that value 75 is important for item 75.\n■076 | Document 76: This document contains information about topic 76. The key fact is that value 76 is important for item 76.\n■077 | Document 77: This document contains information about topic 77. The key fact is that value 77 is important for item 77.\n■078 | Document 78: This document contains information about topic 78. The key fact is that value 78 is important for item 78.\n■079 | Document 79: This document contains information about topic 79. The key fact is that value 79 is important for item 79.\n■080 | Document 80: This document contains information about topic 80. The key fact is that value 80 is important for item 80.\n■081 | Document 81: This document contains information about topic 81. The key fact is that value 81 is important for item 81.\n■082 | Document 82: This document contains information about topic 82. The key fact is that value 82 is important for item 82.\n■083 | Document 83: This document contains information about topic 83. The key fact is that value 83 is important for item 83.\n■084 | Document 84: This document contains information about topic 84. The key fact is that value 84 is important for item 84.\n■085 | Document 85: This document contains information about topic 85. The key fact is that value 85 is important for item 85.\n■086 | Document 86: This document contains information about topic 86. The key fact is that value 86 is important for item 86.\n■087 | Document 87: This document contains information about topic 87. The key fact is that value 87 is important for item 87.\n■088 | Document 88: This document contains information about topic 88. The key fact is that value 88 is important for item 88.\n■089 | Document 89: This document contains information about topic 89. The key fact is that value 89 is important for item 89.\n■090 | Document 90: This document contains information about topic 90. The key fact is that value 90 is important for item 90.\n■091 | The company employs over 5000 people worldwide.\n■092 | Document 92: This document contains information about topic 92. The key fact is that value 92 is important for item 92.\n■093 | Document 93: This document contains information about topic 93. The key fact is that value 93 is important for item 93.\n■094 | Document 94: This document contains information about topic 94. The key fact is that value 94 is important for item 94.\n■095 | Document 95: This document contains information about topic 95. The key fact is that value 95 is important for item 95.\n■096 | Document 96: This document contains information about topic 96. The key fact is that value 96 is important for item 96.\n■097 | Document 97: This document contains information about topic 97. The key fact is that value 97 is important for item 97.\n■098 | Document 98: This document contains information about topic 98. The key fact is that value 98 is important for item 98.\n■099 | Document 99: This document contains information about topic 99. The key fact is that value 99 is important for item 99.\n■100 | Document 100: This document contains information about topic 100. The key fact is that value 100 is important for item 100.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Tell me about Acme Corp.\"","role":"user","type":"text"},{"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
Acme Corp is headquartered in New York City. It was founded in 1995 by John Smith and today employs over 5,000 people worldwide.■011■051■091

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 | Document 1: This document contains information about topic 1. The key fact is that value 1 is important for item 1.\n■002 | Document 2: This document contains information about topic 2. The key fact is that value 2 is important for item 2.\n■003 | Document 3: This document contains information about topic 3. The key fact is that value 3 is important for item 3.\n■004 | Document 4: This document contains information about topic 4. The key fact is that value 4 is important for item 4.\n■005 | Document 5: This document contains information about topic 5. The key fact is that value 5 is important for item 5.\n■006 | Document 6: This document contains information about topic 6. The key fact is that value 6 is important for item 6.\n■007 | Document 7: This document contains information about topic 7. The key fact is that value 7 is important for item 7.\n■008 | Document 8: This document contains information about topic 8. The key fact is that value 8 is important for item 8.\n■009 | Document 9: This document contains information about topic 9. The key fact is that value 9 is important for item 9.\n■010 | Document 10: This document contains information about topic 10. The key fact is that value 10 is important for item 10.\n■011 | The headquarters of Acme Corp is located in New York City.\n■012 | Document 12: This document contains information about topic 12. The key fact is that value 12 is important for item 12.\n■013 | Document 13: This document contains information about topic 13. The key fact is that value 13 is important for item 13.\n■014 | Document 14: This document contains information about topic 14. The key fact is that value 14 is important for item 14.\n■015 | Document 15: This document contains information about topic 15. The key fact is that value 15 is important for item 15.\n■016 | Document 16: This document contains information about topic 16. The key fact is that value 16 is important for item 16.\n■017 | Document 17: This document contains information about topic 17. The key fact is that value 17 is important for item 17.\n■018 | Document 18: This document contains information about topic 18. The key fact is that value 18 is important for item 18.\n■019 | Document 19: This document contains information about topic 19. The key fact is that value 19 is important for item 19.\n■020 | Document 20: This document contains information about topic 20. The key fact is that value 20 is important for item 20.\n■021 | Document 21: This document contains information about topic 21. The key fact is that value 21 is important for item 21.\n■022 | Document 22: This document contains information about topic 22. The key fact is that value 22 is important for item 22.\n■023 | Document 23: This document contains information about topic 23. The key fact is that value 23 is important for item 23.\n■024 | Document 24: This document contains information about topic 24. The key fact is that value 24 is important for item 24.\n■025 | Document 25: This document contains information about topic 25. The key fact is that value 25 is important for item 25.\n■026 | Document 26: This document contains information about topic 26. The key fact is that value 26 is important for item 26.\n■027 | Document 27: This document contains information about topic 27. The key fact is that value 27 is important for item 27.\n■028 | Document 28: This document contains information about topic 28. The key fact is that value 28 is important for item 28.\n■029 | Document 29: This document contains information about topic 29. The key fact is that value 29 is important for item 29.\n■030 | Document 30: This document contains information about topic 30. The key fact is that value 30 is important for item 30.\n■031 | Document 31: This document contains information about topic 31. The key fact is that value 31 is important for item 31.\n■032 | Document 32: This document contains information about topic 32. The key fact is that value 32 is important for item 32.\n■033 | Document 33: This document contains information about topic 33. The key fact is that value 33 is important for item 33.\n■034 | Document 34: This document contains information about topic 34. The key fact is that value 34 is important for item 34.\n■035 | Document 35: This document contains information about topic 35. The key fact is that value 35 is important for item 35.\n■036 | Document 36: This document contains information about topic 36. The key fact is that value 36 is important for item 36.\n■037 | Document 37: This document contains information about topic 37. The key fact is that value 37 is important for item 37.\n■038 | Document 38: This document contains information about topic 38. The key fact is that value 38 is important for item 38.\n■039 | Document 39: This document contains information about topic 39. The key fact is that value 39 is important for item 39.\n■040 | Document 40: This document contains information about topic 40. The key fact is that value 40 is important for item 40.\n■041 | Document 41: This document contains information about topic 41. The key fact is that value 41 is important for item 41.\n■042 | Document 42: This document contains information about topic 42. The key fact is that value 42 is important for item 42.\n■043 | Document 43: This document contains information about topic 43. The key fact is that value 43 is important for item 43.\n■044 | Document 44: This document contains information about topic 44. The key fact is that value 44 is important for item 44.\n■045 | Document 45: This document contains information about topic 45. The key fact is that value 45 is important for item 45.\n■046 | Document 46: This document contains information about topic 46. The key fact is that value 46 is important for item 46.\n■047 | Document 47: This document contains information about topic 47. The key fact is that value 47 is important for item 47.\n■048 | Document 48: This document contains information about topic 48. The key fact is that value 48 is important for item 48.\n■049 | Document 49: This document contains information about topic 49. The key fact is that value 49 is important for item 49.\n■050 | Document 50: This document contains information about topic 50. The key fact is that value 50 is important for item 50.\n■051 | Acme Corp was founded in 1995 by John Smith.\n■052 | Document 52: This document contains information about topic 52. The key fact is that value 52 is important for item 52.\n■053 | Document 53: This document contains information about topic 53. The key fact is that value 53 is important for item 53.\n■054 | Document 54: This document contains information about topic 54. The key fact is that value 54 is important for item 54.\n■055 | Document 55: This document contains information about topic 55. The key fact is that value 55 is important for item 55.\n■056 | Document 56: This document contains information about topic 56. The key fact is that value 56 is important for item 56.\n■057 | Document 57: This document contains information about topic 57. The key fact is that value 57 is important for item 57.\n■058 | Document 58: This document contains information about topic 58. The key fact is that value 58 is important for item 58.\n■059 | Document 59: This document contains information about topic 59. The key fact is that value 59 is important for item 59.\n■060 | Document 60: This document contains information about topic 60. The key fact is that value 60 is important for item 60.\n■061 | Document 61: This document contains information about topic 61. The key fact is that value 61 is important for item 61.\n■062 | Document 62: This document contains information about topic 62. The key fact is that value 62 is important for item 62.\n■063 | Document 63: This document contains information about topic 63. The key fact is that value 63 is important for item 63.\n■064 | Document 64: This document contains information about topic 64. The key fact is that value 64 is important for item 64.\n■065 | Document 65: This document contains information about topic 65. The key fact is that value 65 is important for item 65.\n■066 | Document 66: This document contains information about topic 66. The key fact is that value 66 is important for item 66.\n■067 | Document 67: This document contains information about topic 67. The key fact is that value 67 is important for item 67.\n■068 | Document 68: This document contains information about topic 68. The key fact is that value 68 is important for item 68.\n■069 | Document 69: This document contains information about topic 69. The key fact is that value 69 is important for item 69.\n■070 | Document 70: This document contains information about topic 70. The key fact is that value 70 is important for item 70.\n■071 | Document 71: This document contains information about topic 71. The key fact is that value 71 is important for item 71.\n■072 | Document 72: This document contains information about topic 72. The key fact is that value 72 is important for item 72.\n■073 | Document 73: This document contains information about topic 73. The key fact is that value 73 is important for item 73.\n■074 | Document 74: This document contains information about topic 74. The key fact is that value 74 is important for item 74.\n■075 | Document 75: This document contains information about topic 75. The key fact is that value 75 is important for item 75.\n■076 | Document 76: This document contains information about topic 76. The key fact is that value 76 is important for item 76.\n■077 | Document 77: This document contains information about topic 77. The key fact is that value 77 is important for item 77.\n■078 | Document 78: This document contains information about topic 78. The key fact is that value 78 is important for item 78.\n■079 | Document 79: This document contains information about topic 79. The key fact is that value 79 is important for item 79.\n■080 | Document 80: This document contains information about topic 80. The key fact is that value 80 is important for item 80.\n■081 | Document 81: This document contains information about topic 81. The key fact is that value 81 is important for item 81.\n■082 | Document 82: This document contains information about topic 82. The key fact is that value 82 is important for item 82.\n■083 | Document 83: This document contains information about topic 83. The key fact is that value 83 is important for item 83.\n■084 | Document 84: This document contains information about topic 84. The key fact is that value 84 is important for item 84.\n■085 | Document 85: This document contains information about topic 85. The key fact is that value 85 is important for item 85.\n■086 | Document 86: This document contains information about topic 86. The key fact is that value 86 is important for item 86.\n■087 | Document 87: This document contains information about topic 87. The key fact is that value 87 is important for item 87.\n■088 | Document 88: This document contains information about topic 88. The key fact is that value 88 is important for item 88.\n■089 | Document 89: This document contains information about topic 89. The key fact is that value 89 is important for item 89.\n■090 | Document 90: This document contains information about topic 90. The key fact is that value 90 is important for item 90.\n■091 | The company employs over 5000 people worldwide.\n■092 | Document 92: This document contains information about topic 92. The key fact is that value 92 is important for item 92.\n■093 | Document 93: This document contains information about topic 93. The key fact is that value 93 is important for item 93.\n■094 | Document 94: This document contains information about topic 94. The key fact is that value 94 is important for item 94.\n■095 | Document 95: This document contains information about topic 95. The key fact is that value 95 is important for item 95.\n■096 | Document 96: This document contains information about topic 96. The key fact is that value 96 is important for item 96.\n■097 | Document 97: This document contains information about topic 97. The key fact is that value 97 is important for item 97.\n■098 | Document 98: This document contains information about topic 98. The key fact is that value 98 is important for item 98.\n■099 | Document 99: This document contains information about topic 99. The key fact is that value 99 is important for item 99.\n■100 | Document 100: This document contains information about topic 100. The key fact is that value 100 is important for item 100.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Tell me about Acme Corp.\"","role":"user","type":"text"},{"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
Acme Corp is headquartered in New York City【■011】. The company was founded in 1995 by John Smith【■051】 and employs over 5,000 people worldwide【■091】.

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 | Document 1: This document contains information about topic 1. The key fact is that value 1 is important for item 1.\n■002 | Document 2: This document contains information about topic 2. The key fact is that value 2 is important for item 2.\n■003 | Document 3: This document contains information about topic 3. The key fact is that value 3 is important for item 3.\n■004 | Document 4: This document contains information about topic 4. The key fact is that value 4 is important for item 4.\n■005 | Document 5: This document contains information about topic 5. The key fact is that value 5 is important for item 5.\n■006 | Document 6: This document contains information about topic 6. The key fact is that value 6 is important for item 6.\n■007 | Document 7: This document contains information about topic 7. The key fact is that value 7 is important for item 7.\n■008 | Document 8: This document contains information about topic 8. The key fact is that value 8 is important for item 8.\n■009 | Document 9: This document contains information about topic 9. The key fact is that value 9 is important for item 9.\n■010 | Document 10: This document contains information about topic 10. The key fact is that value 10 is important for item 10.\n■011 | The headquarters of Acme Corp is located in New York City.\n■012 | Document 12: This document contains information about topic 12. The key fact is that value 12 is important for item 12.\n■013 | Document 13: This document contains information about topic 13. The key fact is that value 13 is important for item 13.\n■014 | Document 14: This document contains information about topic 14. The key fact is that value 14 is important for item 14.\n■015 | Document 15: This document contains information about topic 15. The key fact is that value 15 is important for item 15.\n■016 | Document 16: This document contains information about topic 16. The key fact is that value 16 is important for item 16.\n■017 | Document 17: This document contains information about topic 17. The key fact is that value 17 is important for item 17.\n■018 | Document 18: This document contains information about topic 18. The key fact is that value 18 is important for item 18.\n■019 | Document 19: This document contains information about topic 19. The key fact is that value 19 is important for item 19.\n■020 | Document 20: This document contains information about topic 20. The key fact is that value 20 is important for item 20.\n■021 | Document 21: This document contains information about topic 21. The key fact is that value 21 is important for item 21.\n■022 | Document 22: This document contains information about topic 22. The key fact is that value 22 is important for item 22.\n■023 | Document 23: This document contains information about topic 23. The key fact is that value 23 is important for item 23.\n■024 | Document 24: This document contains information about topic 24. The key fact is that value 24 is important for item 24.\n■025 | Document 25: This document contains information about topic 25. The key fact is that value 25 is important for item 25.\n■026 | Document 26: This document contains information about topic 26. The key fact is that value 26 is important for item 26.\n■027 | Document 27: This document contains information about topic 27. The key fact is that value 27 is important for item 27.\n■028 | Document 28: This document contains information about topic 28. The key fact is that value 28 is important for item 28.\n■029 | Document 29: This document contains information about topic 29. The key fact is that value 29 is important for item 29.\n■030 | Document 30: This document contains information about topic 30. The key fact is that value 30 is important for item 30.\n■031 | Document 31: This document contains information about topic 31. The key fact is that value 31 is important for item 31.\n■032 | Document 32: This document contains information about topic 32. The key fact is that value 32 is important for item 32.\n■033 | Document 33: This document contains information about topic 33. The key fact is that value 33 is important for item 33.\n■034 | Document 34: This document contains information about topic 34. The key fact is that value 34 is important for item 34.\n■035 | Document 35: This document contains information about topic 35. The key fact is that value 35 is important for item 35.\n■036 | Document 36: This document contains information about topic 36. The key fact is that value 36 is important for item 36.\n■037 | Document 37: This document contains information about topic 37. The key fact is that value 37 is important for item 37.\n■038 | Document 38: This document contains information about topic 38. The key fact is that value 38 is important for item 38.\n■039 | Document 39: This document contains information about topic 39. The key fact is that value 39 is important for item 39.\n■040 | Document 40: This document contains information about topic 40. The key fact is that value 40 is important for item 40.\n■041 | Document 41: This document contains information about topic 41. The key fact is that value 41 is important for item 41.\n■042 | Document 42: This document contains information about topic 42. The key fact is that value 42 is important for item 42.\n■043 | Document 43: This document contains information about topic 43. The key fact is that value 43 is important for item 43.\n■044 | Document 44: This document contains information about topic 44. The key fact is that value 44 is important for item 44.\n■045 | Document 45: This document contains information about topic 45. The key fact is that value 45 is important for item 45.\n■046 | Document 46: This document contains information about topic 46. The key fact is that value 46 is important for item 46.\n■047 | Document 47: This document contains information about topic 47. The key fact is that value 47 is important for item 47.\n■048 | Document 48: This document contains information about topic 48. The key fact is that value 48 is important for item 48.\n■049 | Document 49: This document contains information about topic 49. The key fact is that value 49 is important for item 49.\n■050 | Document 50: This document contains information about topic 50. The key fact is that value 50 is important for item 50.\n■051 | Acme Corp was founded in 1995 by John Smith.\n■052 | Document 52: This document contains information about topic 52. The key fact is that value 52 is important for item 52.\n■053 | Document 53: This document contains information about topic 53. The key fact is that value 53 is important for item 53.\n■054 | Document 54: This document contains information about topic 54. The key fact is that value 54 is important for item 54.\n■055 | Document 55: This document contains information about topic 55. The key fact is that value 55 is important for item 55.\n■056 | Document 56: This document contains information about topic 56. The key fact is that value 56 is important for item 56.\n■057 | Document 57: This document contains information about topic 57. The key fact is that value 57 is important for item 57.\n■058 | Document 58: This document contains information about topic 58. The key fact is that value 58 is important for item 58.\n■059 | Document 59: This document contains information about topic 59. The key fact is that value 59 is important for item 59.\n■060 | Document 60: This document contains information about topic 60. The key fact is that value 60 is important for item 60.\n■061 | Document 61: This document contains information about topic 61. The key fact is that value 61 is important for item 61.\n■062 | Document 62: This document contains information about topic 62. The key fact is that value 62 is important for item 62.\n■063 | Document 63: This document contains information about topic 63. The key fact is that value 63 is important for item 63.\n■064 | Document 64: This document contains information about topic 64. The key fact is that value 64 is important for item 64.\n■065 | Document 65: This document contains information about topic 65. The key fact is that value 65 is important for item 65.\n■066 | Document 66: This document contains information about topic 66. The key fact is that value 66 is important for item 66.\n■067 | Document 67: This document contains information about topic 67. The key fact is that value 67 is important for item 67.\n■068 | Document 68: This document contains information about topic 68. The key fact is that value 68 is important for item 68.\n■069 | Document 69: This document contains information about topic 69. The key fact is that value 69 is important for item 69.\n■070 | Document 70: This document contains information about topic 70. The key fact is that value 70 is important for item 70.\n■071 | Document 71: This document contains information about topic 71. The key fact is that value 71 is important for item 71.\n■072 | Document 72: This document contains information about topic 72. The key fact is that value 72 is important for item 72.\n■073 | Document 73: This document contains information about topic 73. The key fact is that value 73 is important for item 73.\n■074 | Document 74: This document contains information about topic 74. The key fact is that value 74 is important for item 74.\n■075 | Document 75: This document contains information about topic 75. The key fact is that value 75 is important for item 75.\n■076 | Document 76: This document contains information about topic 76. The key fact is that value 76 is important for item 76.\n■077 | Document 77: This document contains information about topic 77. The key fact is that value 77 is important for item 77.\n■078 | Document 78: This document contains information about topic 78. The key fact is that value 78 is important for item 78.\n■079 | Document 79: This document contains information about topic 79. The key fact is that value 79 is important for item 79.\n■080 | Document 80: This document contains information about topic 80. The key fact is that value 80 is important for item 80.\n■081 | Document 81: This document contains information about topic 81. The key fact is that value 81 is important for item 81.\n■082 | Document 82: This document contains information about topic 82. The key fact is that value 82 is important for item 82.\n■083 | Document 83: This document contains information about topic 83. The key fact is that value 83 is important for item 83.\n■084 | Document 84: This document contains information about topic 84. The key fact is that value 84 is important for item 84.\n■085 | Document 85: This document contains information about topic 85. The key fact is that value 85 is important for item 85.\n■086 | Document 86: This document contains information about topic 86. The key fact is that value 86 is important for item 86.\n■087 | Document 87: This document contains information about topic 87. The key fact is that value 87 is important for item 87.\n■088 | Document 88: This document contains information about topic 88. The key fact is that value 88 is important for item 88.\n■089 | Document 89: This document contains information about topic 89. The key fact is that value 89 is important for item 89.\n■090 | Document 90: This document contains information about topic 90. The key fact is that value 90 is important for item 90.\n■091 | The company employs over 5000 people worldwide.\n■092 | Document 92: This document contains information about topic 92. The key fact is that value 92 is important for item 92.\n■093 | Document 93: This document contains information about topic 93. The key fact is that value 93 is important for item 93.\n■094 | Document 94: This document contains information about topic 94. The key fact is that value 94 is important for item 94.\n■095 | Document 95: This document contains information about topic 95. The key fact is that value 95 is important for item 95.\n■096 | Document 96: This document contains information about topic 96. The key fact is that value 96 is important for item 96.\n■097 | Document 97: This document contains information about topic 97. The key fact is that value 97 is important for item 97.\n■098 | Document 98: This document contains information about topic 98. The key fact is that value 98 is important for item 98.\n■099 | Document 99: This document contains information about topic 99. The key fact is that value 99 is important for item 99.\n■100 | Document 100: This document contains information about topic 100. The key fact is that value 100 is important for item 100.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"Tell me about Acme Corp.\"","role":"user","type":"text"},{"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
Acme Corp is headquartered in New York City■011. It was founded in 1995 by John Smith■051. The company employs over 5,000 people worldwide■091.

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 | The product name is AlphaBot.\n■002 | Filler document 2.\n■003 | Filler document 3.\n■004 | Filler document 4.\n■005 | Filler document 5.\n■006 | Filler document 6.\n■007 | Filler document 7.\n■008 | Filler document 8.\n■009 | Filler document 9.\n■010 | Filler document 10.\n■011 | Filler document 11.\n■012 | Filler document 12.\n■013 | Filler document 13.\n■014 | Filler document 14.\n■015 | Filler document 15.\n■016 | Filler document 16.\n■017 | Filler document 17.\n■018 | Filler document 18.\n■019 | Filler document 19.\n■020 | Filler document 20.\n■021 | Filler document 21.\n■022 | Filler document 22.\n■023 | Filler document 23.\n■024 | Filler document 24.\n■025 | Filler document 25.\n■026 | Filler document 26.\n■027 | Filler document 27.\n■028 | Filler document 28.\n■029 | Filler document 29.\n■030 | Filler document 30.\n■031 | Filler document 31.\n■032 | Filler document 32.\n■033 | Filler document 33.\n■034 | Filler document 34.\n■035 | Filler document 35.\n■036 | Filler document 36.\n■037 | Filler document 37.\n■038 | Filler document 38.\n■039 | Filler document 39.\n■040 | Filler document 40.\n■041 | Filler document 41.\n■042 | Filler document 42.\n■043 | Filler document 43.\n■044 | Filler document 44.\n■045 | Filler document 45.\n■046 | Filler document 46.\n■047 | Filler document 47.\n■048 | Filler document 48.\n■049 | Filler document 49.\n■050 | AlphaBot costs $299 per month.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the price of AlphaBot?\"","role":"user","type":"text"},{"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
AlphaBot is priced at $299 per month.■050

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 | The product name is AlphaBot.\n■002 | Filler document 2.\n■003 | Filler document 3.\n■004 | Filler document 4.\n■005 | Filler document 5.\n■006 | Filler document 6.\n■007 | Filler document 7.\n■008 | Filler document 8.\n■009 | Filler document 9.\n■010 | Filler document 10.\n■011 | Filler document 11.\n■012 | Filler document 12.\n■013 | Filler document 13.\n■014 | Filler document 14.\n■015 | Filler document 15.\n■016 | Filler document 16.\n■017 | Filler document 17.\n■018 | Filler document 18.\n■019 | Filler document 19.\n■020 | Filler document 20.\n■021 | Filler document 21.\n■022 | Filler document 22.\n■023 | Filler document 23.\n■024 | Filler document 24.\n■025 | Filler document 25.\n■026 | Filler document 26.\n■027 | Filler document 27.\n■028 | Filler document 28.\n■029 | Filler document 29.\n■030 | Filler document 30.\n■031 | Filler document 31.\n■032 | Filler document 32.\n■033 | Filler document 33.\n■034 | Filler document 34.\n■035 | Filler document 35.\n■036 | Filler document 36.\n■037 | Filler document 37.\n■038 | Filler document 38.\n■039 | Filler document 39.\n■040 | Filler document 40.\n■041 | Filler document 41.\n■042 | Filler document 42.\n■043 | Filler document 43.\n■044 | Filler document 44.\n■045 | Filler document 45.\n■046 | Filler document 46.\n■047 | Filler document 47.\n■048 | Filler document 48.\n■049 | Filler document 49.\n■050 | AlphaBot costs $299 per month.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is the price of AlphaBot?\"","role":"user","type":"text"},{"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
The price of AlphaBot is $299 per month.■050

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