POST
/
agents

Body

application/json

The data with which an agent is created.

model
enum<string>
required

The underlying model that powers the agent.

Available options:
anthropic.claude-v1,
anthropic.claude-v1-100k,
anthropic.claude-instant-v1,
anthropic.claude-instant-v1-100k,
openai.gpt-4,
openai.gpt-3.5-turbo,
openai.gpt-3.5-turbo-16k
description
string | null

The description of the agent, intended for developers' reference.

display_description
string | null

The agent's public-facing description, meant to be visible to your users.

display_name
string | null

The agent's display name, intended to serve as the public-facing name visible to your users.

greeting_message
string | null
<p>The message sent by the agent to initiate an interaction. This property supports <a href="https://handlebarsjs.com/guide/#what-is-handlebars">Handlebars</a> template format where you have access to the <code>user</code> and <code>agent</code> parameters. You can use these parameters to add context and personalize the message.</p>
initial_turn
enum<string> | null

Indicates who sends the first message in each interaction. Defaults to "user".

Available options:
user,
agent
name
string | null

The name of the agent, designed to be visible to developers for internal reference purposes.

openai
object | null

The configuration that is applied to OpenAI models.

system_message
string | null
<p>The system prompt that will be injected at the beginning of each interaction. This property supports <a href="https://handlebarsjs.com/guide/#what-is-handlebars">Handlebars</a> template format where you have access to the <code>user</code> and <code>agent</code> parameters. You can use these parameters to provide rich context to the agent and steer it in a specific direction.</p>

Response

200 - application/json
<p>An _agent_ is an AI entity that exists to serve your project's users. Agents are intelligent, configurable and context-aware and can interact with your users via a messaging system enabled by the Proficient API.</p>
id
string
required

The unique identifier of the agent

object
enum<string>
required

The type of the Agent object

Available options:
agent
active
boolean
required

Whether the agent is currently active. If not, users will not be able to interact with the agent.

description
string
required

The description of the agent, intended for developers' reference.

display_description
string
required

The agent's public-facing description, meant to be visible to your users.

display_name
string
required

The agent's display name, intended to serve as the public-facing name visible to your users.

name
string
required

The name of the agent, designed to be visible to developers for internal reference purposes.

created_at
integer
required

The time at which the object was created, measured in milliseconds since the Unix epoch

updated_at
integer
required

The time at which the object was last updated, measured in milliseconds since the Unix epoch