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"
}
Initiates a new chat session or continues an existing one with a specified agent. Supports multimodal interaction by referencing uploaded asset IDs and optional feature configuration.
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"
}
Successful Response
The response is of type object
.