> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.signalcore.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.signalcore.ai/_mcp/server.

# Create Agent

POST https://api.signalcore.ai/api/v1/agents
Content-Type: application/json

Create a new AI agent. Only the `name` field is required — all other configuration can be added later.

Reference: https://docs.signalcore.ai/api-reference/agents/create-agent

## Authentication

- `X-API-Key` header (required) — Your API key from [Dashboard → Settings → API Keys](https://dashboard.signalcore.ai/settings)

## Servers

- `https://api.signalcore.ai/api/v1` (Producción, default)
- `https://staging.api.signalcore.ai/api/v1` (Staging)

## Request

### Body (application/json)

This endpoint expects an AgentCreate.

- `name` (string, required) — Display name for the agent
- `agent_config` (AgentConfig, optional) — Core agent configuration
- `channel_profiles` (ChannelProfiles, optional) — Channel-specific configurations. Enable and configure each channel independently.

## Response

### 201

Agent created

- `id` (string, optional) — Unique agent identifier
- `business_id` (string, optional) — Business this agent belongs to
- `name` (string, optional) — Display name for the agent
- `agent_config` (AgentConfig, optional) — Core agent configuration
- `channel_profiles` (ChannelProfiles, optional) — Channel-specific configurations. Enable and configure each channel independently.
- `created_at` (datetime, optional)

## Errors

### 402 Payment Required Error

Insufficient balance

- `detail` (string, optional) — Error message

### 403 Forbidden Error

Plan limit exceeded (maximum agents reached)

- `detail` (string, optional) — Error message

## Types

### AgentConfig

Core agent configuration

- `prompt` (string, optional) — Main system prompt defining the agent's personality, knowledge, and behavior. This is the foundation of how your agent communicates.
- `objective` (string, optional) — The specific goal the agent should achieve in conversations. Used to track conversion success.
- `extract_values` (list of string, optional) — Values to automatically extract from conversations. The AI infers the value based on the key name.
- `webhook_url` (string, optional) — URL to receive webhook events when conversations end or objectives are met
- `model` (string, optional, default: openai/gpt-4.1) — OpenRouter model ID for the analysis service
- `timezone` (string, optional, default: UTC) — Agent's timezone in IANA format. Used for scheduling and time-aware responses.

### ChannelProfiles

Channel-specific configurations. Enable and configure each channel independently.

- `vapi_profile` (VoiceProfile, optional) — Voice channel configuration (VAPI)
- `twilio_sms_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `whatsapp_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `instagram_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `gmail_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `outlook_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `imessage_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)

### VoiceProfile

Voice channel configuration (VAPI)

- `enabled` (boolean, optional, default: false) — Whether voice calls are enabled for this agent
- `channel_specific_prompt` (string, optional) — Additional prompt instructions specific to voice conversations
- `first_message` (string, optional) — The first message the agent speaks when initiating a call
- `voice` (VoiceProfileVoice, optional) — Voice configuration
- `background_sound` (enum, optional, default: office) — Background ambient sound during calls
  - Allowed values: `office`, `none`
- `tools` (list of string, optional) — Array of voice tool IDs enabled for this channel
- `model` (string, optional, default: gpt-4.1) — AI model for voice (without provider prefix)
- `provider` (enum, optional, default: openai) — AI model provider
  - Allowed values: `openai`, `anthropic`, `google`

### TextChannelProfile

Text-based channel configuration (SMS, WhatsApp, Instagram, Email)

- `enabled` (boolean, optional, default: false) — Whether this channel is enabled
- `channel_specific_prompt` (string, optional) — Additional prompt instructions specific to this channel
- `first_message` (string, optional) — The first message sent when initiating outbound contact
- `split_messages` (boolean, optional, default: true) — Split long messages into multiple shorter messages (more human-like)
- `tools` (list of string, optional) — Array of MCP tool IDs enabled for this channel
- `model` (string, optional, default: openai/gpt-4.1) — OpenRouter model ID
- `selective_handling` (TextChannelProfileSelectiveHandling, optional) — Only respond to messages matching certain criteria

### VoiceProfileVoice

Voice configuration

- `id` (string, optional) — Voice ID
- `provider` (enum, optional, default: vapi) — Voice provider
  - Allowed values: `vapi`, `elevenlabs`, `openai`

### TextChannelProfileSelectiveHandling

Only respond to messages matching certain criteria

- `enabled` (boolean, optional, default: false)
- `keywords` (list of string, optional) — Keywords that trigger automatic handling
- `prompt` (string, optional) — LLM prompt to determine if message should be handled

## Examples

**Request**

```json
{
  "name": "Enterprise Sales Agent",
  "agent_config": {
    "prompt": "You are a helpful sales assistant for Acme Corp. Be professional and friendly.",
    "objective": "Book a demo call with qualified leads",
    "extract_values": [
      "company_name",
      "budget",
      "timeline"
    ],
    "timezone": "America/New_York"
  }
}
```

**Response**

```json
{
  "id": "agt_9f8b7c6d5e4a3b2c1d0e",
  "business_id": "biz_12345acme7890",
  "name": "Enterprise Sales Agent",
  "agent_config": {
    "prompt": "You are a helpful sales assistant for Acme Corp. Be professional, friendly, and focus on understanding customer needs before suggesting solutions.",
    "objective": "Book a demo call with qualified leads",
    "extract_values": [
      "company_name",
      "budget",
      "timeline",
      "decision_maker"
    ],
    "webhook_url": "https://webhooks.acmecorp.com/signalcore",
    "model": "openai/gpt-4.1",
    "timezone": "America/New_York"
  },
  "channel_profiles": {
    "vapi_profile": {
      "enabled": false,
      "channel_specific_prompt": "Please maintain a professional tone and confirm appointment details clearly.",
      "first_message": "Hi, this is Sarah from Acme Corp. Is this a good time to talk?",
      "voice": {
        "id": "Savannah",
        "provider": "vapi"
      },
      "background_sound": "office",
      "tools": [
        "call_recorder"
      ],
      "model": "gpt-4.1",
      "provider": "openai"
    },
    "twilio_sms_profile": {
      "enabled": false,
      "channel_specific_prompt": "Use concise and polite language tailored for SMS.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "sms_scheduler"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "schedule"
        ],
        "prompt": "Determine if the incoming SMS message is related to sales inquiries."
      }
    },
    "whatsapp_profile": {
      "enabled": false,
      "channel_specific_prompt": "Respond promptly and professionally on WhatsApp.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "whatsapp_auto_reply"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "schedule"
        ],
        "prompt": "Filter WhatsApp messages to handle only sales-related queries."
      }
    },
    "instagram_profile": {
      "enabled": false,
      "channel_specific_prompt": "Maintain a friendly and engaging tone for Instagram messages.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "instagram_dm_manager"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "schedule"
        ],
        "prompt": "Identify Instagram messages related to product demos or pricing."
      }
    },
    "gmail_profile": {
      "enabled": false,
      "channel_specific_prompt": "Compose professional and clear email responses.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "email_template_manager"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "schedule"
        ],
        "prompt": "Filter emails to respond only to sales-related topics."
      }
    },
    "outlook_profile": {
      "enabled": false,
      "channel_specific_prompt": "Use formal language suitable for Outlook email communications.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "email_template_manager"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "schedule"
        ],
        "prompt": "Identify Outlook emails related to sales inquiries."
      }
    },
    "imessage_profile": {
      "enabled": false,
      "channel_specific_prompt": "Keep iMessage responses friendly and concise.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "imessage_auto_responder"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "schedule"
        ],
        "prompt": "Determine if iMessage content is related to sales follow-up."
      }
    }
  },
  "created_at": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.signalcore.ai/api/v1/agents"

payload = {
    "name": "Enterprise Sales Agent",
    "agent_config": {
        "prompt": "You are a helpful sales assistant for Acme Corp. Be professional and friendly.",
        "objective": "Book a demo call with qualified leads",
        "extract_values": ["company_name", "budget", "timeline"],
        "timezone": "America/New_York"
    }
}
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.signalcore.ai/api/v1/agents';
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"name":"Enterprise Sales Agent","agent_config":{"prompt":"You are a helpful sales assistant for Acme Corp. Be professional and friendly.","objective":"Book a demo call with qualified leads","extract_values":["company_name","budget","timeline"],"timezone":"America/New_York"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.signalcore.ai/api/v1/agents"

	payload := strings.NewReader("{\n  \"name\": \"Enterprise Sales Agent\",\n  \"agent_config\": {\n    \"prompt\": \"You are a helpful sales assistant for Acme Corp. Be professional and friendly.\",\n    \"objective\": \"Book a demo call with qualified leads\",\n    \"extract_values\": [\n      \"company_name\",\n      \"budget\",\n      \"timeline\"\n    ],\n    \"timezone\": \"America/New_York\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.signalcore.ai/api/v1/agents")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Enterprise Sales Agent\",\n  \"agent_config\": {\n    \"prompt\": \"You are a helpful sales assistant for Acme Corp. Be professional and friendly.\",\n    \"objective\": \"Book a demo call with qualified leads\",\n    \"extract_values\": [\n      \"company_name\",\n      \"budget\",\n      \"timeline\"\n    ],\n    \"timezone\": \"America/New_York\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.signalcore.ai/api/v1/agents")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Enterprise Sales Agent\",\n  \"agent_config\": {\n    \"prompt\": \"You are a helpful sales assistant for Acme Corp. Be professional and friendly.\",\n    \"objective\": \"Book a demo call with qualified leads\",\n    \"extract_values\": [\n      \"company_name\",\n      \"budget\",\n      \"timeline\"\n    ],\n    \"timezone\": \"America/New_York\"\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.signalcore.ai/api/v1/agents', [
  'body' => '{
  "name": "Enterprise Sales Agent",
  "agent_config": {
    "prompt": "You are a helpful sales assistant for Acme Corp. Be professional and friendly.",
    "objective": "Book a demo call with qualified leads",
    "extract_values": [
      "company_name",
      "budget",
      "timeline"
    ],
    "timezone": "America/New_York"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.signalcore.ai/api/v1/agents");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Enterprise Sales Agent\",\n  \"agent_config\": {\n    \"prompt\": \"You are a helpful sales assistant for Acme Corp. Be professional and friendly.\",\n    \"objective\": \"Book a demo call with qualified leads\",\n    \"extract_values\": [\n      \"company_name\",\n      \"budget\",\n      \"timeline\"\n    ],\n    \"timezone\": \"America/New_York\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Enterprise Sales Agent",
  "agent_config": [
    "prompt": "You are a helpful sales assistant for Acme Corp. Be professional and friendly.",
    "objective": "Book a demo call with qualified leads",
    "extract_values": ["company_name", "budget", "timeline"],
    "timezone": "America/New_York"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.signalcore.ai/api/v1/agents")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```