Deep Dive
Build Paths
- Studio (No-code Interface)
- Lyzr Developer API (Programmatic Access)
Agents
- Overview
- Studio
- Publish Agent
- API Endpoints
Knowledge Base
- Overview
- Semantic Model
- Studio
- API Endpoints
Tools
- Available Tools
- Tools List
- Custom Tools
- API Endpoints
Responsible & Safe AI
- Overview
- Responsible AI
- Safe AI Studio
- API Endpoints
Orchestration
API Endpoints
Chat With Agent
Perform a chat interaction with an agent using the inference engine (v3).
POST
/
inference
/
chat
/
Copy
curl --request POST \
--url https://agent-prod.studio.lyzr.ai/v3/inference/chat/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"user_id": "rohithchandra1952@gmail.com",
"system_prompt_variables": {},
"agent_id": "683f4657fcc016e56d66dbe8",
"session_id": "683f4657fcc016e56d66dbe8-o6aq76s9a5",
"message": "Hello, what are you upto?",
"filter_variables": {},
"features": [
{
"additionalProp1": {}
}
]
}'
Copy
{
"response": "Hello! How can I assist you today?"
}
Authorizations
Body
application/json
Response
200
application/json
Successful agent response
The response is of type object
.
Copy
curl --request POST \
--url https://agent-prod.studio.lyzr.ai/v3/inference/chat/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"user_id": "rohithchandra1952@gmail.com",
"system_prompt_variables": {},
"agent_id": "683f4657fcc016e56d66dbe8",
"session_id": "683f4657fcc016e56d66dbe8-o6aq76s9a5",
"message": "Hello, what are you upto?",
"filter_variables": {},
"features": [
{
"additionalProp1": {}
}
]
}'
Copy
{
"response": "Hello! How can I assist you today?"
}
Assistant
Responses are generated using AI and may contain mistakes.