POST
/
inference
/
chat
/
Initiate/Continue Agent Chat
curl --request POST \
  --url https://agent-prod.studio.lyzr.ai/v3/inference/chat/ \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "rohith@lyzr.ai",
  "system_prompt_variables": {},
  "agent_id": "684009b00ff8ffe17f2c0a3c",
  "session_id": "684009b00ff8ffe17f2c0a3c-sdm4iozro1",
  "message": "Hi Diet planner craft a basic diet plan",
  "filter_variables": {},
  "features": [
    {
      "additionalProp1": {}
    }
  ],
  "assets": [
    "asset_123",
    "asset_456"
  ]
}'
{
  "status": "success",
  "agent_response": "The attached document discusses...",
  "session_id": "684009b00ff8ffe17f2c0a3c-sdm4iozro1",
  "agent_id": "684009b00ff8ffe17f2c0a3c"
}

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.