smartchat backend