curl --request PATCH \
--url https://api.puretalk.ai/api/ai-assistants/{assistant_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "<string>",
"voice": 123,
"prompt": "<string>",
"begin_message": "<string>",
"who_speaks_first": "assistant",
"model": "puretalk-plg",
"call_recording_enabled": true,
"assistant_type": "single_prompt",
"avatar": "<string>",
"custom_knowledge_base": "<string>",
"timezone": "<string>",
"reminder_message_frequency": 123,
"max_reminder_messages": 123,
"voice_stability": "<string>",
"voice_clarity_similarity": "<string>",
"voice_stream_latency_optimization": 123,
"voice_boost": false,
"chatbot_logo": "<string>",
"chatbot_accent_color": "<string>",
"chatbot_faq": "<string>"
}
'{
"msg": "<string>",
"err": true,
"results": {
"assistant_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My AI Assistant",
"prompt": "Hello, how are you?",
"model": "gpt-3.5-turbo",
"who_speaks_first": "assistant",
"begin_message": "Hello, how are you?",
"assistant_type": "single_prompt",
"avatar": "<string>",
"custom_knowledge_base": "<string>",
"timezone": "<string>",
"voice_stability": 0.5,
"voice_clarity_similarity": 0.5,
"voice_stream_latency_optimization": 2,
"voice_boost": false,
"voice_speed": 0,
"voice_emotion": [],
"call_recording_enabled": true,
"reminder_message_frequency": 1,
"max_reminder_messages": 1,
"post_analysis": "<string>",
"chatbot_logo": "<string>",
"chatbot_accent_color": "<string>",
"chatbot_faq": "<string>",
"chatbot_whitelisted_domains": [
"<string>"
],
"chatbot_begin_message": "<string>",
"tools": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"behavior": 1,
"user": {
"name": "<string>",
"dp": "<string>",
"email": "[email protected]"
},
"voice": {
"voice_id": "<string>",
"name": "<string>",
"avatar": "<string>",
"gender": "<string>",
"demo_audio_url": "<string>",
"is_cloned": true,
"language": "<string>",
"description": "<string>"
}
}
}Update an AI Assistant based on the ID supplied
curl --request PATCH \
--url https://api.puretalk.ai/api/ai-assistants/{assistant_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "<string>",
"voice": 123,
"prompt": "<string>",
"begin_message": "<string>",
"who_speaks_first": "assistant",
"model": "puretalk-plg",
"call_recording_enabled": true,
"assistant_type": "single_prompt",
"avatar": "<string>",
"custom_knowledge_base": "<string>",
"timezone": "<string>",
"reminder_message_frequency": 123,
"max_reminder_messages": 123,
"voice_stability": "<string>",
"voice_clarity_similarity": "<string>",
"voice_stream_latency_optimization": 123,
"voice_boost": false,
"chatbot_logo": "<string>",
"chatbot_accent_color": "<string>",
"chatbot_faq": "<string>"
}
'{
"msg": "<string>",
"err": true,
"results": {
"assistant_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My AI Assistant",
"prompt": "Hello, how are you?",
"model": "gpt-3.5-turbo",
"who_speaks_first": "assistant",
"begin_message": "Hello, how are you?",
"assistant_type": "single_prompt",
"avatar": "<string>",
"custom_knowledge_base": "<string>",
"timezone": "<string>",
"voice_stability": 0.5,
"voice_clarity_similarity": 0.5,
"voice_stream_latency_optimization": 2,
"voice_boost": false,
"voice_speed": 0,
"voice_emotion": [],
"call_recording_enabled": true,
"reminder_message_frequency": 1,
"max_reminder_messages": 1,
"post_analysis": "<string>",
"chatbot_logo": "<string>",
"chatbot_accent_color": "<string>",
"chatbot_faq": "<string>",
"chatbot_whitelisted_domains": [
"<string>"
],
"chatbot_begin_message": "<string>",
"tools": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"behavior": 1,
"user": {
"name": "<string>",
"dp": "<string>",
"email": "[email protected]"
},
"voice": {
"voice_id": "<string>",
"name": "<string>",
"avatar": "<string>",
"gender": "<string>",
"demo_audio_url": "<string>",
"is_cloned": true,
"language": "<string>",
"description": "<string>"
}
}
}Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
ID of AI Assistant to update
assistant puretalk-plg single_prompt, multi_prompt AI Assistant updated
Show child attributes
The ID of the AI Assistant
"123e4567-e89b-12d3-a456-426614174000"
The name of the AI Assistant
"My AI Assistant"
The prompt of the AI Assistant
"Hello, how are you?"
The model of the AI Assistant
"gpt-3.5-turbo"
Who speaks first value of the AI Assistant
assistant, user "assistant"
The begin message of the AI Assistant
"Hello, how are you?"
The assistant type of the AI Assistant
"single_prompt"
The avatar of the AI Assistant
The custom knowledge base of the AI Assistant
The timezone of the AI Assistant
The voice stability of the AI Assistant
0 <= x <= 1The voice clarity similarity of the AI Assistant
0 <= x <= 1The voice stream latency optimization of the AI Assistant
0 <= x <= 5Indicates if voice boost is enabled for the AI Assistant
The voice speed of the AI Assistant
The voice emotion of the AI Assistant
Indicates if call recording is enabled for the AI Assistant
The reminder message frequency of the AI Assistant
x >= 0The maximum reminder messages of the AI Assistant
x >= 0The post analysis of the AI Assistant
The chatbot logo of the AI Assistant
The chatbot accent color of the AI Assistant
The chatbot FAQ of the AI Assistant
The chatbot whitelisted domains of the AI Assistant
The chatbot begin message of the AI Assistant
The tools of the AI Assistant
The created at date of the AI Assistant
The updated at date of the AI Assistant
The behavior of the AI Assistant
x >= 0Show child attributes
The voice id of the user
The name of the voice
The avatar of the voice
The gender of the voice
The demo audio url of the voice
Indicates if the voice is cloned
The language of the voice
The description of the voice
Was this page helpful?