Skip to main content

Add a user message

POST 

/api/v1/agents/:agent_id/sessions/:session_id/messages

Saves a user message to the session. When autoGenerate is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response mirrors GenerateSessionResponse. Otherwise returns the saved user message.

Request

Responses

User message saved