Skip to main content
POST
Create WhatsApp AI Agent

Authorizations

string
required
Enter your ContactSwing JWT Bearer token.

Request Body

string
required
Assistant display name. Example: "My WhatsApp AI Agent"
string
required
Assistant type: "WHATSAPP"
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
required
WhatsApp number ID. Example: "650175178190170"
string
Knowledge base ID

WhatsApp Settings

string[]
Linked action IDs []
object
Idle timeout in hours. Example: 24
integer
Idle timeout in hours. Example: 24
integer
Maximum messages per conversation. Example: 10
string
WhatsApp greeting message

Response

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