Update Agent
Updates a Play.ai Agent.
Updates the properties of the agent with the specified ID.
Authorizations
Your secret API key from PlayAI, formatted as Bearer YOUR_SECRET_API_KEY
.
Headers
application/json
application/json
Path Parameters
The agent's ID.
"f0gZrOKBKL7veJ6o1M"
Body
Response
The unique ID for each agent.
"f0gZrOKBKL7veJ6o1M"
The unique ID for a PlayAI Voice.
"s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json"
The agent's name
250
"My Agent"
The agent's description
500
"My agent is the best agent"
The visibility of the agent
public
, private
If true, the agent will only respond with information from the critical knowledge field.
The voice speed, i.e. how fast is the agent's speech. Possible values are: 0.5
, 0.6
, 0.7
, 0.8
, 0.9
, 1.0
, 1.1
, 1.2
, 1.3
, 1.4
, 1.5
.
1.2
The voice model to use for the agent's speech. Possible values are: PlayHT2.0-turbo
, Play3.0-mini
, and PlayDialog
.
"PlayHT2.0-turbo"
The greeting message for the agent
250
"Hello! How can I help you today?"
The greeting message for the agent
10000
"You are an agent for a company that sells widgets. A customer calls in and asks about the different types of widgets you sell. You should respond by telling the customer about the different types of widgets you sell and how they differ from each other.\n"
The agent's critical knowledge
20000
"We have been in business for 20 years and have sold over 1 million widgets. Currently, we have 3 types of widgets: the standard widget, the deluxe widget, and the super widget. The standard widget is our most popular widget and is the most affordable. The deluxe widget is our mid-range widget and is popular with customers who want a little more than the standard widget. The super widget is our top of the line widget and is popular with customers who want the best of the best."
Leave this field out or null
if you don't want the agent to use your custom LLM API. See Bring Your Own LLM for more info.
The URL of the agent's avatar photo
"https://api.play.ai/api/v1/agents/as43fed1477465823255f9/avatar-photo"
The unique ID for each action.
Was this page helpful?