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

What are the properties of HSL?

Written by Medha Anand

Updated on August 26th, 2022

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

HSL Data Attribute/Parameter DescriptionsPossible values for "uri"Possible values for "type"Keys of "payload" object

This doc will describe the various valid attributes and their values that can be used while generating the HSL JSONs as and when applicable.

HSL Data Attribute/Parameter Descriptions

The data part of the HSL holds most of the complex information enabling us to create complex chat elements. The data varies for every different type of the HSL. Before we dig into what all different data we could have, let’s quickly look into what actionable are how are they used along with different HSLs. Actionable is one of the most important parts of the data is used heavily across all kinds of HSL.

Actionable

Actionables exist to define both the existence & action of CTAs. Anatomy of an actionable object:

{
 "actionable_text": "<text on the CTA>",
 "location_required": "<true or false>",
 "uri": "<URI>",
 "is_default": "<0 or 1>",
 "type": "<type of actionable>",
 "payload": {
 "link": "<link>",
 "gogo_message": "<message>"
 }
}
Property Name Description
actionable_text This is the text shown on the actionable
location_required true or false, if true, location information is sent to the backend
uri dictates the screen interaction
is_default 0 or 1, if 1, on click of the element, this actionable will get triggered
type We have a type for an actionable, similar to types of HSL's
payload dictionary which carries the meta-data required for the actionable to do its job.

Possible values for "URI"

Values Description
CAROUSEL_DETAIL Opens a screen that has a carousel of image
GALLERY_PICKER Pops up the dialog to choose an image from the camera/gallery.
SEND_LOCATION Opens Place Picker and enables a user to send a particular location.
CAROUSEL_DEFAULT opens carousel with title and actionable (buttons)
SAVED_ADDRESSES Opens up the Saved Addresses screen with the list of saved addresses, if empty, the user can add
CALL Makes a phone call to a number provided in the payload.
LINK Fires up web view with a link provided in the payload.
SEND_MULTIPLE_LOCATIONS To allow a user to select two locations and send it back as a message.

Possible values for "type"

Like we have the type of HSL, we also have the type of an actionable. This type defines the nature of the actionable. The available types are:

Values Description
APP_ACTION Indicates an action that should happen when you tap on it. Usually combined with a URI.
MESSAGE_BAR Indicates an action that should happen when you tap on it. Usually combined with a URI.
TEXT Used to send a message in the same channel
TEXT_ONLY Mainly used by quick replies
TAB_LIST_TEXT_ONLY Used to send a message based on the chosen option in the TAB_LIST element.
FORM_SHOW Used to present a form in the same channel where the actionable is.
SHARE_RECEIPT Used along with the RECEIPT HSL object to take a snapshot of the receipt and make it shareable.
APP_FEEDBACK Used to allow a user to give feedback.
SHARE_REFERRAL Used to share referral message

Keys of "payload" object

An actionable payload is a dictionary that carries the meta-data required for the actionable to do its job. Some of the keys used in this payload are:

Values Description
url URL to redirect to
message This message is sent when the user taps on the actionable. Mostly used with the BUTTON element.
title Used to pass the information for the Carousel Details screen.
sub_title Used to pass the information for the Carousel Details screen.
description Used to pass the information for the Carousel Details screen.
images List of images. Used to pass the information for the Carousel Details screen.
lat_key lat key to be sent back along with the latitude. Used with the SEND_LOCATION & SEND_MULTIPLE_LOCATIONS URIs
lng_key lng key to be sent back along with the longitude. Used with the SEND_LOCATION & SEND_MULTIPLE_LOCATIONS URIs.
callback_link The URL is to be called once the apps get the Uber/Ola auth token.
lng_key lng key to be sent back along with the longitude. Used with the SEND_LOCATION & SEND_MULTIPLE_LOCATIONS URIs.
items a list of carousel elements
 

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • What are Button HSLs?
  • What is Form Builder HSL?
  • What are Chat Elements?
  • What are Carousel HSLs?

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