Deep ReSearch Conversation is provided by Baidu for multi-round streaming conversations with "Deep Research" agents. "In-depth research" is a long-process task involving multi-step reasoning and execution, which is different from the ordinary "question-and-answer". A dialogue that requires the user to repeatedly verify and correct it until a satisfactory answer is reached.
This skill allows OpenClaw agents to conduct in-depth research discussions with users on a given topic. The API Key is automatically loaded from the OpenClaw config — no manual setup is needed.
| name | path | description |
|---|---|---|
| DeepresearchConversation | /v2/agent/deepresearch/run | Multi-round streaming deep research conversation (via Python script) |
| ConversationCreate | /v2/agent/deepresearch/create | Create a new conversation session, returns conversation_id |
| FileUpload | /v2/agent/file/upload | Upload a file for the conversation |
| FileParseSubmit | /v2/agent/file/parse/submit | Submit an uploaded file for parsing |
| FileParseQuery | /v2/agent/file/parse/query | Query the status of a file parsing task |
conversation_id.conversation_id to upload files.file_id.query, conversation_id, and file_ids.conversation_id in all subsequent calls.interrupt_id (for "demand clarification" or "outline confirmation"), the next call must include that interrupt_id.structured_outline, present it to the user for confirmation/modification, then pass the final outline in the next call.no parameters
curl -X POST "https://qianfan.baidubce.com/v2/agent/deepresearch/create" \
-H "X-Appbuilder-From: openclaw" \
-H "Authorization: Bearer $BAIDU_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
agent_code: Fixed value "deepresearch" (required)conversation_id: From ConversationCreate response (required)file: Local file binary (mutually exclusive with file_url). Max 10 files. Supported formats:
file_url: Public URL of the file (mutually exclusive with file)curl -X POST "https://qianfan.baidubce.com/v2/agent/file/upload" \
-H "Authorization: Bearer $BAIDU_API_KEY" \
-H "Content-Type: multipart/form-data" \
-H "X-Appbuilder-From: openclaw" \
-F "agent_code=deepresearch" \
-F "conversation_id=$conversation_id" \
-F "file=@local_file_path"
curl -X POST "https://qianfan.baidubce.com/v2/agent/file/upload" \
-H "Authorization: Bearer $BAIDU_API_KEY" \
-H "Content-Type: multipart/form-data" \
-H "X-Appbuilder-From: openclaw" \
-F "agent_code=deepresearch" \
-F "conversation_id=$conversation_id" \
-F "file_url=$file_url"
file_id: From FileUpload response (required)curl -X POST "https://qianfan.baidubce.com/v2/agent/file/parse/submit" \
-H "Authorization: Bearer $BAIDU_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Appbuilder-From: openclaw" \
-d '{"file_id": "$file_id"}'
task_id: From FileParseSubmit response (required)curl -X GET "https://qianfan.baidubce.com/v2/agent/file/parse/query?task_id=$task_id" \
-H "Authorization: Bearer $BAIDU_API_KEY" \
-H "X-Appbuilder-From: openclaw"
query: The user's question or research topic (required)conversation_id: Optional on first call (auto-generated). Required on subsequent calls.file_ids: List of parsed file IDs (optional, only when discussing files)interrupt_id: Required when responding to "demand clarification" or "outline confirmation" from previous round. Found in content.text.data of the previous SSE response.structured_outline: The research report outline. Required on subsequent calls if the previous round generated one. Structure:{
"title": "string",
"locale": "string",
"description": "string",
"sub_chapters": [
{
"title": "string",
"locale": "string",
"description": "string",
"sub_chapters": []
}
]
}
version: "Lite" (faster, within 10 min) or "Standard" (deeper, slower). Default: "Standard".python3 scripts/deepresearch_conversation.py '{"query": "your question here", "version": "Standard"}'
python3 scripts/deepresearch_conversation.py '{"query": "the question", "file_ids": ["file_id_1"], "interrupt_id": "interrupt_id", "conversation_id": "conversation_id", "structured_outline": {"title": "Report Title", "locale": "zh", "description": "desc", "sub_chapters": [{"title": "Chapter 1", "locale": "zh", "description": "chapter desc", "sub_chapters": []}]}, "version": "Standard"}'