What are entities?
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
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
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
Entities
When users type their query and ask the bot to complete a task for them, the bot would require some additional information to provide the required solution. This information could be user-specific data like personal details, etc. This information might also need to be stored in the bot or sent to the backend APIs to fetch user-specific data.
For example, when the user texts "I want to book a flight to New York next week", the user has provided the destination city within their message. The bot can extract and store this information.
These variables which help us to store these values are called “entities”.
Entities can be used when you want to ask certain information to the user in the user journey on the bot.
Along with extracting keywords from the user's messages, entities can also be asked directly to the user such as their name, email address, phone number, and so on.
There are two types of entities -
- Public entity - Most commonly used entities such as name, email, phone number, etc. These are publically available. You can learn more about it here.
- Local entity - These are Use case-specific entities such as order id, and transaction id. You can create these and customize it as per your requirements. You can read more about it here.
You can create public or local entities to suit your needs.
You can check this article to learn more about adding an Entity.
How does using an entity affect the other Bot Responses?
The flow of Bot responses goes from top to bottom in terms of evaluation. The order of the entities and their order relative to Bot Responses inputs, matters. First, the initial bot reply comes, then the entities, and then finally the final bot reply. The delayed message is sent only after a certain level of inactivity. The initial/final bot replies might be not needed in some scenarios. Note that to change the order of the Bot Responses inputs, simply click and drag the reorder handle.
Entity Scenarios
- If there are no entities: If it’s a simple step that doesn’t need to collect entities or data, a simple bot response is all that’s needed. You won’t be able to add a final bot reply as that would be redundant as there are no middle stages.
- If there is one entity: If there’s only one entity, then there is no initial bot reply as that entity’s responses serve as the initial bot reply.
- If there are multiple entities: If there are multiple entities, then all the responses are required. (Initial Bot Response, Entity Responses as well as the final bot reply).