I have some incoming email that you should fetch and based on this data you have to create Freshdesk costumer and ticket (via API). Dealing with this data and a simple MySQL table you have to update a template pdf file. After that, it should be attached to the Freshdesk ticket.
That's it :)
I created and attached a flowchart that can explain you more accuracy.