IntelliTicks
  • Introduction
  • Getting Started
    • Overview
    • Build your first playbook
      • Start with Pre-build Templates
      • Start from scratch
  • Installation
    • IntelliTicks Plugin Script
    • Plugin Installation
  • Facebook Messenger Bot
    • Getting Started
      • Connect Facebook Page
      • Link Playbook to Messenger
    • Testing FB Messenger Bot
  • WhatsApp Bot
    • Benefits of WhatsApp Chatbots
    • Getting Started
    • FAQs
  • AI Builder
    • Playbooks
    • Nodes
      • Add and Send Data
        • Text
        • Image
        • Links
        • Youtube
        • Gallery
        • Dynamic Node
      • Collect User Data
        • Quick Reply
        • Form
        • Datepicker
        • Web View
        • Payment
        • Rating
        • Slider
        • Ask Question
        • Mutli Selection Reply
        • Quick Reply (with branches)
      • Redirect Users
        • URL redirect
        • Conditional branching
        • Go to Playbook
        • Jump to node
      • Export & Import
        • JSON API
      • Connect Users To A Human
        • Notify Agent
        • End Automation
      • Additional
        • Wait
        • Client Javascript
        • Actions
    • Actions
    • FAQ Training
    • Keyword Training
    • Advanced
      • Advanced Actions
  • Flash Responses
    • Flash Response
    • Create Flash Response
    • Using Flash Response
  • Customizing Platform
    • Widget
      • Theme Customization
      • Chat Widget Texts in Local Language
      • Adding Start Over button
      • URL Rules
      • Advanced Customization
        • How to Easily Add Custom CSS to Chat Widget
    • Chat icon/Bot Profile Photo
    • Different chatbot on each URLs
  • Integrations
    • WordPress Integration
    • Shopify Integration
    • Shopify Installation via Private Apps
    • Google Analytics
    • Magento Integration (1.x)
    • Magento Integration (2.x)
    • LeadSquared Integration
    • Marketo Integration
    • Salesforce Integration
    • Zapier Integration
      • Data Available in Zapier
    • Zoho CRM Integration
    • Wix Integration
    • Custom/in-house CRM integration
  • How to
    • Change the Default Playbook
    • Schedule meetings on calendar
      • How to integrate calendly for meetings
      • How to integrate Acquity for meetings
      • How to Integrate YouCanBook for meetings
    • Block a User
    • Delete a User
    • Hide trigger message from website
    • How to show chatbot in right middle of website
    • Start chatbot on a button click
    • Create chatbot landing page
    • Customize Landing Page Link
    • Enable Notifications on browser
    • Popup bot on Facebook page automatically
    • How to send data to chatbot via Javascript
  • Growth Hacks
    • Facebook Retargeting
    • Messenger Ads to chatbot
  • Troubleshooting
    • Messenger Bot is not working as expected
    • How do I remove the Messenger app in Shopify?
    • Push Notification Issues
  • Partnerships
    • White-labeled Chat Platform
    • Affiliate Partnership
  • Miscellaneous
    • Languages Supported
Powered by GitBook
On this page

Was this helpful?

  1. AI Builder
  2. Advanced

Advanced Actions

PreviousAdvancedNextFlash Response

Last updated 4 years ago

Was this helpful?

Assigning Chat to a specific agent or based on rules

Using this action, you can specify the Assignee of the chat based on your business logic. To use this node, you need to follow these steps

  1. Add a in your playbook at the stage we want to initiate the assignment.

  2. Add the code that creates an Action Node using the code

To assign directly to a specified agent

return {
    actions: [
        {
             "type": "ASSIGN_AGENT",
             "assignment_type": "DIRECT",
             "assignee": <id of the agent>
        }
    ]
}

As of now, we do not have agent ids visible in front end. So, you can request the list of agent ids from our support by writing to support@intelliticks.com.

To assign the chat based on a rule - assign only to Online Agents

return {
    actions: [
        {
            "type": "ASSIGN_AGENT",
            "assignment_type": "RULE_BASED",
            "assign_rule": {
                "agent_type": [
                  "Owner",
                  "Admin",
                  "Member"
                ],
                "status": "ONLINE"
            },
            "reassign_attempt" : 2,
            "reassign_delay" : 120
        }
    ]
}

If the action could not find any agent matching the rule, the chat remains unassigned.

Assign Agent Action Node Schema

Field Name

Field Type

Description

Required

type

String

Fixed value - ASSIGN_AGENT

Yes

assignment_type

String

One of the two values DIRECT - directly assigning chat to a specified agent RULE_BASED - assigning chat based on rules

Yes

assignee

String

The id of the agent to whom the chat has to be assigned

When assignment_type = DIRECT

assign_rule

JSON Object

Contains the rule to assign the agent

When assignment_type = RULE_BASED

  • agent_type

Array of String

Type of agent role to which the chat has to be assigned.

Possible values - Owner, Admin, Member

At least one value is required when assignment_type = RULE_BASED

  • status

String

To specify if only online agents are to be assigned or offline agents can be assigned chats too.

Possible values - DEFAULT, ONLINE, OFFLINE

DEFAULT means assign irrespective of their online status

Optional.

Default value = DEFAULT

reassign_attempt

Number

Number of re-attempts after the first assign attempt fails. This only happens in rule based assignment when no agent is found as per the rule

Optional.

Default value = 0

reassign_delay

Number

Delay in secons between each re-assign attempt.

Optional.

Default value = 60

Dynamic Node