OBJECT

RoutingRule

Routing rules determine how to distribute conversations from a set of targeting rules to a set of routing groups, according to a routing mode.

link GraphQL Schema definition

  • type RoutingRule {
  • # The identifier of the rule.
  • id: UUID!
  • # The name of the rule.
  • name: String!
  • # The date and time when the rule was created.
  • createdAt: DateTime!
  • # The date and time when the rule was last updated.
  • updatedAt: DateTime!
  • # Identifies the website to which the routing rule is attached.
  • websiteId: LegacyId!
  • # Conversations handled by the routing rule will be distributed to these routing
  • # groups.
  • groups: [RoutingGroup!] @deprecated( reason: "Use routingGroups field instead" )
  • # Channel availabilities for the RoutingRule.
  • # Note that due to performance limitations, only one `availability` field can be
  • # resolved by query,
  • # which means listing RoutingRules while requiring availability will cause empty
  • # field with error.
  • #
  • # Arguments
  • # lang: Language used to compute availability
  • availability(lang: Language): RoutingRuleAvailability
  • # Total number of slots in conversation queues for the routing rule
  • totalConversationQueueSlots: Int!
  • # Conversations handled by the routing rule will be distributed to these routing
  • # groups.
  • #
  • # Arguments
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # first: Returns the first n elements from the list.
  • # last: Returns the last n elements from the list.
  • routingGroups(before: String, after: String, first: Int, last: Int): RoutingRuleRoutingGroupConnection
  • # The routing mode determines how conversations will be distributed to the groups
  • # assigned to this rule.
  • routingMode: RoutingMode!
  • # True if this rule is allowed to receive transferred conversations.
  • canReceiveTransferredConversations: Boolean!
  • }