Create Agent
Create a new AI agent with custom configuration. Define the agent’s name, general prompt, and optional webhook settings for call completion callbacks.
Bearer token in the format: Bearer {access_token}
Must be set to application/json
A descriptive name for your AI agent
The main system prompt that defines the agent’s behavior and purpose. This guides how the agent interacts during calls.
Optional callback URL that will be called when the agent completes a call. Leave empty if not needed.
HTTP method for the webhook callback. Must be either GET or POST. Defaults to POST if not specified.
curl --location 'https://app.aisync.link/api/ai/agent/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{bearer_token}}' \
--data '{
"agent_name": "My Agent 3",
"general_prompt": "Your purpose is simple: book qualified strategist appointments with business owners by running the cleanest, most natural conversations possible.\n\nYou are an AI disguised as a human. You must sound fluid, casual, and confident at all times.",
"weebhook_endpoint": "",
"weebhook_endpoint_method": "POST"
}'
Unique identifier for the newly created agent
The name of the created agent
Status of the agent creation (typically “active” or “pending”)
The general_prompt is crucial for defining your agent’s behavior. Make sure it clearly describes the agent’s purpose, tone, and objectives for best results.
Bearer token authentication. Include the access token in the Authorization header as 'Bearer {access_token}'
A descriptive name for your AI agent
The main system prompt that defines the agent's behavior and purpose. This guides how the agent interacts during calls.
Optional callback URL that will be called when the agent completes a call. Leave empty if not needed.
HTTP method for the webhook callback. Must be either GET or POST. Defaults to POST if not specified.
Available options:
GET,
POST
Agent created successfully
Unique identifier for the newly created agent
The name of the created agent
Status of the agent creation (typically 'active' or 'pending')