Start an outbound SMS chat conversation with a phone number using the specified agent. The agent must be configured for chat mode. The initial SMS message will be automatically generated and sent based on the agent's configuration.
Request body
Example request
{
"from_number": "+12137771234",
"to_number": "+14155551234",
"override_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"override_agent_version": 1,
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}Response
SMS chat created and initial message sent successfully
Example response
{
"chat_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"version": 1,
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"collected_dynamic_variables": {
"last_node_name": "Test node"
},
"chat_status": "ongoing",
"chat_type": "api_chat",
"start_timestamp": 1703302407333,
"end_timestamp": 1703302428855,
"transcript": "Agent: hi how are you doing?\nUser: Doing pretty well. How are you?\nAgent: That's great to hear! I'm doing well too, thanks! What's up?\nUser: I don't have anything in particular.\nAgent: Got it, just checking in!\nUser: Alright. See you.\nAgent: have a nice day\n",
"message_with_tool_calls": [
{
"message_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"role": "agent",
"content": "hi how are you doing?",
"created_timestamp": 1703302428855
}
],
"chat_cost": {
"product_costs": [
{
"product": "elevenlabs_tts",
"unit_price": 1,
"cost": 60
}
],
"combined_cost": 70
},
"chat_analysis": {
"chat_summary": "The agent messages user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
"user_sentiment": "Positive",
"chat_successful": true
}
}Changes
Changed in 8 of the 28 revisions of this API.31118
- ●
changed the pattern of the request property
/from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
- ▲
the
/request property type changed from no type tostringrequest-property-type-changed
- ▲
the
/response's property type changed from no type tostringfor statusresponse-property-type-changed
- ▲
the
/response's property type changed from no type tostringfor statusresponse-property-type-changed
- ▲
- ●
changed the pattern of the request property
/from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
- ○
request property
list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
/////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//////from the response with the statusresponse-required-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//////from the response with the statusresponse-optional-property-removed
- ○
added
subschema #2to the/////response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the/////response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the/////response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the/////response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the/////response propertyallOflist for the response statusresponse-property-all-of-added
- ▲
- ▲
the
request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
request property's minLength was increased from0to1request-property-min-length-increased
- ▲
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○