Create an agent
Creates a draft agent, empty or from a template, up to 10 per workspace. Fields sent with it are saved over the template. Main links, notes, and files are added in the app. Needs the admin role. Needs AI Agent on the workspace's account; without it the endpoint answers 404 feature.unavailable.
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
application/json- body
template?stringStart from sales, customer service, or creator.
"sales""support""creator"locale?stringThe language of the template's wording. en by default.
"en""id"name?string1 <= length <= 60channels?array<>The channels the agent answers DMs on.
items <= 50personalityId?|A saved personality from GET /v1/ai-agents/library/personalities. While set, it replaces persona; null uses the default style.
knowledgeBaseIds?array<string>Knowledge from GET /v1/ai-agents/library/knowledge the agent reads before it answers. Its website sources are the only links the agent may send. Replaced whole.
items <= 5persona?How the agent sounds.
instructions?What the agent is for and the rules it follows.
dmPolicy?Which DMs the agent answers.
sendMode?stringfull_ai sends every answer. guarded (the default) sends answers it is sure of and holds the rest in Needs attention: confidence below 0.75 and hand-offs. approval holds every answer for a person to send.
"full_ai""guarded""approval"spamPolicy?What the agent treats as spam. A DM judged spam gets no answer.
trigger?The new agent, in draft.
application/json- response
data?curl -X POST 'https://api.eksis.io/v1/ai-agents' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "string", "status": "draft", "template": "sales", "name": "string", "channels": [ { "channelId": "string", "dm": true, "story": true } ], "personalityId": "string", "knowledgeBaseIds": [ "string" ], "persona": { "greeting": "string", "language": "match", "styles": [ "friendly" ], "vary": true, "variation": "low", "noRepeat": true, "varyDm": true, "disclose": true }, "instructions": { "role": "string", "goals": [ "support" ], "extraGoal": "string", "dms": { "maxSentences": 1, "answerThenLink": true, "stopWhenNotInterested": true, "extra": "string" }, "never": { "discounts": true, "refunds": true, "unreleased": true, "competitors": true, "politicsReligion": true, "extra": "string" }, "handoff": { "complaint": true, "refundPayment": true, "technical": true, "askHuman": true, "unsure": true, "extra": "string" }, "handoffReply": "string", "custom": [ { "title": "string", "body": "string" } ] }, "dmPolicy": { "mode": "auto", "keywords": [ "string" ], "followersOnly": true }, "sendMode": "full_ai", "spamPolicy": { "enabled": true, "rules": { "scam": true, "promo": true, "links": true, "abusive": true, "repeated": true, "aiJudge": true }, "repeatLimit": 2, "alwaysSpam": [ "string" ], "neverSpam": [ "string" ], "blockTag": true }, "trigger": { "filters": { "emojiOnly": true, "ignoreTags": [ "string" ] }, "rhythm": { "delay": "random_30_90", "maxPerHour": 1, "overLimit": "queue", "hours": "always", "days": [ 1 ], "from": "08:00", "to": "08:00", "outside": "defer" } }, "accounts": [ { "channelId": "string", "platform": "instagram", "username": "string", "replies": { "dm": true, "story": true }, "usedByAgent": "string", "answeredFirstBy": [ { "automationId": "string", "name": "string", "trigger": "dm_received" } ] } ], "links": [ { "id": "string", "name": "string", "url": "string", "status": "pending", "error": "needs_login", "readAt": "2019-08-24T14:15:22Z" } ], "knowledge": [ { "id": "string", "kind": "note", "title": "string", "fileName": "string", "status": "ok", "error": "string" } ], "library": { "personalities": [ { "id": "string", "name": "string", "description": "string" } ], "knowledgeBases": [ { "id": "string", "name": "string", "description": "string", "sources": 0, "chars": 0 } ] }, "canSwitchOn": true, "blocker": "string", "enabledAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}