Update Agent
curl --request PATCH \
--url https://api.example.com/v1/agents/{agent_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"definition": {
"pii_banner": "",
"pii_info": "",
"pii_lock": false,
"pii_anonimization": [
{
"value": "PERSON",
"label": "Name"
},
{
"value": "EMAIL_ADDRESS",
"label": "Email"
},
{
"value": "PHONE_NUMBER",
"label": "Phone Number"
},
{
"value": "CREDIT_CARD",
"label": "Credit Card"
}
],
"divider1": "",
"guardrail_info": "",
"guardrail_lock": false,
"violence_and_hate": "Off",
"sexual_content": "Off",
"guns_and_weapons": "Off",
"suicide": "Off",
"crime": "Off",
"toxicity": "Off",
"bias": "Off",
"profanity": "Off",
"divider2": "",
"guardrail_action": {
"value": "flag",
"label": "Flag with warning but proceed"
},
"guardrail_action_replace": "",
"guardrail_action_human": "",
"divider3": "",
"prompt_defense": "",
"prompt_lock": false,
"jailbreak": false,
"prompt_injection": false,
"context_leak": false,
"auto_model_pick": false,
"auto_model_preference": "cost",
"model": [
"preset:cost"
],
"parameter_preset": "default",
"intro": "",
"basic_params_section": "",
"max_tokens": 64000,
"temperature": 0.7,
"top_p": 1,
"top_k": 40,
"timeout": 120,
"divider_7": "",
"penalty_section": "",
"presence_penalty": 0.3,
"frequency_penalty": 0.6,
"stop_sequences": [],
"divider_8": "",
"reasoning_section": "",
"enable_reasoning": true,
"reasoning_effort": "Low",
"divider": "",
"reliability_section": "",
"max_retries_per_model": 3,
"retry_on_status_codes": [
429,
500,
502,
503,
504
],
"datacenter_fallback": true,
"agentflow_enabled": false,
"usage_limits_section": "",
"usage_limits_maximum_request": 1000,
"usage_limits_maximum_tokens": 2000000,
"usage_limits_max_messages": 100,
"usage_limits_agent_timeout": 120,
"divider_11": "",
"tool_calling_section": "",
"parallel_tool_calls": true,
"visuals_section": "",
"hide_reasoning": false,
"hide_workflow_progress": false,
"tool_display_preset": "execution",
"minimal_caret_only": true,
"minimal_tool_message": "Thinking...",
"citation_style": "text",
"chat_input_placeholder": "Ask me anything...",
"divider_visuals": "",
"conversation_title_section": "",
"agent_title_mode": "generate",
"divider_conversation_title": "",
"agentflow_section": "",
"hide_state_transitions": false,
"divider_13": "",
"agent_flow_id": "<string>",
"is_coworker": true,
"preset_selector": "<string>",
"introductory_message": "<string>",
"persona": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tone": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"extra_instructions": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tools": [],
"mcp_servers": [],
"workflows": [],
"knowledge_bases": [],
"coworkers": [],
"base_tools": [
{
"title": "Human in the Loop",
"description": "Human in the Loop",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "PersonStanding",
"tool_display_message_start": "Escalating to human operator...",
"tool_display_message_end": "Escalated to human operator",
"visible": true,
"icon": "PersonStanding",
"bg_color": "blue.50",
"icon_color": "blue.500",
"chatflow_usable": true,
"deprecated": false,
"type": "human_in_the_loop",
"has_timeout": false,
"handover_message": "You are now talking to the co-worker."
},
{
"title": "Web Research",
"description": "Search the web for information",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Globe",
"tool_display_message_start": "Searching the web...",
"tool_display_message_end": "Searched the web",
"visible": true,
"icon": "Globe",
"bg_color": "#D1FADF",
"icon_color": "#027A48",
"chatflow_usable": true,
"deprecated": false,
"type": "web_research"
},
{
"title": "Attach File",
"description": "Attach a file to the conversation",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Cog",
"tool_display_message_start": "Running tool...",
"tool_display_message_end": "Tool complete",
"visible": true,
"icon": "Paperclip",
"bg_color": "#EFF6FF",
"icon_color": "#2B7FFF",
"chatflow_usable": false,
"deprecated": false,
"type": "attach_file"
},
{
"title": "Memory",
"description": "Persistent memory during a single conversation",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Brain",
"tool_display_message_start": "Accessing memory...",
"tool_display_message_end": "Memory operation complete",
"visible": true,
"icon": "Brain",
"bg_color": "#f5f3ff",
"icon_color": "#8e51ff",
"chatflow_usable": true,
"deprecated": false,
"type": "memory"
},
{
"title": "File System",
"description": "Access and read files in the current session",
"category": "QuickAction",
"enabled": true,
"tool_display_icon": "FolderOpen",
"tool_display_message_start": "Accessing file system...",
"tool_display_message_end": "File system operation complete",
"visible": false,
"icon": "FolderOpen",
"bg_color": "#fef3c7",
"icon_color": "#f59e0b",
"chatflow_usable": true,
"deprecated": false,
"type": "filesystem"
},
{
"title": "Code Execution",
"description": "Run Python code in a sandboxed environment",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Terminal",
"tool_display_message_start": "Running code...",
"tool_display_message_end": "Code executed",
"visible": true,
"icon": "Terminal",
"bg_color": "#fef9c3",
"icon_color": "#ca8a04",
"chatflow_usable": true,
"deprecated": false,
"type": "code_execution",
"timeout": 120
}
],
"actions": [],
"chatflow_tools": []
},
"visible": true,
"image_url": "<string>",
"app_settings_v2": {
"is_active": false,
"version_id": "<string>",
"extra_settings": {},
"published_at": "2023-11-07T05:31:56Z"
},
"is_app_published": true
}
'import requests
url = "https://api.example.com/v1/agents/{agent_id}"
payload = {
"name": "<string>",
"description": "<string>",
"definition": {
"pii_banner": "",
"pii_info": "",
"pii_lock": False,
"pii_anonimization": [
{
"value": "PERSON",
"label": "Name"
},
{
"value": "EMAIL_ADDRESS",
"label": "Email"
},
{
"value": "PHONE_NUMBER",
"label": "Phone Number"
},
{
"value": "CREDIT_CARD",
"label": "Credit Card"
}
],
"divider1": "",
"guardrail_info": "",
"guardrail_lock": False,
"violence_and_hate": "Off",
"sexual_content": "Off",
"guns_and_weapons": "Off",
"suicide": "Off",
"crime": "Off",
"toxicity": "Off",
"bias": "Off",
"profanity": "Off",
"divider2": "",
"guardrail_action": {
"value": "flag",
"label": "Flag with warning but proceed"
},
"guardrail_action_replace": "",
"guardrail_action_human": "",
"divider3": "",
"prompt_defense": "",
"prompt_lock": False,
"jailbreak": False,
"prompt_injection": False,
"context_leak": False,
"auto_model_pick": False,
"auto_model_preference": "cost",
"model": ["preset:cost"],
"parameter_preset": "default",
"intro": "",
"basic_params_section": "",
"max_tokens": 64000,
"temperature": 0.7,
"top_p": 1,
"top_k": 40,
"timeout": 120,
"divider_7": "",
"penalty_section": "",
"presence_penalty": 0.3,
"frequency_penalty": 0.6,
"stop_sequences": [],
"divider_8": "",
"reasoning_section": "",
"enable_reasoning": True,
"reasoning_effort": "Low",
"divider": "",
"reliability_section": "",
"max_retries_per_model": 3,
"retry_on_status_codes": [429, 500, 502, 503, 504],
"datacenter_fallback": True,
"agentflow_enabled": False,
"usage_limits_section": "",
"usage_limits_maximum_request": 1000,
"usage_limits_maximum_tokens": 2000000,
"usage_limits_max_messages": 100,
"usage_limits_agent_timeout": 120,
"divider_11": "",
"tool_calling_section": "",
"parallel_tool_calls": True,
"visuals_section": "",
"hide_reasoning": False,
"hide_workflow_progress": False,
"tool_display_preset": "execution",
"minimal_caret_only": True,
"minimal_tool_message": "Thinking...",
"citation_style": "text",
"chat_input_placeholder": "Ask me anything...",
"divider_visuals": "",
"conversation_title_section": "",
"agent_title_mode": "generate",
"divider_conversation_title": "",
"agentflow_section": "",
"hide_state_transitions": False,
"divider_13": "",
"agent_flow_id": "<string>",
"is_coworker": True,
"preset_selector": "<string>",
"introductory_message": "<string>",
"persona": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tone": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"extra_instructions": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tools": [],
"mcp_servers": [],
"workflows": [],
"knowledge_bases": [],
"coworkers": [],
"base_tools": [
{
"title": "Human in the Loop",
"description": "Human in the Loop",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "PersonStanding",
"tool_display_message_start": "Escalating to human operator...",
"tool_display_message_end": "Escalated to human operator",
"visible": True,
"icon": "PersonStanding",
"bg_color": "blue.50",
"icon_color": "blue.500",
"chatflow_usable": True,
"deprecated": False,
"type": "human_in_the_loop",
"has_timeout": False,
"handover_message": "You are now talking to the co-worker."
},
{
"title": "Web Research",
"description": "Search the web for information",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Globe",
"tool_display_message_start": "Searching the web...",
"tool_display_message_end": "Searched the web",
"visible": True,
"icon": "Globe",
"bg_color": "#D1FADF",
"icon_color": "#027A48",
"chatflow_usable": True,
"deprecated": False,
"type": "web_research"
},
{
"title": "Attach File",
"description": "Attach a file to the conversation",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Cog",
"tool_display_message_start": "Running tool...",
"tool_display_message_end": "Tool complete",
"visible": True,
"icon": "Paperclip",
"bg_color": "#EFF6FF",
"icon_color": "#2B7FFF",
"chatflow_usable": False,
"deprecated": False,
"type": "attach_file"
},
{
"title": "Memory",
"description": "Persistent memory during a single conversation",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Brain",
"tool_display_message_start": "Accessing memory...",
"tool_display_message_end": "Memory operation complete",
"visible": True,
"icon": "Brain",
"bg_color": "#f5f3ff",
"icon_color": "#8e51ff",
"chatflow_usable": True,
"deprecated": False,
"type": "memory"
},
{
"title": "File System",
"description": "Access and read files in the current session",
"category": "QuickAction",
"enabled": True,
"tool_display_icon": "FolderOpen",
"tool_display_message_start": "Accessing file system...",
"tool_display_message_end": "File system operation complete",
"visible": False,
"icon": "FolderOpen",
"bg_color": "#fef3c7",
"icon_color": "#f59e0b",
"chatflow_usable": True,
"deprecated": False,
"type": "filesystem"
},
{
"title": "Code Execution",
"description": "Run Python code in a sandboxed environment",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Terminal",
"tool_display_message_start": "Running code...",
"tool_display_message_end": "Code executed",
"visible": True,
"icon": "Terminal",
"bg_color": "#fef9c3",
"icon_color": "#ca8a04",
"chatflow_usable": True,
"deprecated": False,
"type": "code_execution",
"timeout": 120
}
],
"actions": [],
"chatflow_tools": []
},
"visible": True,
"image_url": "<string>",
"app_settings_v2": {
"is_active": False,
"version_id": "<string>",
"extra_settings": {},
"published_at": "2023-11-07T05:31:56Z"
},
"is_app_published": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
definition: {
pii_banner: '',
pii_info: '',
pii_lock: false,
pii_anonimization: [
{value: 'PERSON', label: 'Name'},
{value: 'EMAIL_ADDRESS', label: 'Email'},
{value: 'PHONE_NUMBER', label: 'Phone Number'},
{value: 'CREDIT_CARD', label: 'Credit Card'}
],
divider1: '',
guardrail_info: '',
guardrail_lock: false,
violence_and_hate: 'Off',
sexual_content: 'Off',
guns_and_weapons: 'Off',
suicide: 'Off',
crime: 'Off',
toxicity: 'Off',
bias: 'Off',
profanity: 'Off',
divider2: '',
guardrail_action: {value: 'flag', label: 'Flag with warning but proceed'},
guardrail_action_replace: '',
guardrail_action_human: '',
divider3: '',
prompt_defense: '',
prompt_lock: false,
jailbreak: false,
prompt_injection: false,
context_leak: false,
auto_model_pick: false,
auto_model_preference: 'cost',
model: ['preset:cost'],
parameter_preset: 'default',
intro: '',
basic_params_section: '',
max_tokens: 64000,
temperature: 0.7,
top_p: 1,
top_k: 40,
timeout: 120,
divider_7: '',
penalty_section: '',
presence_penalty: 0.3,
frequency_penalty: 0.6,
stop_sequences: [],
divider_8: '',
reasoning_section: '',
enable_reasoning: true,
reasoning_effort: 'Low',
divider: '',
reliability_section: '',
max_retries_per_model: 3,
retry_on_status_codes: [429, 500, 502, 503, 504],
datacenter_fallback: true,
agentflow_enabled: false,
usage_limits_section: '',
usage_limits_maximum_request: 1000,
usage_limits_maximum_tokens: 2000000,
usage_limits_max_messages: 100,
usage_limits_agent_timeout: 120,
divider_11: '',
tool_calling_section: '',
parallel_tool_calls: true,
visuals_section: '',
hide_reasoning: false,
hide_workflow_progress: false,
tool_display_preset: 'execution',
minimal_caret_only: true,
minimal_tool_message: 'Thinking...',
citation_style: 'text',
chat_input_placeholder: 'Ask me anything...',
divider_visuals: '',
conversation_title_section: '',
agent_title_mode: 'generate',
divider_conversation_title: '',
agentflow_section: '',
hide_state_transitions: false,
divider_13: '',
agent_flow_id: '<string>',
is_coworker: true,
preset_selector: '<string>',
introductory_message: '<string>',
persona: [{text: '<string>', definition: {type: 'doc', content: []}}],
tone: [{text: '<string>', definition: {type: 'doc', content: []}}],
extra_instructions: [{text: '<string>', definition: {type: 'doc', content: []}}],
tools: [],
mcp_servers: [],
workflows: [],
knowledge_bases: [],
coworkers: [],
base_tools: [
{
title: 'Human in the Loop',
description: 'Human in the Loop',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'PersonStanding',
tool_display_message_start: 'Escalating to human operator...',
tool_display_message_end: 'Escalated to human operator',
visible: true,
icon: 'PersonStanding',
bg_color: 'blue.50',
icon_color: 'blue.500',
chatflow_usable: true,
deprecated: false,
type: 'human_in_the_loop',
has_timeout: false,
handover_message: 'You are now talking to the co-worker.'
},
{
title: 'Web Research',
description: 'Search the web for information',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Globe',
tool_display_message_start: 'Searching the web...',
tool_display_message_end: 'Searched the web',
visible: true,
icon: 'Globe',
bg_color: '#D1FADF',
icon_color: '#027A48',
chatflow_usable: true,
deprecated: false,
type: 'web_research'
},
{
title: 'Attach File',
description: 'Attach a file to the conversation',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Cog',
tool_display_message_start: 'Running tool...',
tool_display_message_end: 'Tool complete',
visible: true,
icon: 'Paperclip',
bg_color: '#EFF6FF',
icon_color: '#2B7FFF',
chatflow_usable: false,
deprecated: false,
type: 'attach_file'
},
{
title: 'Memory',
description: 'Persistent memory during a single conversation',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Brain',
tool_display_message_start: 'Accessing memory...',
tool_display_message_end: 'Memory operation complete',
visible: true,
icon: 'Brain',
bg_color: '#f5f3ff',
icon_color: '#8e51ff',
chatflow_usable: true,
deprecated: false,
type: 'memory'
},
{
title: 'File System',
description: 'Access and read files in the current session',
category: 'QuickAction',
enabled: true,
tool_display_icon: 'FolderOpen',
tool_display_message_start: 'Accessing file system...',
tool_display_message_end: 'File system operation complete',
visible: false,
icon: 'FolderOpen',
bg_color: '#fef3c7',
icon_color: '#f59e0b',
chatflow_usable: true,
deprecated: false,
type: 'filesystem'
},
{
title: 'Code Execution',
description: 'Run Python code in a sandboxed environment',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Terminal',
tool_display_message_start: 'Running code...',
tool_display_message_end: 'Code executed',
visible: true,
icon: 'Terminal',
bg_color: '#fef9c3',
icon_color: '#ca8a04',
chatflow_usable: true,
deprecated: false,
type: 'code_execution',
timeout: 120
}
],
actions: [],
chatflow_tools: []
},
visible: true,
image_url: '<string>',
app_settings_v2: {
is_active: false,
version_id: '<string>',
extra_settings: {},
published_at: '2023-11-07T05:31:56Z'
},
is_app_published: true
})
};
fetch('https://api.example.com/v1/agents/{agent_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/agents/{agent_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'definition' => [
'pii_banner' => '',
'pii_info' => '',
'pii_lock' => false,
'pii_anonimization' => [
[
'value' => 'PERSON',
'label' => 'Name'
],
[
'value' => 'EMAIL_ADDRESS',
'label' => 'Email'
],
[
'value' => 'PHONE_NUMBER',
'label' => 'Phone Number'
],
[
'value' => 'CREDIT_CARD',
'label' => 'Credit Card'
]
],
'divider1' => '',
'guardrail_info' => '',
'guardrail_lock' => false,
'violence_and_hate' => 'Off',
'sexual_content' => 'Off',
'guns_and_weapons' => 'Off',
'suicide' => 'Off',
'crime' => 'Off',
'toxicity' => 'Off',
'bias' => 'Off',
'profanity' => 'Off',
'divider2' => '',
'guardrail_action' => [
'value' => 'flag',
'label' => 'Flag with warning but proceed'
],
'guardrail_action_replace' => '',
'guardrail_action_human' => '',
'divider3' => '',
'prompt_defense' => '',
'prompt_lock' => false,
'jailbreak' => false,
'prompt_injection' => false,
'context_leak' => false,
'auto_model_pick' => false,
'auto_model_preference' => 'cost',
'model' => [
'preset:cost'
],
'parameter_preset' => 'default',
'intro' => '',
'basic_params_section' => '',
'max_tokens' => 64000,
'temperature' => 0.7,
'top_p' => 1,
'top_k' => 40,
'timeout' => 120,
'divider_7' => '',
'penalty_section' => '',
'presence_penalty' => 0.3,
'frequency_penalty' => 0.6,
'stop_sequences' => [
],
'divider_8' => '',
'reasoning_section' => '',
'enable_reasoning' => true,
'reasoning_effort' => 'Low',
'divider' => '',
'reliability_section' => '',
'max_retries_per_model' => 3,
'retry_on_status_codes' => [
429,
500,
502,
503,
504
],
'datacenter_fallback' => true,
'agentflow_enabled' => false,
'usage_limits_section' => '',
'usage_limits_maximum_request' => 1000,
'usage_limits_maximum_tokens' => 2000000,
'usage_limits_max_messages' => 100,
'usage_limits_agent_timeout' => 120,
'divider_11' => '',
'tool_calling_section' => '',
'parallel_tool_calls' => true,
'visuals_section' => '',
'hide_reasoning' => false,
'hide_workflow_progress' => false,
'tool_display_preset' => 'execution',
'minimal_caret_only' => true,
'minimal_tool_message' => 'Thinking...',
'citation_style' => 'text',
'chat_input_placeholder' => 'Ask me anything...',
'divider_visuals' => '',
'conversation_title_section' => '',
'agent_title_mode' => 'generate',
'divider_conversation_title' => '',
'agentflow_section' => '',
'hide_state_transitions' => false,
'divider_13' => '',
'agent_flow_id' => '<string>',
'is_coworker' => true,
'preset_selector' => '<string>',
'introductory_message' => '<string>',
'persona' => [
[
'text' => '<string>',
'definition' => [
'type' => 'doc',
'content' => [
]
]
]
],
'tone' => [
[
'text' => '<string>',
'definition' => [
'type' => 'doc',
'content' => [
]
]
]
],
'extra_instructions' => [
[
'text' => '<string>',
'definition' => [
'type' => 'doc',
'content' => [
]
]
]
],
'tools' => [
],
'mcp_servers' => [
],
'workflows' => [
],
'knowledge_bases' => [
],
'coworkers' => [
],
'base_tools' => [
[
'title' => 'Human in the Loop',
'description' => 'Human in the Loop',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'PersonStanding',
'tool_display_message_start' => 'Escalating to human operator...',
'tool_display_message_end' => 'Escalated to human operator',
'visible' => true,
'icon' => 'PersonStanding',
'bg_color' => 'blue.50',
'icon_color' => 'blue.500',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'human_in_the_loop',
'has_timeout' => false,
'handover_message' => 'You are now talking to the co-worker.'
],
[
'title' => 'Web Research',
'description' => 'Search the web for information',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Globe',
'tool_display_message_start' => 'Searching the web...',
'tool_display_message_end' => 'Searched the web',
'visible' => true,
'icon' => 'Globe',
'bg_color' => '#D1FADF',
'icon_color' => '#027A48',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'web_research'
],
[
'title' => 'Attach File',
'description' => 'Attach a file to the conversation',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Cog',
'tool_display_message_start' => 'Running tool...',
'tool_display_message_end' => 'Tool complete',
'visible' => true,
'icon' => 'Paperclip',
'bg_color' => '#EFF6FF',
'icon_color' => '#2B7FFF',
'chatflow_usable' => false,
'deprecated' => false,
'type' => 'attach_file'
],
[
'title' => 'Memory',
'description' => 'Persistent memory during a single conversation',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Brain',
'tool_display_message_start' => 'Accessing memory...',
'tool_display_message_end' => 'Memory operation complete',
'visible' => true,
'icon' => 'Brain',
'bg_color' => '#f5f3ff',
'icon_color' => '#8e51ff',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'memory'
],
[
'title' => 'File System',
'description' => 'Access and read files in the current session',
'category' => 'QuickAction',
'enabled' => true,
'tool_display_icon' => 'FolderOpen',
'tool_display_message_start' => 'Accessing file system...',
'tool_display_message_end' => 'File system operation complete',
'visible' => false,
'icon' => 'FolderOpen',
'bg_color' => '#fef3c7',
'icon_color' => '#f59e0b',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'filesystem'
],
[
'title' => 'Code Execution',
'description' => 'Run Python code in a sandboxed environment',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Terminal',
'tool_display_message_start' => 'Running code...',
'tool_display_message_end' => 'Code executed',
'visible' => true,
'icon' => 'Terminal',
'bg_color' => '#fef9c3',
'icon_color' => '#ca8a04',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'code_execution',
'timeout' => 120
]
],
'actions' => [
],
'chatflow_tools' => [
]
],
'visible' => true,
'image_url' => '<string>',
'app_settings_v2' => [
'is_active' => false,
'version_id' => '<string>',
'extra_settings' => [
],
'published_at' => '2023-11-07T05:31:56Z'
],
'is_app_published' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/agents/{agent_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"definition\": {\n \"pii_banner\": \"\",\n \"pii_info\": \"\",\n \"pii_lock\": false,\n \"pii_anonimization\": [\n {\n \"value\": \"PERSON\",\n \"label\": \"Name\"\n },\n {\n \"value\": \"EMAIL_ADDRESS\",\n \"label\": \"Email\"\n },\n {\n \"value\": \"PHONE_NUMBER\",\n \"label\": \"Phone Number\"\n },\n {\n \"value\": \"CREDIT_CARD\",\n \"label\": \"Credit Card\"\n }\n ],\n \"divider1\": \"\",\n \"guardrail_info\": \"\",\n \"guardrail_lock\": false,\n \"violence_and_hate\": \"Off\",\n \"sexual_content\": \"Off\",\n \"guns_and_weapons\": \"Off\",\n \"suicide\": \"Off\",\n \"crime\": \"Off\",\n \"toxicity\": \"Off\",\n \"bias\": \"Off\",\n \"profanity\": \"Off\",\n \"divider2\": \"\",\n \"guardrail_action\": {\n \"value\": \"flag\",\n \"label\": \"Flag with warning but proceed\"\n },\n \"guardrail_action_replace\": \"\",\n \"guardrail_action_human\": \"\",\n \"divider3\": \"\",\n \"prompt_defense\": \"\",\n \"prompt_lock\": false,\n \"jailbreak\": false,\n \"prompt_injection\": false,\n \"context_leak\": false,\n \"auto_model_pick\": false,\n \"auto_model_preference\": \"cost\",\n \"model\": [\n \"preset:cost\"\n ],\n \"parameter_preset\": \"default\",\n \"intro\": \"\",\n \"basic_params_section\": \"\",\n \"max_tokens\": 64000,\n \"temperature\": 0.7,\n \"top_p\": 1,\n \"top_k\": 40,\n \"timeout\": 120,\n \"divider_7\": \"\",\n \"penalty_section\": \"\",\n \"presence_penalty\": 0.3,\n \"frequency_penalty\": 0.6,\n \"stop_sequences\": [],\n \"divider_8\": \"\",\n \"reasoning_section\": \"\",\n \"enable_reasoning\": true,\n \"reasoning_effort\": \"Low\",\n \"divider\": \"\",\n \"reliability_section\": \"\",\n \"max_retries_per_model\": 3,\n \"retry_on_status_codes\": [\n 429,\n 500,\n 502,\n 503,\n 504\n ],\n \"datacenter_fallback\": true,\n \"agentflow_enabled\": false,\n \"usage_limits_section\": \"\",\n \"usage_limits_maximum_request\": 1000,\n \"usage_limits_maximum_tokens\": 2000000,\n \"usage_limits_max_messages\": 100,\n \"usage_limits_agent_timeout\": 120,\n \"divider_11\": \"\",\n \"tool_calling_section\": \"\",\n \"parallel_tool_calls\": true,\n \"visuals_section\": \"\",\n \"hide_reasoning\": false,\n \"hide_workflow_progress\": false,\n \"tool_display_preset\": \"execution\",\n \"minimal_caret_only\": true,\n \"minimal_tool_message\": \"Thinking...\",\n \"citation_style\": \"text\",\n \"chat_input_placeholder\": \"Ask me anything...\",\n \"divider_visuals\": \"\",\n \"conversation_title_section\": \"\",\n \"agent_title_mode\": \"generate\",\n \"divider_conversation_title\": \"\",\n \"agentflow_section\": \"\",\n \"hide_state_transitions\": false,\n \"divider_13\": \"\",\n \"agent_flow_id\": \"<string>\",\n \"is_coworker\": true,\n \"preset_selector\": \"<string>\",\n \"introductory_message\": \"<string>\",\n \"persona\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tone\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"extra_instructions\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tools\": [],\n \"mcp_servers\": [],\n \"workflows\": [],\n \"knowledge_bases\": [],\n \"coworkers\": [],\n \"base_tools\": [\n {\n \"title\": \"Human in the Loop\",\n \"description\": \"Human in the Loop\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"PersonStanding\",\n \"tool_display_message_start\": \"Escalating to human operator...\",\n \"tool_display_message_end\": \"Escalated to human operator\",\n \"visible\": true,\n \"icon\": \"PersonStanding\",\n \"bg_color\": \"blue.50\",\n \"icon_color\": \"blue.500\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"human_in_the_loop\",\n \"has_timeout\": false,\n \"handover_message\": \"You are now talking to the co-worker.\"\n },\n {\n \"title\": \"Web Research\",\n \"description\": \"Search the web for information\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Globe\",\n \"tool_display_message_start\": \"Searching the web...\",\n \"tool_display_message_end\": \"Searched the web\",\n \"visible\": true,\n \"icon\": \"Globe\",\n \"bg_color\": \"#D1FADF\",\n \"icon_color\": \"#027A48\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"web_research\"\n },\n {\n \"title\": \"Attach File\",\n \"description\": \"Attach a file to the conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Cog\",\n \"tool_display_message_start\": \"Running tool...\",\n \"tool_display_message_end\": \"Tool complete\",\n \"visible\": true,\n \"icon\": \"Paperclip\",\n \"bg_color\": \"#EFF6FF\",\n \"icon_color\": \"#2B7FFF\",\n \"chatflow_usable\": false,\n \"deprecated\": false,\n \"type\": \"attach_file\"\n },\n {\n \"title\": \"Memory\",\n \"description\": \"Persistent memory during a single conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Brain\",\n \"tool_display_message_start\": \"Accessing memory...\",\n \"tool_display_message_end\": \"Memory operation complete\",\n \"visible\": true,\n \"icon\": \"Brain\",\n \"bg_color\": \"#f5f3ff\",\n \"icon_color\": \"#8e51ff\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"memory\"\n },\n {\n \"title\": \"File System\",\n \"description\": \"Access and read files in the current session\",\n \"category\": \"QuickAction\",\n \"enabled\": true,\n \"tool_display_icon\": \"FolderOpen\",\n \"tool_display_message_start\": \"Accessing file system...\",\n \"tool_display_message_end\": \"File system operation complete\",\n \"visible\": false,\n \"icon\": \"FolderOpen\",\n \"bg_color\": \"#fef3c7\",\n \"icon_color\": \"#f59e0b\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"filesystem\"\n },\n {\n \"title\": \"Code Execution\",\n \"description\": \"Run Python code in a sandboxed environment\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Terminal\",\n \"tool_display_message_start\": \"Running code...\",\n \"tool_display_message_end\": \"Code executed\",\n \"visible\": true,\n \"icon\": \"Terminal\",\n \"bg_color\": \"#fef9c3\",\n \"icon_color\": \"#ca8a04\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"code_execution\",\n \"timeout\": 120\n }\n ],\n \"actions\": [],\n \"chatflow_tools\": []\n },\n \"visible\": true,\n \"image_url\": \"<string>\",\n \"app_settings_v2\": {\n \"is_active\": false,\n \"version_id\": \"<string>\",\n \"extra_settings\": {},\n \"published_at\": \"2023-11-07T05:31:56Z\"\n },\n \"is_app_published\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v1/agents/{agent_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"definition\": {\n \"pii_banner\": \"\",\n \"pii_info\": \"\",\n \"pii_lock\": false,\n \"pii_anonimization\": [\n {\n \"value\": \"PERSON\",\n \"label\": \"Name\"\n },\n {\n \"value\": \"EMAIL_ADDRESS\",\n \"label\": \"Email\"\n },\n {\n \"value\": \"PHONE_NUMBER\",\n \"label\": \"Phone Number\"\n },\n {\n \"value\": \"CREDIT_CARD\",\n \"label\": \"Credit Card\"\n }\n ],\n \"divider1\": \"\",\n \"guardrail_info\": \"\",\n \"guardrail_lock\": false,\n \"violence_and_hate\": \"Off\",\n \"sexual_content\": \"Off\",\n \"guns_and_weapons\": \"Off\",\n \"suicide\": \"Off\",\n \"crime\": \"Off\",\n \"toxicity\": \"Off\",\n \"bias\": \"Off\",\n \"profanity\": \"Off\",\n \"divider2\": \"\",\n \"guardrail_action\": {\n \"value\": \"flag\",\n \"label\": \"Flag with warning but proceed\"\n },\n \"guardrail_action_replace\": \"\",\n \"guardrail_action_human\": \"\",\n \"divider3\": \"\",\n \"prompt_defense\": \"\",\n \"prompt_lock\": false,\n \"jailbreak\": false,\n \"prompt_injection\": false,\n \"context_leak\": false,\n \"auto_model_pick\": false,\n \"auto_model_preference\": \"cost\",\n \"model\": [\n \"preset:cost\"\n ],\n \"parameter_preset\": \"default\",\n \"intro\": \"\",\n \"basic_params_section\": \"\",\n \"max_tokens\": 64000,\n \"temperature\": 0.7,\n \"top_p\": 1,\n \"top_k\": 40,\n \"timeout\": 120,\n \"divider_7\": \"\",\n \"penalty_section\": \"\",\n \"presence_penalty\": 0.3,\n \"frequency_penalty\": 0.6,\n \"stop_sequences\": [],\n \"divider_8\": \"\",\n \"reasoning_section\": \"\",\n \"enable_reasoning\": true,\n \"reasoning_effort\": \"Low\",\n \"divider\": \"\",\n \"reliability_section\": \"\",\n \"max_retries_per_model\": 3,\n \"retry_on_status_codes\": [\n 429,\n 500,\n 502,\n 503,\n 504\n ],\n \"datacenter_fallback\": true,\n \"agentflow_enabled\": false,\n \"usage_limits_section\": \"\",\n \"usage_limits_maximum_request\": 1000,\n \"usage_limits_maximum_tokens\": 2000000,\n \"usage_limits_max_messages\": 100,\n \"usage_limits_agent_timeout\": 120,\n \"divider_11\": \"\",\n \"tool_calling_section\": \"\",\n \"parallel_tool_calls\": true,\n \"visuals_section\": \"\",\n \"hide_reasoning\": false,\n \"hide_workflow_progress\": false,\n \"tool_display_preset\": \"execution\",\n \"minimal_caret_only\": true,\n \"minimal_tool_message\": \"Thinking...\",\n \"citation_style\": \"text\",\n \"chat_input_placeholder\": \"Ask me anything...\",\n \"divider_visuals\": \"\",\n \"conversation_title_section\": \"\",\n \"agent_title_mode\": \"generate\",\n \"divider_conversation_title\": \"\",\n \"agentflow_section\": \"\",\n \"hide_state_transitions\": false,\n \"divider_13\": \"\",\n \"agent_flow_id\": \"<string>\",\n \"is_coworker\": true,\n \"preset_selector\": \"<string>\",\n \"introductory_message\": \"<string>\",\n \"persona\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tone\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"extra_instructions\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tools\": [],\n \"mcp_servers\": [],\n \"workflows\": [],\n \"knowledge_bases\": [],\n \"coworkers\": [],\n \"base_tools\": [\n {\n \"title\": \"Human in the Loop\",\n \"description\": \"Human in the Loop\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"PersonStanding\",\n \"tool_display_message_start\": \"Escalating to human operator...\",\n \"tool_display_message_end\": \"Escalated to human operator\",\n \"visible\": true,\n \"icon\": \"PersonStanding\",\n \"bg_color\": \"blue.50\",\n \"icon_color\": \"blue.500\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"human_in_the_loop\",\n \"has_timeout\": false,\n \"handover_message\": \"You are now talking to the co-worker.\"\n },\n {\n \"title\": \"Web Research\",\n \"description\": \"Search the web for information\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Globe\",\n \"tool_display_message_start\": \"Searching the web...\",\n \"tool_display_message_end\": \"Searched the web\",\n \"visible\": true,\n \"icon\": \"Globe\",\n \"bg_color\": \"#D1FADF\",\n \"icon_color\": \"#027A48\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"web_research\"\n },\n {\n \"title\": \"Attach File\",\n \"description\": \"Attach a file to the conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Cog\",\n \"tool_display_message_start\": \"Running tool...\",\n \"tool_display_message_end\": \"Tool complete\",\n \"visible\": true,\n \"icon\": \"Paperclip\",\n \"bg_color\": \"#EFF6FF\",\n \"icon_color\": \"#2B7FFF\",\n \"chatflow_usable\": false,\n \"deprecated\": false,\n \"type\": \"attach_file\"\n },\n {\n \"title\": \"Memory\",\n \"description\": \"Persistent memory during a single conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Brain\",\n \"tool_display_message_start\": \"Accessing memory...\",\n \"tool_display_message_end\": \"Memory operation complete\",\n \"visible\": true,\n \"icon\": \"Brain\",\n \"bg_color\": \"#f5f3ff\",\n \"icon_color\": \"#8e51ff\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"memory\"\n },\n {\n \"title\": \"File System\",\n \"description\": \"Access and read files in the current session\",\n \"category\": \"QuickAction\",\n \"enabled\": true,\n \"tool_display_icon\": \"FolderOpen\",\n \"tool_display_message_start\": \"Accessing file system...\",\n \"tool_display_message_end\": \"File system operation complete\",\n \"visible\": false,\n \"icon\": \"FolderOpen\",\n \"bg_color\": \"#fef3c7\",\n \"icon_color\": \"#f59e0b\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"filesystem\"\n },\n {\n \"title\": \"Code Execution\",\n \"description\": \"Run Python code in a sandboxed environment\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Terminal\",\n \"tool_display_message_start\": \"Running code...\",\n \"tool_display_message_end\": \"Code executed\",\n \"visible\": true,\n \"icon\": \"Terminal\",\n \"bg_color\": \"#fef9c3\",\n \"icon_color\": \"#ca8a04\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"code_execution\",\n \"timeout\": 120\n }\n ],\n \"actions\": [],\n \"chatflow_tools\": []\n },\n \"visible\": true,\n \"image_url\": \"<string>\",\n \"app_settings_v2\": {\n \"is_active\": false,\n \"version_id\": \"<string>\",\n \"extra_settings\": {},\n \"published_at\": \"2023-11-07T05:31:56Z\"\n },\n \"is_app_published\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/agents/{agent_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"definition\": {\n \"pii_banner\": \"\",\n \"pii_info\": \"\",\n \"pii_lock\": false,\n \"pii_anonimization\": [\n {\n \"value\": \"PERSON\",\n \"label\": \"Name\"\n },\n {\n \"value\": \"EMAIL_ADDRESS\",\n \"label\": \"Email\"\n },\n {\n \"value\": \"PHONE_NUMBER\",\n \"label\": \"Phone Number\"\n },\n {\n \"value\": \"CREDIT_CARD\",\n \"label\": \"Credit Card\"\n }\n ],\n \"divider1\": \"\",\n \"guardrail_info\": \"\",\n \"guardrail_lock\": false,\n \"violence_and_hate\": \"Off\",\n \"sexual_content\": \"Off\",\n \"guns_and_weapons\": \"Off\",\n \"suicide\": \"Off\",\n \"crime\": \"Off\",\n \"toxicity\": \"Off\",\n \"bias\": \"Off\",\n \"profanity\": \"Off\",\n \"divider2\": \"\",\n \"guardrail_action\": {\n \"value\": \"flag\",\n \"label\": \"Flag with warning but proceed\"\n },\n \"guardrail_action_replace\": \"\",\n \"guardrail_action_human\": \"\",\n \"divider3\": \"\",\n \"prompt_defense\": \"\",\n \"prompt_lock\": false,\n \"jailbreak\": false,\n \"prompt_injection\": false,\n \"context_leak\": false,\n \"auto_model_pick\": false,\n \"auto_model_preference\": \"cost\",\n \"model\": [\n \"preset:cost\"\n ],\n \"parameter_preset\": \"default\",\n \"intro\": \"\",\n \"basic_params_section\": \"\",\n \"max_tokens\": 64000,\n \"temperature\": 0.7,\n \"top_p\": 1,\n \"top_k\": 40,\n \"timeout\": 120,\n \"divider_7\": \"\",\n \"penalty_section\": \"\",\n \"presence_penalty\": 0.3,\n \"frequency_penalty\": 0.6,\n \"stop_sequences\": [],\n \"divider_8\": \"\",\n \"reasoning_section\": \"\",\n \"enable_reasoning\": true,\n \"reasoning_effort\": \"Low\",\n \"divider\": \"\",\n \"reliability_section\": \"\",\n \"max_retries_per_model\": 3,\n \"retry_on_status_codes\": [\n 429,\n 500,\n 502,\n 503,\n 504\n ],\n \"datacenter_fallback\": true,\n \"agentflow_enabled\": false,\n \"usage_limits_section\": \"\",\n \"usage_limits_maximum_request\": 1000,\n \"usage_limits_maximum_tokens\": 2000000,\n \"usage_limits_max_messages\": 100,\n \"usage_limits_agent_timeout\": 120,\n \"divider_11\": \"\",\n \"tool_calling_section\": \"\",\n \"parallel_tool_calls\": true,\n \"visuals_section\": \"\",\n \"hide_reasoning\": false,\n \"hide_workflow_progress\": false,\n \"tool_display_preset\": \"execution\",\n \"minimal_caret_only\": true,\n \"minimal_tool_message\": \"Thinking...\",\n \"citation_style\": \"text\",\n \"chat_input_placeholder\": \"Ask me anything...\",\n \"divider_visuals\": \"\",\n \"conversation_title_section\": \"\",\n \"agent_title_mode\": \"generate\",\n \"divider_conversation_title\": \"\",\n \"agentflow_section\": \"\",\n \"hide_state_transitions\": false,\n \"divider_13\": \"\",\n \"agent_flow_id\": \"<string>\",\n \"is_coworker\": true,\n \"preset_selector\": \"<string>\",\n \"introductory_message\": \"<string>\",\n \"persona\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tone\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"extra_instructions\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tools\": [],\n \"mcp_servers\": [],\n \"workflows\": [],\n \"knowledge_bases\": [],\n \"coworkers\": [],\n \"base_tools\": [\n {\n \"title\": \"Human in the Loop\",\n \"description\": \"Human in the Loop\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"PersonStanding\",\n \"tool_display_message_start\": \"Escalating to human operator...\",\n \"tool_display_message_end\": \"Escalated to human operator\",\n \"visible\": true,\n \"icon\": \"PersonStanding\",\n \"bg_color\": \"blue.50\",\n \"icon_color\": \"blue.500\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"human_in_the_loop\",\n \"has_timeout\": false,\n \"handover_message\": \"You are now talking to the co-worker.\"\n },\n {\n \"title\": \"Web Research\",\n \"description\": \"Search the web for information\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Globe\",\n \"tool_display_message_start\": \"Searching the web...\",\n \"tool_display_message_end\": \"Searched the web\",\n \"visible\": true,\n \"icon\": \"Globe\",\n \"bg_color\": \"#D1FADF\",\n \"icon_color\": \"#027A48\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"web_research\"\n },\n {\n \"title\": \"Attach File\",\n \"description\": \"Attach a file to the conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Cog\",\n \"tool_display_message_start\": \"Running tool...\",\n \"tool_display_message_end\": \"Tool complete\",\n \"visible\": true,\n \"icon\": \"Paperclip\",\n \"bg_color\": \"#EFF6FF\",\n \"icon_color\": \"#2B7FFF\",\n \"chatflow_usable\": false,\n \"deprecated\": false,\n \"type\": \"attach_file\"\n },\n {\n \"title\": \"Memory\",\n \"description\": \"Persistent memory during a single conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Brain\",\n \"tool_display_message_start\": \"Accessing memory...\",\n \"tool_display_message_end\": \"Memory operation complete\",\n \"visible\": true,\n \"icon\": \"Brain\",\n \"bg_color\": \"#f5f3ff\",\n \"icon_color\": \"#8e51ff\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"memory\"\n },\n {\n \"title\": \"File System\",\n \"description\": \"Access and read files in the current session\",\n \"category\": \"QuickAction\",\n \"enabled\": true,\n \"tool_display_icon\": \"FolderOpen\",\n \"tool_display_message_start\": \"Accessing file system...\",\n \"tool_display_message_end\": \"File system operation complete\",\n \"visible\": false,\n \"icon\": \"FolderOpen\",\n \"bg_color\": \"#fef3c7\",\n \"icon_color\": \"#f59e0b\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"filesystem\"\n },\n {\n \"title\": \"Code Execution\",\n \"description\": \"Run Python code in a sandboxed environment\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Terminal\",\n \"tool_display_message_start\": \"Running code...\",\n \"tool_display_message_end\": \"Code executed\",\n \"visible\": true,\n \"icon\": \"Terminal\",\n \"bg_color\": \"#fef9c3\",\n \"icon_color\": \"#ca8a04\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"code_execution\",\n \"timeout\": 120\n }\n ],\n \"actions\": [],\n \"chatflow_tools\": []\n },\n \"visible\": true,\n \"image_url\": \"<string>\",\n \"app_settings_v2\": {\n \"is_active\": false,\n \"version_id\": \"<string>\",\n \"extra_settings\": {},\n \"published_at\": \"2023-11-07T05:31:56Z\"\n },\n \"is_app_published\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"definition": {},
"description": "<string>",
"visible": true,
"image_url": "<string>",
"last_updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"app_settings_v2": {
"is_active": false,
"version_id": "<string>",
"extra_settings": {},
"published_at": "2023-11-07T05:31:56Z"
},
"is_app_published": true,
"allow_public_access": false,
"meta": {
"template_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Agents
Update Agent
Update an existing agent’s properties
PATCH
/
v1
/
agents
/
{agent_id}
Update Agent
curl --request PATCH \
--url https://api.example.com/v1/agents/{agent_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"definition": {
"pii_banner": "",
"pii_info": "",
"pii_lock": false,
"pii_anonimization": [
{
"value": "PERSON",
"label": "Name"
},
{
"value": "EMAIL_ADDRESS",
"label": "Email"
},
{
"value": "PHONE_NUMBER",
"label": "Phone Number"
},
{
"value": "CREDIT_CARD",
"label": "Credit Card"
}
],
"divider1": "",
"guardrail_info": "",
"guardrail_lock": false,
"violence_and_hate": "Off",
"sexual_content": "Off",
"guns_and_weapons": "Off",
"suicide": "Off",
"crime": "Off",
"toxicity": "Off",
"bias": "Off",
"profanity": "Off",
"divider2": "",
"guardrail_action": {
"value": "flag",
"label": "Flag with warning but proceed"
},
"guardrail_action_replace": "",
"guardrail_action_human": "",
"divider3": "",
"prompt_defense": "",
"prompt_lock": false,
"jailbreak": false,
"prompt_injection": false,
"context_leak": false,
"auto_model_pick": false,
"auto_model_preference": "cost",
"model": [
"preset:cost"
],
"parameter_preset": "default",
"intro": "",
"basic_params_section": "",
"max_tokens": 64000,
"temperature": 0.7,
"top_p": 1,
"top_k": 40,
"timeout": 120,
"divider_7": "",
"penalty_section": "",
"presence_penalty": 0.3,
"frequency_penalty": 0.6,
"stop_sequences": [],
"divider_8": "",
"reasoning_section": "",
"enable_reasoning": true,
"reasoning_effort": "Low",
"divider": "",
"reliability_section": "",
"max_retries_per_model": 3,
"retry_on_status_codes": [
429,
500,
502,
503,
504
],
"datacenter_fallback": true,
"agentflow_enabled": false,
"usage_limits_section": "",
"usage_limits_maximum_request": 1000,
"usage_limits_maximum_tokens": 2000000,
"usage_limits_max_messages": 100,
"usage_limits_agent_timeout": 120,
"divider_11": "",
"tool_calling_section": "",
"parallel_tool_calls": true,
"visuals_section": "",
"hide_reasoning": false,
"hide_workflow_progress": false,
"tool_display_preset": "execution",
"minimal_caret_only": true,
"minimal_tool_message": "Thinking...",
"citation_style": "text",
"chat_input_placeholder": "Ask me anything...",
"divider_visuals": "",
"conversation_title_section": "",
"agent_title_mode": "generate",
"divider_conversation_title": "",
"agentflow_section": "",
"hide_state_transitions": false,
"divider_13": "",
"agent_flow_id": "<string>",
"is_coworker": true,
"preset_selector": "<string>",
"introductory_message": "<string>",
"persona": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tone": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"extra_instructions": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tools": [],
"mcp_servers": [],
"workflows": [],
"knowledge_bases": [],
"coworkers": [],
"base_tools": [
{
"title": "Human in the Loop",
"description": "Human in the Loop",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "PersonStanding",
"tool_display_message_start": "Escalating to human operator...",
"tool_display_message_end": "Escalated to human operator",
"visible": true,
"icon": "PersonStanding",
"bg_color": "blue.50",
"icon_color": "blue.500",
"chatflow_usable": true,
"deprecated": false,
"type": "human_in_the_loop",
"has_timeout": false,
"handover_message": "You are now talking to the co-worker."
},
{
"title": "Web Research",
"description": "Search the web for information",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Globe",
"tool_display_message_start": "Searching the web...",
"tool_display_message_end": "Searched the web",
"visible": true,
"icon": "Globe",
"bg_color": "#D1FADF",
"icon_color": "#027A48",
"chatflow_usable": true,
"deprecated": false,
"type": "web_research"
},
{
"title": "Attach File",
"description": "Attach a file to the conversation",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Cog",
"tool_display_message_start": "Running tool...",
"tool_display_message_end": "Tool complete",
"visible": true,
"icon": "Paperclip",
"bg_color": "#EFF6FF",
"icon_color": "#2B7FFF",
"chatflow_usable": false,
"deprecated": false,
"type": "attach_file"
},
{
"title": "Memory",
"description": "Persistent memory during a single conversation",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Brain",
"tool_display_message_start": "Accessing memory...",
"tool_display_message_end": "Memory operation complete",
"visible": true,
"icon": "Brain",
"bg_color": "#f5f3ff",
"icon_color": "#8e51ff",
"chatflow_usable": true,
"deprecated": false,
"type": "memory"
},
{
"title": "File System",
"description": "Access and read files in the current session",
"category": "QuickAction",
"enabled": true,
"tool_display_icon": "FolderOpen",
"tool_display_message_start": "Accessing file system...",
"tool_display_message_end": "File system operation complete",
"visible": false,
"icon": "FolderOpen",
"bg_color": "#fef3c7",
"icon_color": "#f59e0b",
"chatflow_usable": true,
"deprecated": false,
"type": "filesystem"
},
{
"title": "Code Execution",
"description": "Run Python code in a sandboxed environment",
"category": "QuickAction",
"enabled": false,
"tool_display_icon": "Terminal",
"tool_display_message_start": "Running code...",
"tool_display_message_end": "Code executed",
"visible": true,
"icon": "Terminal",
"bg_color": "#fef9c3",
"icon_color": "#ca8a04",
"chatflow_usable": true,
"deprecated": false,
"type": "code_execution",
"timeout": 120
}
],
"actions": [],
"chatflow_tools": []
},
"visible": true,
"image_url": "<string>",
"app_settings_v2": {
"is_active": false,
"version_id": "<string>",
"extra_settings": {},
"published_at": "2023-11-07T05:31:56Z"
},
"is_app_published": true
}
'import requests
url = "https://api.example.com/v1/agents/{agent_id}"
payload = {
"name": "<string>",
"description": "<string>",
"definition": {
"pii_banner": "",
"pii_info": "",
"pii_lock": False,
"pii_anonimization": [
{
"value": "PERSON",
"label": "Name"
},
{
"value": "EMAIL_ADDRESS",
"label": "Email"
},
{
"value": "PHONE_NUMBER",
"label": "Phone Number"
},
{
"value": "CREDIT_CARD",
"label": "Credit Card"
}
],
"divider1": "",
"guardrail_info": "",
"guardrail_lock": False,
"violence_and_hate": "Off",
"sexual_content": "Off",
"guns_and_weapons": "Off",
"suicide": "Off",
"crime": "Off",
"toxicity": "Off",
"bias": "Off",
"profanity": "Off",
"divider2": "",
"guardrail_action": {
"value": "flag",
"label": "Flag with warning but proceed"
},
"guardrail_action_replace": "",
"guardrail_action_human": "",
"divider3": "",
"prompt_defense": "",
"prompt_lock": False,
"jailbreak": False,
"prompt_injection": False,
"context_leak": False,
"auto_model_pick": False,
"auto_model_preference": "cost",
"model": ["preset:cost"],
"parameter_preset": "default",
"intro": "",
"basic_params_section": "",
"max_tokens": 64000,
"temperature": 0.7,
"top_p": 1,
"top_k": 40,
"timeout": 120,
"divider_7": "",
"penalty_section": "",
"presence_penalty": 0.3,
"frequency_penalty": 0.6,
"stop_sequences": [],
"divider_8": "",
"reasoning_section": "",
"enable_reasoning": True,
"reasoning_effort": "Low",
"divider": "",
"reliability_section": "",
"max_retries_per_model": 3,
"retry_on_status_codes": [429, 500, 502, 503, 504],
"datacenter_fallback": True,
"agentflow_enabled": False,
"usage_limits_section": "",
"usage_limits_maximum_request": 1000,
"usage_limits_maximum_tokens": 2000000,
"usage_limits_max_messages": 100,
"usage_limits_agent_timeout": 120,
"divider_11": "",
"tool_calling_section": "",
"parallel_tool_calls": True,
"visuals_section": "",
"hide_reasoning": False,
"hide_workflow_progress": False,
"tool_display_preset": "execution",
"minimal_caret_only": True,
"minimal_tool_message": "Thinking...",
"citation_style": "text",
"chat_input_placeholder": "Ask me anything...",
"divider_visuals": "",
"conversation_title_section": "",
"agent_title_mode": "generate",
"divider_conversation_title": "",
"agentflow_section": "",
"hide_state_transitions": False,
"divider_13": "",
"agent_flow_id": "<string>",
"is_coworker": True,
"preset_selector": "<string>",
"introductory_message": "<string>",
"persona": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tone": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"extra_instructions": [
{
"text": "<string>",
"definition": {
"type": "doc",
"content": []
}
}
],
"tools": [],
"mcp_servers": [],
"workflows": [],
"knowledge_bases": [],
"coworkers": [],
"base_tools": [
{
"title": "Human in the Loop",
"description": "Human in the Loop",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "PersonStanding",
"tool_display_message_start": "Escalating to human operator...",
"tool_display_message_end": "Escalated to human operator",
"visible": True,
"icon": "PersonStanding",
"bg_color": "blue.50",
"icon_color": "blue.500",
"chatflow_usable": True,
"deprecated": False,
"type": "human_in_the_loop",
"has_timeout": False,
"handover_message": "You are now talking to the co-worker."
},
{
"title": "Web Research",
"description": "Search the web for information",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Globe",
"tool_display_message_start": "Searching the web...",
"tool_display_message_end": "Searched the web",
"visible": True,
"icon": "Globe",
"bg_color": "#D1FADF",
"icon_color": "#027A48",
"chatflow_usable": True,
"deprecated": False,
"type": "web_research"
},
{
"title": "Attach File",
"description": "Attach a file to the conversation",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Cog",
"tool_display_message_start": "Running tool...",
"tool_display_message_end": "Tool complete",
"visible": True,
"icon": "Paperclip",
"bg_color": "#EFF6FF",
"icon_color": "#2B7FFF",
"chatflow_usable": False,
"deprecated": False,
"type": "attach_file"
},
{
"title": "Memory",
"description": "Persistent memory during a single conversation",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Brain",
"tool_display_message_start": "Accessing memory...",
"tool_display_message_end": "Memory operation complete",
"visible": True,
"icon": "Brain",
"bg_color": "#f5f3ff",
"icon_color": "#8e51ff",
"chatflow_usable": True,
"deprecated": False,
"type": "memory"
},
{
"title": "File System",
"description": "Access and read files in the current session",
"category": "QuickAction",
"enabled": True,
"tool_display_icon": "FolderOpen",
"tool_display_message_start": "Accessing file system...",
"tool_display_message_end": "File system operation complete",
"visible": False,
"icon": "FolderOpen",
"bg_color": "#fef3c7",
"icon_color": "#f59e0b",
"chatflow_usable": True,
"deprecated": False,
"type": "filesystem"
},
{
"title": "Code Execution",
"description": "Run Python code in a sandboxed environment",
"category": "QuickAction",
"enabled": False,
"tool_display_icon": "Terminal",
"tool_display_message_start": "Running code...",
"tool_display_message_end": "Code executed",
"visible": True,
"icon": "Terminal",
"bg_color": "#fef9c3",
"icon_color": "#ca8a04",
"chatflow_usable": True,
"deprecated": False,
"type": "code_execution",
"timeout": 120
}
],
"actions": [],
"chatflow_tools": []
},
"visible": True,
"image_url": "<string>",
"app_settings_v2": {
"is_active": False,
"version_id": "<string>",
"extra_settings": {},
"published_at": "2023-11-07T05:31:56Z"
},
"is_app_published": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
definition: {
pii_banner: '',
pii_info: '',
pii_lock: false,
pii_anonimization: [
{value: 'PERSON', label: 'Name'},
{value: 'EMAIL_ADDRESS', label: 'Email'},
{value: 'PHONE_NUMBER', label: 'Phone Number'},
{value: 'CREDIT_CARD', label: 'Credit Card'}
],
divider1: '',
guardrail_info: '',
guardrail_lock: false,
violence_and_hate: 'Off',
sexual_content: 'Off',
guns_and_weapons: 'Off',
suicide: 'Off',
crime: 'Off',
toxicity: 'Off',
bias: 'Off',
profanity: 'Off',
divider2: '',
guardrail_action: {value: 'flag', label: 'Flag with warning but proceed'},
guardrail_action_replace: '',
guardrail_action_human: '',
divider3: '',
prompt_defense: '',
prompt_lock: false,
jailbreak: false,
prompt_injection: false,
context_leak: false,
auto_model_pick: false,
auto_model_preference: 'cost',
model: ['preset:cost'],
parameter_preset: 'default',
intro: '',
basic_params_section: '',
max_tokens: 64000,
temperature: 0.7,
top_p: 1,
top_k: 40,
timeout: 120,
divider_7: '',
penalty_section: '',
presence_penalty: 0.3,
frequency_penalty: 0.6,
stop_sequences: [],
divider_8: '',
reasoning_section: '',
enable_reasoning: true,
reasoning_effort: 'Low',
divider: '',
reliability_section: '',
max_retries_per_model: 3,
retry_on_status_codes: [429, 500, 502, 503, 504],
datacenter_fallback: true,
agentflow_enabled: false,
usage_limits_section: '',
usage_limits_maximum_request: 1000,
usage_limits_maximum_tokens: 2000000,
usage_limits_max_messages: 100,
usage_limits_agent_timeout: 120,
divider_11: '',
tool_calling_section: '',
parallel_tool_calls: true,
visuals_section: '',
hide_reasoning: false,
hide_workflow_progress: false,
tool_display_preset: 'execution',
minimal_caret_only: true,
minimal_tool_message: 'Thinking...',
citation_style: 'text',
chat_input_placeholder: 'Ask me anything...',
divider_visuals: '',
conversation_title_section: '',
agent_title_mode: 'generate',
divider_conversation_title: '',
agentflow_section: '',
hide_state_transitions: false,
divider_13: '',
agent_flow_id: '<string>',
is_coworker: true,
preset_selector: '<string>',
introductory_message: '<string>',
persona: [{text: '<string>', definition: {type: 'doc', content: []}}],
tone: [{text: '<string>', definition: {type: 'doc', content: []}}],
extra_instructions: [{text: '<string>', definition: {type: 'doc', content: []}}],
tools: [],
mcp_servers: [],
workflows: [],
knowledge_bases: [],
coworkers: [],
base_tools: [
{
title: 'Human in the Loop',
description: 'Human in the Loop',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'PersonStanding',
tool_display_message_start: 'Escalating to human operator...',
tool_display_message_end: 'Escalated to human operator',
visible: true,
icon: 'PersonStanding',
bg_color: 'blue.50',
icon_color: 'blue.500',
chatflow_usable: true,
deprecated: false,
type: 'human_in_the_loop',
has_timeout: false,
handover_message: 'You are now talking to the co-worker.'
},
{
title: 'Web Research',
description: 'Search the web for information',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Globe',
tool_display_message_start: 'Searching the web...',
tool_display_message_end: 'Searched the web',
visible: true,
icon: 'Globe',
bg_color: '#D1FADF',
icon_color: '#027A48',
chatflow_usable: true,
deprecated: false,
type: 'web_research'
},
{
title: 'Attach File',
description: 'Attach a file to the conversation',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Cog',
tool_display_message_start: 'Running tool...',
tool_display_message_end: 'Tool complete',
visible: true,
icon: 'Paperclip',
bg_color: '#EFF6FF',
icon_color: '#2B7FFF',
chatflow_usable: false,
deprecated: false,
type: 'attach_file'
},
{
title: 'Memory',
description: 'Persistent memory during a single conversation',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Brain',
tool_display_message_start: 'Accessing memory...',
tool_display_message_end: 'Memory operation complete',
visible: true,
icon: 'Brain',
bg_color: '#f5f3ff',
icon_color: '#8e51ff',
chatflow_usable: true,
deprecated: false,
type: 'memory'
},
{
title: 'File System',
description: 'Access and read files in the current session',
category: 'QuickAction',
enabled: true,
tool_display_icon: 'FolderOpen',
tool_display_message_start: 'Accessing file system...',
tool_display_message_end: 'File system operation complete',
visible: false,
icon: 'FolderOpen',
bg_color: '#fef3c7',
icon_color: '#f59e0b',
chatflow_usable: true,
deprecated: false,
type: 'filesystem'
},
{
title: 'Code Execution',
description: 'Run Python code in a sandboxed environment',
category: 'QuickAction',
enabled: false,
tool_display_icon: 'Terminal',
tool_display_message_start: 'Running code...',
tool_display_message_end: 'Code executed',
visible: true,
icon: 'Terminal',
bg_color: '#fef9c3',
icon_color: '#ca8a04',
chatflow_usable: true,
deprecated: false,
type: 'code_execution',
timeout: 120
}
],
actions: [],
chatflow_tools: []
},
visible: true,
image_url: '<string>',
app_settings_v2: {
is_active: false,
version_id: '<string>',
extra_settings: {},
published_at: '2023-11-07T05:31:56Z'
},
is_app_published: true
})
};
fetch('https://api.example.com/v1/agents/{agent_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/agents/{agent_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'definition' => [
'pii_banner' => '',
'pii_info' => '',
'pii_lock' => false,
'pii_anonimization' => [
[
'value' => 'PERSON',
'label' => 'Name'
],
[
'value' => 'EMAIL_ADDRESS',
'label' => 'Email'
],
[
'value' => 'PHONE_NUMBER',
'label' => 'Phone Number'
],
[
'value' => 'CREDIT_CARD',
'label' => 'Credit Card'
]
],
'divider1' => '',
'guardrail_info' => '',
'guardrail_lock' => false,
'violence_and_hate' => 'Off',
'sexual_content' => 'Off',
'guns_and_weapons' => 'Off',
'suicide' => 'Off',
'crime' => 'Off',
'toxicity' => 'Off',
'bias' => 'Off',
'profanity' => 'Off',
'divider2' => '',
'guardrail_action' => [
'value' => 'flag',
'label' => 'Flag with warning but proceed'
],
'guardrail_action_replace' => '',
'guardrail_action_human' => '',
'divider3' => '',
'prompt_defense' => '',
'prompt_lock' => false,
'jailbreak' => false,
'prompt_injection' => false,
'context_leak' => false,
'auto_model_pick' => false,
'auto_model_preference' => 'cost',
'model' => [
'preset:cost'
],
'parameter_preset' => 'default',
'intro' => '',
'basic_params_section' => '',
'max_tokens' => 64000,
'temperature' => 0.7,
'top_p' => 1,
'top_k' => 40,
'timeout' => 120,
'divider_7' => '',
'penalty_section' => '',
'presence_penalty' => 0.3,
'frequency_penalty' => 0.6,
'stop_sequences' => [
],
'divider_8' => '',
'reasoning_section' => '',
'enable_reasoning' => true,
'reasoning_effort' => 'Low',
'divider' => '',
'reliability_section' => '',
'max_retries_per_model' => 3,
'retry_on_status_codes' => [
429,
500,
502,
503,
504
],
'datacenter_fallback' => true,
'agentflow_enabled' => false,
'usage_limits_section' => '',
'usage_limits_maximum_request' => 1000,
'usage_limits_maximum_tokens' => 2000000,
'usage_limits_max_messages' => 100,
'usage_limits_agent_timeout' => 120,
'divider_11' => '',
'tool_calling_section' => '',
'parallel_tool_calls' => true,
'visuals_section' => '',
'hide_reasoning' => false,
'hide_workflow_progress' => false,
'tool_display_preset' => 'execution',
'minimal_caret_only' => true,
'minimal_tool_message' => 'Thinking...',
'citation_style' => 'text',
'chat_input_placeholder' => 'Ask me anything...',
'divider_visuals' => '',
'conversation_title_section' => '',
'agent_title_mode' => 'generate',
'divider_conversation_title' => '',
'agentflow_section' => '',
'hide_state_transitions' => false,
'divider_13' => '',
'agent_flow_id' => '<string>',
'is_coworker' => true,
'preset_selector' => '<string>',
'introductory_message' => '<string>',
'persona' => [
[
'text' => '<string>',
'definition' => [
'type' => 'doc',
'content' => [
]
]
]
],
'tone' => [
[
'text' => '<string>',
'definition' => [
'type' => 'doc',
'content' => [
]
]
]
],
'extra_instructions' => [
[
'text' => '<string>',
'definition' => [
'type' => 'doc',
'content' => [
]
]
]
],
'tools' => [
],
'mcp_servers' => [
],
'workflows' => [
],
'knowledge_bases' => [
],
'coworkers' => [
],
'base_tools' => [
[
'title' => 'Human in the Loop',
'description' => 'Human in the Loop',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'PersonStanding',
'tool_display_message_start' => 'Escalating to human operator...',
'tool_display_message_end' => 'Escalated to human operator',
'visible' => true,
'icon' => 'PersonStanding',
'bg_color' => 'blue.50',
'icon_color' => 'blue.500',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'human_in_the_loop',
'has_timeout' => false,
'handover_message' => 'You are now talking to the co-worker.'
],
[
'title' => 'Web Research',
'description' => 'Search the web for information',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Globe',
'tool_display_message_start' => 'Searching the web...',
'tool_display_message_end' => 'Searched the web',
'visible' => true,
'icon' => 'Globe',
'bg_color' => '#D1FADF',
'icon_color' => '#027A48',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'web_research'
],
[
'title' => 'Attach File',
'description' => 'Attach a file to the conversation',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Cog',
'tool_display_message_start' => 'Running tool...',
'tool_display_message_end' => 'Tool complete',
'visible' => true,
'icon' => 'Paperclip',
'bg_color' => '#EFF6FF',
'icon_color' => '#2B7FFF',
'chatflow_usable' => false,
'deprecated' => false,
'type' => 'attach_file'
],
[
'title' => 'Memory',
'description' => 'Persistent memory during a single conversation',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Brain',
'tool_display_message_start' => 'Accessing memory...',
'tool_display_message_end' => 'Memory operation complete',
'visible' => true,
'icon' => 'Brain',
'bg_color' => '#f5f3ff',
'icon_color' => '#8e51ff',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'memory'
],
[
'title' => 'File System',
'description' => 'Access and read files in the current session',
'category' => 'QuickAction',
'enabled' => true,
'tool_display_icon' => 'FolderOpen',
'tool_display_message_start' => 'Accessing file system...',
'tool_display_message_end' => 'File system operation complete',
'visible' => false,
'icon' => 'FolderOpen',
'bg_color' => '#fef3c7',
'icon_color' => '#f59e0b',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'filesystem'
],
[
'title' => 'Code Execution',
'description' => 'Run Python code in a sandboxed environment',
'category' => 'QuickAction',
'enabled' => false,
'tool_display_icon' => 'Terminal',
'tool_display_message_start' => 'Running code...',
'tool_display_message_end' => 'Code executed',
'visible' => true,
'icon' => 'Terminal',
'bg_color' => '#fef9c3',
'icon_color' => '#ca8a04',
'chatflow_usable' => true,
'deprecated' => false,
'type' => 'code_execution',
'timeout' => 120
]
],
'actions' => [
],
'chatflow_tools' => [
]
],
'visible' => true,
'image_url' => '<string>',
'app_settings_v2' => [
'is_active' => false,
'version_id' => '<string>',
'extra_settings' => [
],
'published_at' => '2023-11-07T05:31:56Z'
],
'is_app_published' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/agents/{agent_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"definition\": {\n \"pii_banner\": \"\",\n \"pii_info\": \"\",\n \"pii_lock\": false,\n \"pii_anonimization\": [\n {\n \"value\": \"PERSON\",\n \"label\": \"Name\"\n },\n {\n \"value\": \"EMAIL_ADDRESS\",\n \"label\": \"Email\"\n },\n {\n \"value\": \"PHONE_NUMBER\",\n \"label\": \"Phone Number\"\n },\n {\n \"value\": \"CREDIT_CARD\",\n \"label\": \"Credit Card\"\n }\n ],\n \"divider1\": \"\",\n \"guardrail_info\": \"\",\n \"guardrail_lock\": false,\n \"violence_and_hate\": \"Off\",\n \"sexual_content\": \"Off\",\n \"guns_and_weapons\": \"Off\",\n \"suicide\": \"Off\",\n \"crime\": \"Off\",\n \"toxicity\": \"Off\",\n \"bias\": \"Off\",\n \"profanity\": \"Off\",\n \"divider2\": \"\",\n \"guardrail_action\": {\n \"value\": \"flag\",\n \"label\": \"Flag with warning but proceed\"\n },\n \"guardrail_action_replace\": \"\",\n \"guardrail_action_human\": \"\",\n \"divider3\": \"\",\n \"prompt_defense\": \"\",\n \"prompt_lock\": false,\n \"jailbreak\": false,\n \"prompt_injection\": false,\n \"context_leak\": false,\n \"auto_model_pick\": false,\n \"auto_model_preference\": \"cost\",\n \"model\": [\n \"preset:cost\"\n ],\n \"parameter_preset\": \"default\",\n \"intro\": \"\",\n \"basic_params_section\": \"\",\n \"max_tokens\": 64000,\n \"temperature\": 0.7,\n \"top_p\": 1,\n \"top_k\": 40,\n \"timeout\": 120,\n \"divider_7\": \"\",\n \"penalty_section\": \"\",\n \"presence_penalty\": 0.3,\n \"frequency_penalty\": 0.6,\n \"stop_sequences\": [],\n \"divider_8\": \"\",\n \"reasoning_section\": \"\",\n \"enable_reasoning\": true,\n \"reasoning_effort\": \"Low\",\n \"divider\": \"\",\n \"reliability_section\": \"\",\n \"max_retries_per_model\": 3,\n \"retry_on_status_codes\": [\n 429,\n 500,\n 502,\n 503,\n 504\n ],\n \"datacenter_fallback\": true,\n \"agentflow_enabled\": false,\n \"usage_limits_section\": \"\",\n \"usage_limits_maximum_request\": 1000,\n \"usage_limits_maximum_tokens\": 2000000,\n \"usage_limits_max_messages\": 100,\n \"usage_limits_agent_timeout\": 120,\n \"divider_11\": \"\",\n \"tool_calling_section\": \"\",\n \"parallel_tool_calls\": true,\n \"visuals_section\": \"\",\n \"hide_reasoning\": false,\n \"hide_workflow_progress\": false,\n \"tool_display_preset\": \"execution\",\n \"minimal_caret_only\": true,\n \"minimal_tool_message\": \"Thinking...\",\n \"citation_style\": \"text\",\n \"chat_input_placeholder\": \"Ask me anything...\",\n \"divider_visuals\": \"\",\n \"conversation_title_section\": \"\",\n \"agent_title_mode\": \"generate\",\n \"divider_conversation_title\": \"\",\n \"agentflow_section\": \"\",\n \"hide_state_transitions\": false,\n \"divider_13\": \"\",\n \"agent_flow_id\": \"<string>\",\n \"is_coworker\": true,\n \"preset_selector\": \"<string>\",\n \"introductory_message\": \"<string>\",\n \"persona\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tone\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"extra_instructions\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tools\": [],\n \"mcp_servers\": [],\n \"workflows\": [],\n \"knowledge_bases\": [],\n \"coworkers\": [],\n \"base_tools\": [\n {\n \"title\": \"Human in the Loop\",\n \"description\": \"Human in the Loop\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"PersonStanding\",\n \"tool_display_message_start\": \"Escalating to human operator...\",\n \"tool_display_message_end\": \"Escalated to human operator\",\n \"visible\": true,\n \"icon\": \"PersonStanding\",\n \"bg_color\": \"blue.50\",\n \"icon_color\": \"blue.500\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"human_in_the_loop\",\n \"has_timeout\": false,\n \"handover_message\": \"You are now talking to the co-worker.\"\n },\n {\n \"title\": \"Web Research\",\n \"description\": \"Search the web for information\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Globe\",\n \"tool_display_message_start\": \"Searching the web...\",\n \"tool_display_message_end\": \"Searched the web\",\n \"visible\": true,\n \"icon\": \"Globe\",\n \"bg_color\": \"#D1FADF\",\n \"icon_color\": \"#027A48\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"web_research\"\n },\n {\n \"title\": \"Attach File\",\n \"description\": \"Attach a file to the conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Cog\",\n \"tool_display_message_start\": \"Running tool...\",\n \"tool_display_message_end\": \"Tool complete\",\n \"visible\": true,\n \"icon\": \"Paperclip\",\n \"bg_color\": \"#EFF6FF\",\n \"icon_color\": \"#2B7FFF\",\n \"chatflow_usable\": false,\n \"deprecated\": false,\n \"type\": \"attach_file\"\n },\n {\n \"title\": \"Memory\",\n \"description\": \"Persistent memory during a single conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Brain\",\n \"tool_display_message_start\": \"Accessing memory...\",\n \"tool_display_message_end\": \"Memory operation complete\",\n \"visible\": true,\n \"icon\": \"Brain\",\n \"bg_color\": \"#f5f3ff\",\n \"icon_color\": \"#8e51ff\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"memory\"\n },\n {\n \"title\": \"File System\",\n \"description\": \"Access and read files in the current session\",\n \"category\": \"QuickAction\",\n \"enabled\": true,\n \"tool_display_icon\": \"FolderOpen\",\n \"tool_display_message_start\": \"Accessing file system...\",\n \"tool_display_message_end\": \"File system operation complete\",\n \"visible\": false,\n \"icon\": \"FolderOpen\",\n \"bg_color\": \"#fef3c7\",\n \"icon_color\": \"#f59e0b\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"filesystem\"\n },\n {\n \"title\": \"Code Execution\",\n \"description\": \"Run Python code in a sandboxed environment\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Terminal\",\n \"tool_display_message_start\": \"Running code...\",\n \"tool_display_message_end\": \"Code executed\",\n \"visible\": true,\n \"icon\": \"Terminal\",\n \"bg_color\": \"#fef9c3\",\n \"icon_color\": \"#ca8a04\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"code_execution\",\n \"timeout\": 120\n }\n ],\n \"actions\": [],\n \"chatflow_tools\": []\n },\n \"visible\": true,\n \"image_url\": \"<string>\",\n \"app_settings_v2\": {\n \"is_active\": false,\n \"version_id\": \"<string>\",\n \"extra_settings\": {},\n \"published_at\": \"2023-11-07T05:31:56Z\"\n },\n \"is_app_published\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v1/agents/{agent_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"definition\": {\n \"pii_banner\": \"\",\n \"pii_info\": \"\",\n \"pii_lock\": false,\n \"pii_anonimization\": [\n {\n \"value\": \"PERSON\",\n \"label\": \"Name\"\n },\n {\n \"value\": \"EMAIL_ADDRESS\",\n \"label\": \"Email\"\n },\n {\n \"value\": \"PHONE_NUMBER\",\n \"label\": \"Phone Number\"\n },\n {\n \"value\": \"CREDIT_CARD\",\n \"label\": \"Credit Card\"\n }\n ],\n \"divider1\": \"\",\n \"guardrail_info\": \"\",\n \"guardrail_lock\": false,\n \"violence_and_hate\": \"Off\",\n \"sexual_content\": \"Off\",\n \"guns_and_weapons\": \"Off\",\n \"suicide\": \"Off\",\n \"crime\": \"Off\",\n \"toxicity\": \"Off\",\n \"bias\": \"Off\",\n \"profanity\": \"Off\",\n \"divider2\": \"\",\n \"guardrail_action\": {\n \"value\": \"flag\",\n \"label\": \"Flag with warning but proceed\"\n },\n \"guardrail_action_replace\": \"\",\n \"guardrail_action_human\": \"\",\n \"divider3\": \"\",\n \"prompt_defense\": \"\",\n \"prompt_lock\": false,\n \"jailbreak\": false,\n \"prompt_injection\": false,\n \"context_leak\": false,\n \"auto_model_pick\": false,\n \"auto_model_preference\": \"cost\",\n \"model\": [\n \"preset:cost\"\n ],\n \"parameter_preset\": \"default\",\n \"intro\": \"\",\n \"basic_params_section\": \"\",\n \"max_tokens\": 64000,\n \"temperature\": 0.7,\n \"top_p\": 1,\n \"top_k\": 40,\n \"timeout\": 120,\n \"divider_7\": \"\",\n \"penalty_section\": \"\",\n \"presence_penalty\": 0.3,\n \"frequency_penalty\": 0.6,\n \"stop_sequences\": [],\n \"divider_8\": \"\",\n \"reasoning_section\": \"\",\n \"enable_reasoning\": true,\n \"reasoning_effort\": \"Low\",\n \"divider\": \"\",\n \"reliability_section\": \"\",\n \"max_retries_per_model\": 3,\n \"retry_on_status_codes\": [\n 429,\n 500,\n 502,\n 503,\n 504\n ],\n \"datacenter_fallback\": true,\n \"agentflow_enabled\": false,\n \"usage_limits_section\": \"\",\n \"usage_limits_maximum_request\": 1000,\n \"usage_limits_maximum_tokens\": 2000000,\n \"usage_limits_max_messages\": 100,\n \"usage_limits_agent_timeout\": 120,\n \"divider_11\": \"\",\n \"tool_calling_section\": \"\",\n \"parallel_tool_calls\": true,\n \"visuals_section\": \"\",\n \"hide_reasoning\": false,\n \"hide_workflow_progress\": false,\n \"tool_display_preset\": \"execution\",\n \"minimal_caret_only\": true,\n \"minimal_tool_message\": \"Thinking...\",\n \"citation_style\": \"text\",\n \"chat_input_placeholder\": \"Ask me anything...\",\n \"divider_visuals\": \"\",\n \"conversation_title_section\": \"\",\n \"agent_title_mode\": \"generate\",\n \"divider_conversation_title\": \"\",\n \"agentflow_section\": \"\",\n \"hide_state_transitions\": false,\n \"divider_13\": \"\",\n \"agent_flow_id\": \"<string>\",\n \"is_coworker\": true,\n \"preset_selector\": \"<string>\",\n \"introductory_message\": \"<string>\",\n \"persona\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tone\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"extra_instructions\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tools\": [],\n \"mcp_servers\": [],\n \"workflows\": [],\n \"knowledge_bases\": [],\n \"coworkers\": [],\n \"base_tools\": [\n {\n \"title\": \"Human in the Loop\",\n \"description\": \"Human in the Loop\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"PersonStanding\",\n \"tool_display_message_start\": \"Escalating to human operator...\",\n \"tool_display_message_end\": \"Escalated to human operator\",\n \"visible\": true,\n \"icon\": \"PersonStanding\",\n \"bg_color\": \"blue.50\",\n \"icon_color\": \"blue.500\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"human_in_the_loop\",\n \"has_timeout\": false,\n \"handover_message\": \"You are now talking to the co-worker.\"\n },\n {\n \"title\": \"Web Research\",\n \"description\": \"Search the web for information\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Globe\",\n \"tool_display_message_start\": \"Searching the web...\",\n \"tool_display_message_end\": \"Searched the web\",\n \"visible\": true,\n \"icon\": \"Globe\",\n \"bg_color\": \"#D1FADF\",\n \"icon_color\": \"#027A48\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"web_research\"\n },\n {\n \"title\": \"Attach File\",\n \"description\": \"Attach a file to the conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Cog\",\n \"tool_display_message_start\": \"Running tool...\",\n \"tool_display_message_end\": \"Tool complete\",\n \"visible\": true,\n \"icon\": \"Paperclip\",\n \"bg_color\": \"#EFF6FF\",\n \"icon_color\": \"#2B7FFF\",\n \"chatflow_usable\": false,\n \"deprecated\": false,\n \"type\": \"attach_file\"\n },\n {\n \"title\": \"Memory\",\n \"description\": \"Persistent memory during a single conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Brain\",\n \"tool_display_message_start\": \"Accessing memory...\",\n \"tool_display_message_end\": \"Memory operation complete\",\n \"visible\": true,\n \"icon\": \"Brain\",\n \"bg_color\": \"#f5f3ff\",\n \"icon_color\": \"#8e51ff\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"memory\"\n },\n {\n \"title\": \"File System\",\n \"description\": \"Access and read files in the current session\",\n \"category\": \"QuickAction\",\n \"enabled\": true,\n \"tool_display_icon\": \"FolderOpen\",\n \"tool_display_message_start\": \"Accessing file system...\",\n \"tool_display_message_end\": \"File system operation complete\",\n \"visible\": false,\n \"icon\": \"FolderOpen\",\n \"bg_color\": \"#fef3c7\",\n \"icon_color\": \"#f59e0b\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"filesystem\"\n },\n {\n \"title\": \"Code Execution\",\n \"description\": \"Run Python code in a sandboxed environment\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Terminal\",\n \"tool_display_message_start\": \"Running code...\",\n \"tool_display_message_end\": \"Code executed\",\n \"visible\": true,\n \"icon\": \"Terminal\",\n \"bg_color\": \"#fef9c3\",\n \"icon_color\": \"#ca8a04\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"code_execution\",\n \"timeout\": 120\n }\n ],\n \"actions\": [],\n \"chatflow_tools\": []\n },\n \"visible\": true,\n \"image_url\": \"<string>\",\n \"app_settings_v2\": {\n \"is_active\": false,\n \"version_id\": \"<string>\",\n \"extra_settings\": {},\n \"published_at\": \"2023-11-07T05:31:56Z\"\n },\n \"is_app_published\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/agents/{agent_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"definition\": {\n \"pii_banner\": \"\",\n \"pii_info\": \"\",\n \"pii_lock\": false,\n \"pii_anonimization\": [\n {\n \"value\": \"PERSON\",\n \"label\": \"Name\"\n },\n {\n \"value\": \"EMAIL_ADDRESS\",\n \"label\": \"Email\"\n },\n {\n \"value\": \"PHONE_NUMBER\",\n \"label\": \"Phone Number\"\n },\n {\n \"value\": \"CREDIT_CARD\",\n \"label\": \"Credit Card\"\n }\n ],\n \"divider1\": \"\",\n \"guardrail_info\": \"\",\n \"guardrail_lock\": false,\n \"violence_and_hate\": \"Off\",\n \"sexual_content\": \"Off\",\n \"guns_and_weapons\": \"Off\",\n \"suicide\": \"Off\",\n \"crime\": \"Off\",\n \"toxicity\": \"Off\",\n \"bias\": \"Off\",\n \"profanity\": \"Off\",\n \"divider2\": \"\",\n \"guardrail_action\": {\n \"value\": \"flag\",\n \"label\": \"Flag with warning but proceed\"\n },\n \"guardrail_action_replace\": \"\",\n \"guardrail_action_human\": \"\",\n \"divider3\": \"\",\n \"prompt_defense\": \"\",\n \"prompt_lock\": false,\n \"jailbreak\": false,\n \"prompt_injection\": false,\n \"context_leak\": false,\n \"auto_model_pick\": false,\n \"auto_model_preference\": \"cost\",\n \"model\": [\n \"preset:cost\"\n ],\n \"parameter_preset\": \"default\",\n \"intro\": \"\",\n \"basic_params_section\": \"\",\n \"max_tokens\": 64000,\n \"temperature\": 0.7,\n \"top_p\": 1,\n \"top_k\": 40,\n \"timeout\": 120,\n \"divider_7\": \"\",\n \"penalty_section\": \"\",\n \"presence_penalty\": 0.3,\n \"frequency_penalty\": 0.6,\n \"stop_sequences\": [],\n \"divider_8\": \"\",\n \"reasoning_section\": \"\",\n \"enable_reasoning\": true,\n \"reasoning_effort\": \"Low\",\n \"divider\": \"\",\n \"reliability_section\": \"\",\n \"max_retries_per_model\": 3,\n \"retry_on_status_codes\": [\n 429,\n 500,\n 502,\n 503,\n 504\n ],\n \"datacenter_fallback\": true,\n \"agentflow_enabled\": false,\n \"usage_limits_section\": \"\",\n \"usage_limits_maximum_request\": 1000,\n \"usage_limits_maximum_tokens\": 2000000,\n \"usage_limits_max_messages\": 100,\n \"usage_limits_agent_timeout\": 120,\n \"divider_11\": \"\",\n \"tool_calling_section\": \"\",\n \"parallel_tool_calls\": true,\n \"visuals_section\": \"\",\n \"hide_reasoning\": false,\n \"hide_workflow_progress\": false,\n \"tool_display_preset\": \"execution\",\n \"minimal_caret_only\": true,\n \"minimal_tool_message\": \"Thinking...\",\n \"citation_style\": \"text\",\n \"chat_input_placeholder\": \"Ask me anything...\",\n \"divider_visuals\": \"\",\n \"conversation_title_section\": \"\",\n \"agent_title_mode\": \"generate\",\n \"divider_conversation_title\": \"\",\n \"agentflow_section\": \"\",\n \"hide_state_transitions\": false,\n \"divider_13\": \"\",\n \"agent_flow_id\": \"<string>\",\n \"is_coworker\": true,\n \"preset_selector\": \"<string>\",\n \"introductory_message\": \"<string>\",\n \"persona\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tone\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"extra_instructions\": [\n {\n \"text\": \"<string>\",\n \"definition\": {\n \"type\": \"doc\",\n \"content\": []\n }\n }\n ],\n \"tools\": [],\n \"mcp_servers\": [],\n \"workflows\": [],\n \"knowledge_bases\": [],\n \"coworkers\": [],\n \"base_tools\": [\n {\n \"title\": \"Human in the Loop\",\n \"description\": \"Human in the Loop\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"PersonStanding\",\n \"tool_display_message_start\": \"Escalating to human operator...\",\n \"tool_display_message_end\": \"Escalated to human operator\",\n \"visible\": true,\n \"icon\": \"PersonStanding\",\n \"bg_color\": \"blue.50\",\n \"icon_color\": \"blue.500\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"human_in_the_loop\",\n \"has_timeout\": false,\n \"handover_message\": \"You are now talking to the co-worker.\"\n },\n {\n \"title\": \"Web Research\",\n \"description\": \"Search the web for information\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Globe\",\n \"tool_display_message_start\": \"Searching the web...\",\n \"tool_display_message_end\": \"Searched the web\",\n \"visible\": true,\n \"icon\": \"Globe\",\n \"bg_color\": \"#D1FADF\",\n \"icon_color\": \"#027A48\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"web_research\"\n },\n {\n \"title\": \"Attach File\",\n \"description\": \"Attach a file to the conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Cog\",\n \"tool_display_message_start\": \"Running tool...\",\n \"tool_display_message_end\": \"Tool complete\",\n \"visible\": true,\n \"icon\": \"Paperclip\",\n \"bg_color\": \"#EFF6FF\",\n \"icon_color\": \"#2B7FFF\",\n \"chatflow_usable\": false,\n \"deprecated\": false,\n \"type\": \"attach_file\"\n },\n {\n \"title\": \"Memory\",\n \"description\": \"Persistent memory during a single conversation\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Brain\",\n \"tool_display_message_start\": \"Accessing memory...\",\n \"tool_display_message_end\": \"Memory operation complete\",\n \"visible\": true,\n \"icon\": \"Brain\",\n \"bg_color\": \"#f5f3ff\",\n \"icon_color\": \"#8e51ff\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"memory\"\n },\n {\n \"title\": \"File System\",\n \"description\": \"Access and read files in the current session\",\n \"category\": \"QuickAction\",\n \"enabled\": true,\n \"tool_display_icon\": \"FolderOpen\",\n \"tool_display_message_start\": \"Accessing file system...\",\n \"tool_display_message_end\": \"File system operation complete\",\n \"visible\": false,\n \"icon\": \"FolderOpen\",\n \"bg_color\": \"#fef3c7\",\n \"icon_color\": \"#f59e0b\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"filesystem\"\n },\n {\n \"title\": \"Code Execution\",\n \"description\": \"Run Python code in a sandboxed environment\",\n \"category\": \"QuickAction\",\n \"enabled\": false,\n \"tool_display_icon\": \"Terminal\",\n \"tool_display_message_start\": \"Running code...\",\n \"tool_display_message_end\": \"Code executed\",\n \"visible\": true,\n \"icon\": \"Terminal\",\n \"bg_color\": \"#fef9c3\",\n \"icon_color\": \"#ca8a04\",\n \"chatflow_usable\": true,\n \"deprecated\": false,\n \"type\": \"code_execution\",\n \"timeout\": 120\n }\n ],\n \"actions\": [],\n \"chatflow_tools\": []\n },\n \"visible\": true,\n \"image_url\": \"<string>\",\n \"app_settings_v2\": {\n \"is_active\": false,\n \"version_id\": \"<string>\",\n \"extra_settings\": {},\n \"published_at\": \"2023-11-07T05:31:56Z\"\n },\n \"is_app_published\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"definition": {},
"description": "<string>",
"visible": true,
"image_url": "<string>",
"last_updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"app_settings_v2": {
"is_active": false,
"version_id": "<string>",
"extra_settings": {},
"published_at": "2023-11-07T05:31:56Z"
},
"is_app_published": true,
"allow_public_access": false,
"meta": {
"template_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Path Parameters
Query Parameters
Preview changes without saving
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I