How to create Case when agents are not available in Salesforce Embedded Chat?

"Offline support" feature in the Embedded Service Deployment can be used to log case when the agents are not available. The "Offline support" feature will display Case Form when the agents are offline.
1. Enable "Offline support" in the Embedded Service Deployment.

2. Add the fields.

Video Reference:

Create Case when agents are Offline... x
Create Case when agents are Offline in Salesforce Embedded Chat