curl --request POST \
--url https://api.voice-agents.miraiminds.co/v2/assistant/create \
--header 'Content-Type: application/json' \
--header 'workspace: <workspace>' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"name": "<string>",
"variant": "abandoned_cart",
"agentIdentity": {
"name": "<string>",
"gender": "male",
"voice": "<string>",
"traits": [
"elegant"
]
},
"icpContext": {
"targetAgeGroups": [
"gen_z"
],
"locationTiers": [
"metro_urban"
],
"language": "hinglish",
"targetAudience": [
"male"
]
},
"callSettings": {
"slots": [
{
"startTime": "10:00",
"endTime": "13:00"
}
],
"retryProtocol": {
"maxAttemptsNoPickup": 2,
"maxAttemptsLowEngagement": 1,
"reAttemptPeriod": 300,
"maxRescheduleCount": 1
},
"maxCallDuration": 200,
"concurrentCallCount": 5
},
"variantConfigs": {
"pitchFlow": [
"company_usp_pitch",
"return_policy_assurance",
"discount_offer"
],
"discountRules": {
"canOffer": true,
"maxPercent": 15
},
"systemPrompt": "<string>",
"variables": [
{
"name": "<string>",
"type": "string",
"isRequired": true,
"fields": "<array>"
}
]
}
}
'{
"message": "Assistant created successfully",
"data": {
"assistantId": "<string>",
"status": "<string>"
}
}curl --request POST \
--url https://api.voice-agents.miraiminds.co/v2/assistant/create \
--header 'Content-Type: application/json' \
--header 'workspace: <workspace>' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"name": "<string>",
"variant": "abandoned_cart",
"agentIdentity": {
"name": "<string>",
"gender": "male",
"voice": "<string>",
"traits": [
"elegant"
]
},
"icpContext": {
"targetAgeGroups": [
"gen_z"
],
"locationTiers": [
"metro_urban"
],
"language": "hinglish",
"targetAudience": [
"male"
]
},
"callSettings": {
"slots": [
{
"startTime": "10:00",
"endTime": "13:00"
}
],
"retryProtocol": {
"maxAttemptsNoPickup": 2,
"maxAttemptsLowEngagement": 1,
"reAttemptPeriod": 300,
"maxRescheduleCount": 1
},
"maxCallDuration": 200,
"concurrentCallCount": 5
},
"variantConfigs": {
"pitchFlow": [
"company_usp_pitch",
"return_policy_assurance",
"discount_offer"
],
"discountRules": {
"canOffer": true,
"maxPercent": 15
},
"systemPrompt": "<string>",
"variables": [
{
"name": "<string>",
"type": "string",
"isRequired": true,
"fields": "<array>"
}
]
}
}
'{
"message": "Assistant created successfully",
"data": {
"assistantId": "<string>",
"status": "<string>"
}
}This value changes the validation rules for 'AdditionalContext'
abandoned_cart, custom Show child attributes
Show child attributes
Show child attributes
Dynamic configuration based on assistant type.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes