The acquisition includes an $18 million investment that will help the drive-thru AI company expand more quickly.