Sales / Agentforce
[Agent API] Synchronous sendMessage returns EndOfTurn without a message when post-orchestration stops
Summary
When executing the synchronous Agent API v1 sendMessage endpoint, a turn can end with a response containing only an EndOfTurn type and no actual message in the payload.
This can occur when a groundedness check fails with an error and the subsequent post-orchestration step stops.
Because the EndOfTurn message contains no details regarding the error and is returned as a non-error response, clients cannot distinguish between a normal turn completion and a turn terminated due to a groundedness check failure.
Expected: The sendMessage response includes a messages payload with a Failure type and a message indicating the failure so the client can display an appropriate error message.
Actual: The sendMessage response includes a messages payload with an EndOfTurn type and no terminal response message.
Workaround
Review the agent's topic instructions and knowledge sources so that the information needed to answer is available.
Steps to reproduce
This issue is intermittent and can occur when the agent's post-orchestration step stops unexpectedly and terminates the turn (for example, when the groundedness check fails to run).
## How to Verify Groundedness Check Failure
Check the ssot__OutputValueText__c field in the AI Agent Interaction Step DMO (ssot__AiAgentInteractionStep__dlm) for records starting with category=VALIDATION_ERROR.
Filter criteria:
- ssot__AiAgentInteractionStepType__c = 'LLM_STEP'
- ssot__Name__c = 'Atlas__GroundednessValidationPrompt'
Sample query:
SELECT "ssot__OutputValueText__c"
FROM "ssot__AiAgentInteractionStep__dlm"
WHERE "ssot__AiAgentInteractionStepType__c" = 'LLM_STEP'
AND "ssot__Name__c" = 'Atlas__GroundednessValidationPrompt'
History
Description updated
Nov 30, 2026
First tracked here as Solution in Progress
Nov 30, 2026