description:'Name of the role to assign to the agent. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Scope in which the agent may use the permissions granted by the role',
type:'options',
options:[
{
name:'Entire Helpdesk',
value:'entire_helpdesk',
},
{
name:'Member Groups',
value:'member_groups',
},
{
name:'Specified Groups',
value:'specified_groups',
},
{
name:'Assigned Items',
value:'assigned_items',
},
],
required: true,
default:'specified_groups',
},
{
displayName:'Group Names/IDs',
name:'groups',
description:'Groups in which the permissions granted by the role apply. Required only when Scope is Specified Groups - ignored otherwise. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'ID of the level of the agent in the Arcade',
default:1,
options:[
{
name:'Beginner',
value: 1,
},
{
name:'Intermediate',
value: 2,
},
{
name:'Professional',
value: 3,
},
{
name:'Expert',
value: 4,
},
{
name:'Master',
value: 5,
},
{
name:'Guru',
value: 6,
},
],
},
{
displayName:'Time Format',
name:'time_format',
type:'options',
default:'12h',
options:[
{
name:'12-Hour Format',
value:'12h',
},
{
name:'24-Hour Format',
value:'24h',
},
],
},
{
displayName:'Work Phone',
name:'work_phone_number',
type:'string',
default:'',
},
],
},
// ----------------------------------------
// agent: delete
// ----------------------------------------
{
displayName:'Agent ID',
name:'agentId',
description:'ID of the agent to delete',
type:'string',
required: true,
default:'',
displayOptions:{
show:{
resource:[
'agent',
],
operation:[
'delete',
],
},
},
},
// ----------------------------------------
// agent: get
// ----------------------------------------
{
displayName:'Agent ID',
name:'agentId',
description:'ID of the agent to retrieve',
type:'string',
required: true,
default:'',
displayOptions:{
show:{
resource:[
'agent',
],
operation:[
'get',
],
},
},
},
// ----------------------------------------
// agent: getAll
// ----------------------------------------
{
displayName:'Return All',
name:'returnAll',
type:'boolean',
default:false,
description:'Whether to return all results or only up to a given limit',
displayOptions:{
show:{
resource:[
'agent',
],
operation:[
'getAll',
],
},
},
},
{
displayName:'Limit',
name:'limit',
type:'number',
default:50,
description:'How many results to return',
typeOptions:{
minValue: 1,
},
displayOptions:{
show:{
resource:[
'agent',
],
operation:[
'getAll',
],
returnAll:[
false,
],
},
},
},
{
displayName:'Filters',
name:'filters',
type:'collection',
placeholder:'Add Filter',
default:{},
displayOptions:{
show:{
resource:[
'agent',
],
operation:[
'getAll',
],
},
},
options:[
{
displayName:'Department Name/ID',
name:'department_id',
type:'options',
default:'',
description:'ID of the department to which the agent belongs. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description:'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',