A deal event sends a Mailgun template
You map a Krokul event to a Mailgun template, for example a paid invoice to a receipt. Krokul calls the Messages API with the template name, fills t:variables with the deal title, amount and document number, and adds the deal UUID as the v:deal_uuid parameter. The deal feed records which template went out and to which address.