Inverse design and additive manufacturing have enabled scientists to develop a new concept for generating THz radiation