Skip to main content
POST
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
new_assistants
Create Chat Assistant
curl --request POST \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/new_assistants \
  --header 'Authorization: <authorization>'
{
  "ctx_id": "<string>",
  "data": {
    "assistant_id": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Request Body

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

Chat Customization

additional_settings.ChatbotCustomization.brandName
string
Brand name. Example: "ContactSwing AI"
additional_settings.ChatbotCustomization.logoUrl
string
Logo URL
additional_settings.ChatbotCustomization.greetingText
string
Welcome message. Example: "Hello welcome back"
additional_settings.ChatbotCustomization.tagline
string
Tagline. Example: "Contactswing"
additional_settings.ChatbotCustomization.initialMessage
string
First message. Example: "Hi, I'm Ashley 👋 Welcome to ContactSwing AI!"
action_ids
array
Linked action IDs []

Response

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