7en.ai

Navigation

agent

Agent ObjectCreate AgentUpdate AgentDelete AgentList All Agents

api reference

IntroductionError handling

agent

Agent ObjectCreate AgentUpdate AgentDelete AgentList All Agents

api reference

IntroductionError handling

Update Agent

Update an existing AI agent with new configuration and knowledge sources. This endpoint allows you to modify the agent's settings, such as its name, description, behavior, and model configuration.

Overview

The Update Agent endpoint enables you to modify an existing AI agent's properties. You can update fields like the agent's name, description, system prompt, appearance, behavior, and model settings to tailor the agent to your evolving needs.

Parameters

Request Body

name

string

Name of the agent. Example: "Innovated Agent"

description

string

Description of the agent's purpose. Example: "A new AI agent ready to be configured."

systemPrompt

string

Custom system prompt for the agent. Example: "You are a helpful AI assistant. Be friendly, professional, and provide accurate information."

appearance

object

Visual appearance settings for the agent.

behavior

object

Behavior and interaction settings for the agent.

model

object

AI model configuration for the agent.

Request Header

Authorization

api key

Api key generated from 7en.i platform. Example: Api-Key 43NKLN3LKN4nlkn

Error Responses

json
{
"error": {
"code": "NOT_FOUND",
"message": "Agent with ID 11 not found.",
"status": 404,
"fields": []
}
}

Best Practices

  • Partial Updates: Only include the fields you want to update in the request body to avoid unintentionally resetting other fields. Use PATCH method to partial update.
    PATCH/v1/agents/{id}
    Request Body
    json
    {
    "appearance": {
    "aiToAiHandoff": true
    }
    }
  • System Prompts: Ensure the system prompt is clear and aligns with the agent's updated purpose.
  • Testing: Test the updated agent thoroughly to verify that changes behave as expected.
  • Rate Limits: Be mindful of the rate limits when updating multiple agents in succession.

Rate Limits

  • 100 requests per minute for free tier
  • 1000 requests per minute for pro tier
  • 10000 requests per minute for enterprise tier

Ready to transform your business?

Start building intelligent AI agents to engage with customers.

← Create Agent
Delete Agent →
PUT/v1/agents/{id}

Request

curl -X PUT 'https://api.7en.ai/v1/agents/11' -H 'Authorization: Api-Key YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"name": "Updated Agent", "description": "An updated AI assistant", "systemPrompt": "You are an updated AI assistant. Provide concise and accurate responses."}'

Response

{
"status": "success",
"data": {
"id": 11,
"owner": 21,
"name": "Updated Agent",
"description": "An updated AI assistant",
"status": "Active",
"appearance": {
"avatar": {
"src": "",
"type": "default"
},
"position": "bottom-right",
"buttonText": "",
"fontFamily": "Inter",
"chatbotName": "Updated Assistant",
"primaryColor": "#3b82f6",
"secondaryColor": "#ffffff",
"welcomeMessage": ""
},
"behavior": {
"guidelines": {
"dos": [],
"donts": []
},
"suggestions": [],
"showOnMobile": true,
"aiToAiHandoff": false,
"autoShowAfter": 30,
"expertHandoff": true,
"collectVisitorData": true,
"continuousLearning": false,
"conversationMemory": false,
"multilingualSupport": false
},
"knowledge_sources": [],
"model": {
"temperature": 0.7,
"token_length": 16000,
"response_model": "gpt-3.5-turbo"
},
"agentType": "general_assistant",
"systemPrompt": "You are an updated AI assistant. Provide concise and accurate responses.",
"created_at": "2025-08-04T11:18:38.934851Z",
"updated_at": "2025-08-18T09:31:00.000000Z"
}
}