While creating an Item, tax can be defined for that particular item. If your business has GSTIN and that information is added to your company details in the software and the ledger to whom your selling its state is defined tax (CGST& SGST / IGST ) will be automatically calculated while making transaction.
However ,You can also manually choose tax while adding item to a transaction if not added to item.