Skip to main content
POST
/
conversation
/
message
curl -X POST 'https://api.clever.nivara.io/conversation/message' \
-H 'Content-Type: application/json' \
-d '{
  "message": "My name is John Smith",
  "conversation_id": "conv_123abc456def",
  "language": "en"
}'
{
  "conversation_id": "conv_123abc456def",
  "response": "Thank you, John. Could you please provide your phone number?",
  "status": "in_progress",
  "customer_info": {
    "name": "John Smith",
    "phone": null,
    "address": null,
    "issue": null,
    "role": null,
    "priority": null,
    "type": null,
    "date_time": "2024-03-21T10:30:00Z",
    "submission_date_time": null
  },
  "is_complete": false
}
Send a message to continue an existing conversation with the Clever AI agent.

Body

message
string
required
The message to send to the agent
conversation_id
string
The ID of the existing conversation. If not provided, a new conversation will be started.
language
string
default:"en"
Language for the conversation (en or it)

Response

conversation_id
string
Unique identifier for the conversation
response
string
Agent’s response to the message
status
string
Current status of the conversation
customer_info
object
Updated customer information object
is_complete
boolean
Whether all required information has been collected
curl -X POST 'https://api.clever.nivara.io/conversation/message' \
-H 'Content-Type: application/json' \
-d '{
  "message": "My name is John Smith",
  "conversation_id": "conv_123abc456def",
  "language": "en"
}'
{
  "conversation_id": "conv_123abc456def",
  "response": "Thank you, John. Could you please provide your phone number?",
  "status": "in_progress",
  "customer_info": {
    "name": "John Smith",
    "phone": null,
    "address": null,
    "issue": null,
    "role": null,
    "priority": null,
    "type": null,
    "date_time": "2024-03-21T10:30:00Z",
    "submission_date_time": null
  },
  "is_complete": false
}