The primary smoky flavor compounds, guaiacol and syringol, are generated through the pyrolysis of lignin, a complex polymer found in wood. Different wood types influence their ratios; for example, angiosperm wood yields more syringol, while gymnosperm wood produces more guaiacol.