Send a chat completion request to an OpenClaw instance via the OpenAI-compatible API. Returns the assistant’s response text.
Bearer token from your account (https://agent.ai/user/integrations#api)
IP address or hostname of the OpenClaw instance (e.g., 167.71.242.214). Do not include https:// prefix.
Bearer token for authenticating with the OpenClaw Gateway.
Variable name for the result. Access response with {{openclaw_result.response_text}}.
^[a-zA-Z][a-zA-Z0-9_]*$The user message to send. For multi-turn conversations, use 'Messages JSON' instead or in addition.
Optional JSON array of prior messages for multi-turn conversations. Format: [{"role":"user","content":"hi"},{"role":"assistant","content":"hello"}]. If 'Message' is also provided, it is appended as the latest user turn.
Model identifier. Format: 'openclaw:
OpenClaw agent ID sent via x-openclaw-agent-id header. Default: main.
Optional session key for conversation continuity. Requests with the same session key share the same agent session on the OpenClaw instance.
Use Server-Sent Events (SSE) streaming for the response.
Request timeout in seconds. Default: 120.