added initial chat transaction logic