Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Go to Haptik Website
  • Contact Us
  • Home
  • Smart Agent Chat
  • Set up

How to add external tools on Smart Agent Chat?

Written by Medha Anand

Updated on November 25th, 2021

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Build Deploy Analyse Manage Account Bot Deactivation
  • Bot Building
    Essentials Smart Skills Steps User Messages Bot Responses Entities Connections Customisations User feedback collection Testing Whatsapp Bots NLU Bot Maintenance
  • Smart Agent Chat
    Set up Admin Settings MyChats Section (Agent Inbox) Live Traffic Section Teams Section Archives Section Analytics Plans on Smart Agent Chat
  • Conversation Design
    Design Basics Design Guides Designing for Platforms Designing WhatsApp Bots
  • Developer Guides
    Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
  • Deployment
    Web SDK WhatsApp Facebook Instagram Sunshine Conversation LINE Google Business Messages Telegram MS Teams Bot as an API iOS SDK Android SDK
  • External Agent Tool Setup
    Zendesk Chat Salesforce Service Cloud Freshchat Zoho NICE CXOne Gorgias
  • Analytics & Reporting
    Intelligent Analytics
  • Notifications
    SMS Notifications Success Measurement
  • Commerce Plus
    Catalog Integration Bot Building Guide Channel Deployments Unified ML Pipeline Documentation
  • Troubleshooting Guides
    Error Messages FAQs
  • Release Notes
+ More

Table of Contents

Using Athena SDKsetConversationData(data, callbackFn)getConversationData(callbackFn)setUserDetails(data, callbackFn)getUserDetails(callbackFn)getChatDisposition(callbackFn)setChatStatus(closingCategory, callbackFn)Sample IntegrationsExpansion of the RHS Custom tool

Stages 

  • Once you log in, you will see the below page.
  • Open Admin Tools, as shown below.
  • Select External Tools.
  • On clicking on External Tools, the below page will open
Ex: We added an external url (https://material.io/design/) which should appear
for Flight Hindi Voice Business as "Test External Link".
  • Now, click "Add External Tool", to land on the screen below. Here, you enter the following details:

    1.Business: Select your unique business name. (will be available in the dropdown)
    2. Account: Select your unique account name. (will be available in the dropdown)
    3. Task: Can be ignored, and left blank
    4. Tool Name: Can be any string (this is what will appear to the agents)
    5. URL: An external link to your tool
    6. Tick: "Link" or "Tool"
    7. Hit Submit

  • On success, your tool will now appear for all agents allocated to your business.
  • Simply click on the tool, and the URL will open on the RHS

Important Design Note

  • The RHS section, where the tool loads are restricted to exactly 26% of the page ~ 360px in width in most cases.
  • Please make sure that the tool is responsive to all required screen resolutions

Important Tech Note

  • An external tool appears for a business, if a user wishes to use the same tool across multiple businesses, they can do so by adding the same entry for the other businesses.

  • Please make sure your X-Frame-Options is set to allow our host, so that your tool can open within our iframe.

Header set X-Frame-Options "allow-from https://staging.hellohaptik.com"

Using Athena SDK

Athena SDK gives you access to specific data of the User and Chat inside your Custom Tool.

Import the SDK via script tag

<script src="https://toolassets.haptikapi.com/athena2/prod/athena-sdk.v2.1.js"></script>

then use this like

const SDK = window.AthenaSDK;

setConversationData(data, callbackFn)

This function will update the Conversation Details associated with the current Chat.

Args:

  • data (object): The data that is to be set as Conversation Details for the User
  • callbackfn (function): will receive a response object

Usage:

const payload = { "product" : "software" }
SDK.setConversationData(payload, (response) => {
 // do something with data
});

Response format:

{
 "success": true,
 "response": true,
 "error": "",
 "meta": {}
}

If there are any errors, the success flag will be false and the corresponding error message will be set.

getConversationData(callbackFn)

This function will fetch the Conversation Details associated with the current Chat and return the data.

Args:

  • callbackFn (function) will receive a response object

Usage:

SDK.getConversationData((response)=>{
 // do some thing with response
})

Response format :-

{
 "success": true,
 "response": {
 "product" : "software"
 },
 "error": "",
 "meta": {}
}

If there are any errors, the success flag will be false and the corresponding error message will be set.

setUserDetails(data, callbackFn)

This function will update the User Details associated with the current User.

Args:

  • data (object): The data to be updated in User Details for the User
  • callbackFn (function): will receive a response object

Usage:

const payload = { "email" : "john@gmail.com" }
SDK.setUserDetails(payload, (response) => {
 // do something with data
});

Response format:

{
 "success": true,
 "response": true,
 "error": "",
 "meta": {}
}

getUserDetails(callbackFn)

This function will fetch the User Details of the current User.

Args:

  • callbackFn (function): will receive a response object

Usage:

SDK.getUserDetails((response)=>{
 // do some thing with response
})

Response format:

{
 "success": true,
 "response": {
 "email" : "john@gmail.com"
 },
 "error": "",
 "meta": {}
}

getChatDisposition(callbackFn)

This function will fetch chat disposition data for the current business Note: This is available in v2 of athena SDK

Args:

  • callbackFn (function): will receive a response object

Usage:

SDK.getChatDisposition((response)=>{
 // do some thing with response
})

Response format:

{
 "success": true,
 "response": {
 "category": ["reason"]
 },
 "error": "",
 "meta": {}
}

If there are any errors, the success flag will be false and the corresponding error message will be set.

setChatStatus(closingCategory, callbackFn)

This function will update the chat as completed, if closing categories are provided.

Args:

  • closingCategory (object): Provide closing category object with reason, subReason and comment (can be empty), if it's required for that business. Otherwise, provide an empty object.
  • callbackFn (function): will receive a response object

Usage:

const closingCategory = {
 "reason" : "payment",
 "subReason" : "not reflected",
 "comment" : "please follow up asap!"
}
SDK.setChatStatus(closingCategory, (response) => {
 // do something with data
});

Response format:

{
 "success": true,
 "response": true,
 "error": "",
 "meta": {}
}

Sample Integrations

You can refer to this sample integration tool as a reference point.

Expansion of the RHS Custom tool

We have an expand click that allows you the expand the RHS section so that agents can easily perform actions on an external tool. Once you switch the chat tab ie move to another chat, the RHS section moves from expand state to a default state (covering 26% width of your screen).

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • What is a Raw Chat Link?
  • Canned Responses
  • Bulk Complete Chats Manually
  • How to enable the Notifications and Sounds for the Agents?

Platform

  • Conversation Studio
  • Smart Skills
  • Advanced NLU
  • Intelligent Analytics
  • Omnichannel
  • Smart Agent Chat
  • Enterprise Security
  • Integrations

Solutions

  • Conversational Commerce
  • Lead Generation
  • Customer Care
  • WhatsApp
  • Conversational IVR
  • Google Business Messages

Industries

  • Retail/ E-Commerce
  • Financial Services
  • Travel & Hospitality
  • Telecom

Knowledge

  • ROI Calculator
  • Reports & Research
  • Case Studies
  • Webinars
  • ISAT
  • Tech Blog
  • Business Blog
  • Resources
  • Haptik v/s Yellow
  • Haptik v/s Liveperson
  • Haptik v/s IBM Watson
  • Haptik v/s Verloop
  • Conversations on AI

Company

  • Why Haptik
  • About Us
  • Careers
  • News & Media
  • Awards & Recognition
  • Contact Us
  • Partnerships
  • Investor Relations

Subscribe

Sign up to recieve the latest updates

Find us on

  • Twitter-footer
  • Linkedin-footer
  • YT-footer
  • Insta-footer
  • G2-footer
  • Facebook-footer

Knowledge Base Software powered by Helpjuice

Copyright © jio Haptik Technology Limited 2021 | Data Security & Privacy Policy | GDPR

North America | Asia Pacific | Africa | enterprise@haptik.ai

Definition by Author

0
0