curl --request POST \
--url https://api.bland.ai/v1/sms/analyze \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"schema_id": "<string>",
"conversation_id": "<string>"
}'
{
"data": {
"status": "success",
"conversation_id": "conv_123456",
"schema_id": "schema_789",
"schema_name": "Customer Intent Analysis",
"variables_extracted": 5,
"extracted_variables": {
"customer_name": "John Smith",
"preferred_time": "morning",
"service_type": "moving",
"urgency": "high",
"budget_range": "$500-1000"
},
"citations": [
{
"variable": "customer_name",
"message": "Hi, this is John Smith calling about...",
"confidence": 0.95
}
],
"messages_processed": 12
},
"errors": []
}
Answer questions and extract information from an SMS conversation.
curl --request POST \
--url https://api.bland.ai/v1/sms/analyze \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"schema_id": "<string>",
"conversation_id": "<string>"
}'
{
"data": {
"status": "success",
"conversation_id": "conv_123456",
"schema_id": "schema_789",
"schema_name": "Customer Intent Analysis",
"variables_extracted": 5,
"extracted_variables": {
"customer_name": "John Smith",
"preferred_time": "morning",
"service_type": "moving",
"urgency": "high",
"budget_range": "$500-1000"
},
"citations": [
{
"variable": "customer_name",
"message": "Hi, this is John Smith calling about...",
"confidence": 0.95
}
],
"messages_processed": 12
},
"errors": []
}
Show data
{
"data": {
"status": "success",
"conversation_id": "conv_123456",
"schema_id": "schema_789",
"schema_name": "Customer Intent Analysis",
"variables_extracted": 5,
"extracted_variables": {
"customer_name": "John Smith",
"preferred_time": "morning",
"service_type": "moving",
"urgency": "high",
"budget_range": "$500-1000"
},
"citations": [
{
"variable": "customer_name",
"message": "Hi, this is John Smith calling about...",
"confidence": 0.95
}
],
"messages_processed": 12
},
"errors": []
}
Was this page helpful?