Getting "All states must have at least 1 non-empty variant message" error
- 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
When you create a Step in the Bot, the next thing that you do is add User Messages and Bot Responses. While adding Bot Responses, you can also add Entities, which you can use to store the information shared by the user. You can learn more about Entities, here.
For example, we have added an Entity named person_name. In this Entity, if we do not add any Chat Elements in the Bot Responses section, and we click on the Save button, we would get this error on our screen, that says we must have at least 1 non-empty variant message.
In order to avoid this error message, you should make sure that you have added a Chat Element under the entity section, as well as in the Final Response section of that entity.
Continuing the above example of person_name entity, we will go ahead and add a Chat Element under person_name entity section and Final Response section, as shown below -
By doing this, you can go ahead and click on Save. You should not be getting this error anymore.