Skip to main content
POST
Create Chat AI Agent

Authorizations

string
required
Enter your ContactSwing JWT Bearer token.

Request Body

string
required
Assistant display name. Example: "My Chat Assistant"
string
required
Assistant type: "CHAT"
string
required
LLM model: "cw-llm-1"
string[]
API key configuration []
string
required
Detailed agent instructions and restaurant ordering guidelines
object
Agent prompts with agent and goal fields
string
string
string
Knowledge base ID

Chat Customization

object
Brand name. Example: "ContactSwing AI"
object
Brand name. Example: "ContactSwing AI"
string
Brand name. Example: "ContactSwing AI"
string
Logo URL
string
Welcome message. Example: "Hello welcome back"
string
Tagline. Example: "Contactswing"
string
First message. Example: "Hi, I'm Ashley 👋 Welcome to ContactSwing AI!"
string
string
Example: Just checking in — are you still there?
array
Linked action IDs []

Response

201 Created - Chat assistant created successfully
string
Request context ID
object
string
New assistant ID
string
Assistant name
400 Bad Request - Invalid chat configuration 401 Unauthorized - Invalid token