POST
/
ai-assistants
curl --request POST \
  --url https://api.puretalk.ai/api/ai-assistants \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "who_speaks_first": "assistant",
  "name": "<string>",
  "voice": 123,
  "prompt": "<string>",
  "model": "puretalk-plg",
  "begin_message": "<string>",
  "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": {
    "id": 123,
    "assistant_id": "<string>",
    "name": "<string>",
    "prompt": "<string>",
    "model": "<string>",
    "who_speaks_first": "<string>",
    "begin_message": "<string>",
    "assistant_type": "<string>",
    "avatar": "<string>",
    "custom_knowledge_base": "<string>",
    "timezone": "<string>",
    "voice_stability": 123,
    "voice_clarity_similarity": 123,
    "voice_stream_latency_optimization": 123,
    "voice_boost": true,
    "call_recording_enabled": true,
    "reminder_message_frequency": 123,
    "max_reminder_messages": 123,
    "chatbot_logo": "<string>",
    "chatbot_accent_color": "<string>",
    "chatbot_faq": "<string>",
    "tools": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "user": 123,
    "voice": 123
  }
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
name
string
required
voice
integer
required
prompt
string
required
begin_message
string
required
model
enum<string>
default:puretalk-plg
Available options:
puretalk-plg
who_speaks_first
enum<string>
default:assistant
Available options:
assistant
call_recording_enabled
boolean
default:true
assistant_type
enum<string>
default:single_prompt
Available options:
single_prompt,
multi_prompt
avatar
string
custom_knowledge_base
string
timezone
string
reminder_message_frequency
integer
max_reminder_messages
integer
voice_stability
string
voice_clarity_similarity
string
voice_stream_latency_optimization
integer
voice_boost
boolean
default:false
chatbot_accent_color
string
chatbot_faq
string

Response

201
application/json
AI Assistant created
msg
string
err
boolean
results
object