From the octagon to the SFT vertex