Create an agent
Creates an agent/workflow for the caller’s tenant. The body is a discriminated union on autonomy_type (CHAINED_ACTIONS / AGENTIC / CONVERSATIONAL). The contract is intent-shaped: callers describe entity_type + ticket_conditions / time_entry_conditions, and the server constructs the canonical actions array (prepending FIND_ENTITIES for CHAINED_ACTIONS / AGENTIC; the trailing AGENTIC action for AGENTIC; an empty list for CONVERSATIONAL). For CHAINED_ACTIONS, actions is the pipeline AFTER the auto-prepended FIND_ENTITIES — including FIND_ENTITIES yourself returns 400. CONVERSATIONAL agents accept audience (MSP | END_USER, default MSP) — set END_USER to provision a user-facing chat agent that can bind an END_USER channel; it must then hold only END_USER tools. Audience is set at create and is immutable. They also accept access (ALL_USERS | ADMINS_ONLY | SPECIFIC_USERS, default ALL_USERS), controlling which of the MSP’s own users may message the agent (set in the dashboard thereafter). created_by_user is derived from the authenticated identity — not accepted in the body. Toolboxes that supply external-API credentials are rejected (400 validation_error); configure those in the dashboard. Discover the shapes via the /schemas/* endpoints.
Authorizations
Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).
Body
- CreateChainedActionsAgent
- CreateAgenticAgent
- CreateConversationalAgent
A fixed-pipeline workflow — the server runs FIND_ENTITIES (built from entity_type
and the conditions below) followed by actions in order. Triggered by a PSA event
(trigger_type=TRIGGERED + callback_settings) or on a schedule (trigger_type=SCHEDULED
schedule).
SCHEDULED, TRIGGERED, NONE "CHAINED_ACTIONS"ticket, project_ticket, task, scheduled_entry, time_entry, project, company, contact, resource, contract, opportunity, none, configuration, note, team, role, audit_trail, appointment, servicecall, contract_service, company_location, product ENABLED, DISABLED, DELETED 