Skip to main content
Creates a new agent for the authenticated project.
Calls POST /v1/agent

Options

string
required
Name of the agent.
string
Description of the agent.
string
Custom identifier for the agent. Must be unique in the project.
string
The industry the agent serves. One of HEALTHCARE, FINANCIAL_SERVICES, INSURANCE, DEBT_COLLECTION, RETAIL, TRAVEL_AND_HOSPITALITY, TELECOMMUNICATIONS, TECHNOLOGY, PUBLIC_SECTOR, UTILITIES, LOGISTICS, AUTOMOTIVE, HOME_SERVICES, RESTAURANTS, EDUCATION, RECRUITING_AND_STAFFING, OTHER
string
The industry in your own words, when none of the listed ones fits. Use it with industry OTHER.
string
The business’s website. Simulation setup reads it.
array
What the agent handles. Simulation setup tests each one. One of APPOINTMENT_BOOKING, FAQ, IDENTITY_VERIFICATION, ACCOUNT_MANAGEMENT, BILLING_AND_PAYMENTS, ORDER_MANAGEMENT, TROUBLESHOOTING, CALL_ROUTING, LEAD_QUALIFICATION, COLLECTIONS, OUTBOUND_CALLING Repeatable.
string
The agent’s system prompt.
object
The phone number or connection Roark calls to test the agent.
string
Phone number in E.164 format (e.g., +12345678900). Optional when direction is OUTGOING, for an agent that calls from numbers you do not know up front.
string
Environment name (default: production).
string
required
Call direction: INCOMING, OUTGOING, or INCOMING_AND_OUTGOING. One of INCOMING, OUTGOING, INCOMING_AND_OUTGOING
string
Outbound dial type: NONE or HTTP_REQUEST (default: NONE). One of NONE, HTTP_REQUEST
string
ID of the HTTP request definition for outbound dialing (required when outboundDialType is HTTP_REQUEST).

Example

Every command also takes the global options and sets one of the exit codes.