Overview
agent_settings is a menu configuration object that defines the settings sidebar items available on the agentflow canvas, including actions such as viewing messages, managing leads, configuring, duplicating, importing, exporting, and deleting agent flows.
Description
This module exports a plain JavaScript object named agent_settings structured as a menu group (type: 'group') with an id of settings. It contains eight child menu items, each with an id, title, icon (from @tabler/icons-react), and optional permission string. The permissions use the agentflows: and templates: namespace prefixes, corresponding to RBAC permission checks. Items without a permission property (viewMessages and viewLeads) are visible to all authenticated users.
Usage
Use this configuration object when rendering the settings sidebar on the agentflow canvas page. It is consumed by the settings sidebar (NavItem components in SETTINGS mode) to display available actions for the currently open agentflow.
Code Reference
Source Location
Signature
const agent_settings = {
id: 'settings',
title: '',
type: 'group',
children: [ ... ]
}
export default agent_settings
Import
import agent_settings from '@/menu-items/agentsettings'
I/O Contract
Inputs
| Name |
Type |
Required |
Description
|
| (none) |
- |
- |
This is a static configuration object with no inputs.
|
Outputs
| Name |
Type |
Description
|
| agent_settings |
object |
A menu group object with id, title, type, and children array containing eight menu items: viewMessages, viewLeads, chatflowConfiguration, saveAsTemplate, duplicateChatflow, loadChatflow, exportChatflow, and deleteChatflow.
|
| ID |
Title |
Icon |
Permission
|
| viewMessages |
View Messages |
IconMessage |
(none)
|
| viewLeads |
View Leads |
IconUsers |
(none)
|
| chatflowConfiguration |
Configuration |
IconAdjustmentsHorizontal |
agentflows:config
|
| saveAsTemplate |
Save As Template |
IconTemplate |
templates:flowexport
|
| duplicateChatflow |
Duplicate Agents |
IconCopy |
agentflows:duplicate
|
| loadChatflow |
Load Agents |
IconFileUpload |
agentflows:import
|
| exportChatflow |
Export Agents |
IconFileExport |
agentflows:export
|
| deleteChatflow |
Delete Agents |
IconTrash |
agentflows:delete
|
Usage Examples
Basic Usage
import agent_settings from '@/menu-items/agentsettings'
// Render settings items in the canvas sidebar
agent_settings.children.map((item) => (
<NavItem
key={item.id}
item={item}
level={1}
navType="SETTINGS"
onClick={handleSettingClick}
/>
))
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.