add init version of chat example, which is using sdk2.0