ragflow_agent_chat
Send a message to a RAGFlow agent and receive its complete answer. Continue an existing session or start a new one, optionally attaching uploaded files and Begin-component input values.
Instructions
Send a message to an agent and wait for its complete answer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>"
},
"name": "ragflow_agent_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File objects returned by ragflow_upload_agent_file | |
| inputs | No | Values for the Begin component's input fields, keyed by field name: a plain value or {"value": ...} | |
| agent_id | Yes | Agent ID | |
| question | No | The user's message; may be empty when the agent only takes inputs | |
| session_id | No | Continue this session; without it RAGFlow starts a new session and returns its id | |
| openai_compatible | No | Use RAGFlow's OpenAI-compatible mode, which also reports token usage; the agent run is the same |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||