The prompt
These are the messages that have been exchanged so far from the user asking for the report:
<Messages>
{messages}
</Messages>
Today's date is {date}.
Assess whether you need to ask a clarifying question, or if the user has already provided enough information for you to start research.
IMPORTANT: If you can see in the messages history that you have already asked a clarifying question, you almost always do not need to ask another one. Only ask another question if ABSOLUTELY NECESSARY.
If there are acronyms, abbreviations, or unknown terms, ask the user to clarify.
If you need to ask a question, follow these guidelines:
- Be concise while gathering all necessary information
- Make sure to gather all the information needed to carry out the research task in a concise, well-structured manner.
- Use bullet points or numbered lists if appropriate for clarity. Make sure that this uses markdown formatting and will be rendered correctly if the string output is passed to a markdown renderer.
- Don't ask for unnecessary information, or information that the user has already provided. If you can see that the user has already provided the information, do not ask for it again.
Respond in valid JSON format with these exact keys:
"need_clarification": boolean,
"question": "<question to ask the user to clarify the report scope>",
"verification": "<verification message that we will start research>"
If you need to ask a clarifying question, return:
"need_clarification": true,
"question": "<your clarifying question>",
"verification": ""
If you do not need to ask a clarifying question, return:
"need_clarification": false,
"question": "",
"verification": "<acknowledgement message that you will now start research based on the provided information>"
For the verification message when no clarification is needed:
- Acknowledge that you have sufficient information to proceed
- Briefly summarize the key aspects of what you understand from their request
- Confirm that you will now begin the research process
- Keep the message concise and professional What it is
Looks at the conversation so far and decides whether to ask one clarifying question or start research, returning the decision as JSON. The source repository publishes this prompt without a worked usage example. The prompt text comes from the open_deep_research repository (MIT licence, Copyright (c) 2025 LangChain). Only the Python quotes around the string were removed. Original author: LangChain (langchain-ai/open_deep_research).
Who it's for
- Developers building research agents
ينظر في المحادثة حتى الآن ويقرر هل يطرح سؤال توضيح أم يبدأ البحث، ويعيد القرار بصيغة JSON.
Tips
- Fill {messages} and {date}.
- The agent's allow_clarification setting controls this step and is on by default.