MCP is live.Set upAsk the community
OmniDimension
Chat Sessions

Send chat message

Send one message as the customer and get the agent's reply, plus the tools it called on this turn with their arguments and results.

The agent can close the chat itself, as on a call: with its end call tool (end_call) when the conversation is done, or its transfer tool (transfer_call) when the customer must go to a person, in which case it tells them the number. The response then has status: ended, ended_by, transferred_to and the whole transcript. The chat is already saved: show the reply and stop. Both tools follow the agent's own end call and transfer settings.

In a test chat, tool_results here applies to this turn only, on top of the ones set when the session was created; use it to make a tool fail on one turn. A live chat refuses tool_results.

Path parameters

session_idintegerrequired

The session_id from Create chat session.

Body

messagestringrequired

What the caller says.

tool_resultsobject

Test chats only. What each of the agent's tools returns, keyed by tool name. The agent sees the value as the tool's result. Script a failure as {"status": "error", "error": "<short_code>"}. A tool you leave out returns {"status": "ok", "data": {}}.

Was this page helpful?