Examples
Complete Request/Response Example
Input Request
{
"input": {
"messages": [
{
"originator": "bot",
"text": "Hello, can you hear me?",
"is_processed": true
},
{
"originator": "user",
"text": "How are you doing?",
"is_processed": true
},
{
"originator": "bot",
"text": "Great! You?",
"is_processed": true
},
{
"id": 4,
"type": "text",
"originator": "user",
"text": "Me too!!",
"is_processed": false
},
{
"id": 5,
"type": "text",
"text": "What are you doing tonight?",
"is_processed": false
},
{
"id": 6,
"type": "audio",
"text": null,
"audio_file_id": "msg1",
"is_processed": false
}
],
"audio_files": {
"msg1": ""
},
"character": "github:partner/character",
"character_params": {
"anything_you_want": "Those parameters will be used to render the character prompt template.",
"user_tier": "Premium",
"user_hair_color": "Blonde"
},
"generate_audio": true
}
}
Output Response
{
"messages": [
{
"id": 4,
"type": "text",
"text": "Me too!!"
},
{
"id": 5,
"type": "text",
"text": "What are you doing tonight?"
},
{
"id": 6,
"type": "audio",
"text": "",
"audio_file_id": "msg1"
},
{
"type": "audio",
"text": "",
"audio_file_id": "response"
}
],
"audio_files": {
"response": ""
}
}