Salesforce Einstein BOT will display the API Name of the Variable whenever the value is null or blank.
1. Do a null check before displaying the variable to the customers.
2. Use Custom Chatbot User.
Make sure the Custom Chatbot user profile have access to the objects, fields, Apex Classes, etc.