What is the difference between Mandatory and Non-mandatory entities?
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.
- Getting Started
- Bot Building
- Conversation Design
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
- Agent Setup
- Analytics & Reporting
- Proactive Messaging
- Commerce Plus
- Troubleshooting Guides
- Release Notes
Mandatory and Optional Entities
The intent is the desired outcome of the whole user utterance, while entities are data extracted from the user utterance.
Intents are mandatory as they are important pieces of the puzzle to identify the user action or goal.
Entities are optional. You do not need to create entities for every step in your bot, but only for those where it is required for the bot to perform an action.
For example, your reminder bot could consist of three entities -
|date||mandatory||‘date’ entity is mandatory to set up meeting reminder|
|time||mandatory||‘time’ entity is mandatory to set up meeting reminder|
|phone_number||optional||‘Phone_number’ entity is an optional entity. This is only needed if the user wants a message notification before the meeting|
How does this work?
Add user utterance to the ‘Meeting reminder step’.
When user wants to setup a reminder, the conversation would go as follows -
- User utterance consists of all the information needed to schedule a meeting.
- User utterance only consists of the action information and the entities are missing. In such cases, bot will prompt the user to enter details for mandatory entities.
|User messages||Entity captured|
|What is the weather like tomorrow in San Francisco||$location - ‘San Francisco’ $time - ‘tomorrow’|