Skip to content

Create AI agent

POST
/api/v1/workspaces/{workspace_id}/ai_agents

Creates a new AI agent.

workspace_id
required
integer

Workspace ID

object
name
required
string
company_name
string
company_overview
string
tone
string
guidelines
string

Successful

object
id
required
integer
Example
12345
name
required
string
Example
My AI Agent
company_name
required
string
nullable
Example
My Company
company_overview
required
string
nullable
Example
My Company is a company that makes widgets.
tone
required
string
nullable
Example
My Company is a company that makes widgets.
guidelines
required
string
nullable
Example
My Company is a company that makes widgets.
brand_guidelines_document_name
required
string
nullable
Example
My Company Brand Guidelines
created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z
updated_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Unprocessable Entity

object
message
required
string
Example
Failed to save
errors
required
object
key
additional properties
Array<string>
Example
{
"errors": {
"username": [
"Username is required.",
"Username must be unique."
],
"email": [
"Invalid email format."
]
}
}