To set a bot when no agent is online to response to visitor, login to Fibotalk
Click on Channels , then Offline Settings
Select "Bot" , and any information you would like to collect from your website visitor
Click on "Save" to finalise the changes