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
  • Bot Building
  • NLU

What is the difference between intent and entity?

Written by Medha Anand

Updated on October 26th, 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

What is an intent?What is an entity?Intent vs EntityWhen is the appropriate time to use an entity?When should one combine multiple intents into single intent and use entities?

What is an intent?

An intent constitutes a task or action the user wants to perform. It is a goal or purpose that is expressed in a user utterance. Expressions that mean the same thing but constructed in different ways are added to the same intent.

Example:

Intents Example user messages
Book_flight "I want to book a flight to Delhi next week"
"I would like to purchase a plane ticket to Singapore for Friday"
"Book a flight to Srilanka on Nov 24"
Reschedule_flight "I need to reschedule my flight to Mumbai from Nov 28 to Dec 1"
“Reschedule flight to Delhi to next week”
“I have to change travel date from 30 Nov to 5 Dec”
Play_content “Play harry potter on Netflix”
“I want to watch Mission Impossible”
“On Hotstar play Avengers”

What is an entity?

Entities: An entity represents values which is collected from the user in a conversation. Depending on the context of the conversation, the required response can either be a single value or group of specific values.

An entity in an IVA is used to add values to the search intent.

Intent vs Entity

It is important to understand the difference between intent and an entity.

An intent represents an action that the user wants to perform and the entity represents a keyword that you want to be extracted from the user utterance.

Intent refers to the goal the user has in mind when typing in a question or comment. While entity refers to the modifier the user uses to describe their issue, the intent is what they really mean.

Intent User utterance Entity extracted Explanation
Book_flight Book a flight from Mumbai to Delhi From: Mumbai, To: Delhi Departure and arrival locations are important information for Book_flight intent
Play_content Play Avengers on Hotstar Content_name: Avengers, App_name: Hotstar Content name and App name information are extracted from the user utterance
Need_support Customer care number - No entity to be extracted from the utterance
Apply_loan I would like to apply for a home loan Loan_type: home loan Loan type entity is extracted from the user utterance. Entity value transition can be used here to traverse to the next step
Cylinder_price What is the price of 12 kg cylinder Cylinder_size: 12kg Cylinder size entity is extracted from the user utterance to fetch the price
Login_issues I am unable to login - No entity to be extracted from the utterance.

When is the appropriate time to use an entity?

Some examples of when you would use an entity in Bot Responses:

  • When you need a user's email ID and need to verify that inputs are valid IDs or not. The ‘email’ entity allows the detection of an email id.
  • When you need a user's phone number and need to verify that inputs are valid phone numbers. The ‘phone_number_without_validation’ entity detects a 10 digit number.
  • When you need to gather the city a user wants to fly into and need to verify that the user has indicated a city with an airport in it.

When should one combine multiple intents into single intent and use entities?

Intents should be varied so that we can capture the main goal that the user intended to perform. Intents that are too similar, have similar sentence structure and vocabulary can make it more difficult for our algorithms to distinguish.

For example, TransferMoney and GetTransactionDetails are separate intents in a banking app, but TransferMoneyFromSavings and TransferMoneyFromCurrent are too similar. It is recommended to use entities rather than intents.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • What is Natural Language processing?
  • What is bot disambiguation?
  • What does the Dialogue Manager do?
  • How does Smart Assist help the users?

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