This n8n template demonstrates automating an appointment letter creation process using a template and then having the HR approve before emailing the appointment letter to the candidate.
How it works
- Create an appointment letter template. e.g "Appointment Letter.doc" on Google Drive
- Form Submission node - Create a form trigger with the required fields that need to be capture as part of the appointment letter. Eg. Candidate Name, Position offered, Salary, Date of Joining, Candidate email, etc.
- Google Drive Copy node - Once the form is filled, it creates a candidate copy of the appointment letter by appending the candidate name to appointment letter. e.g. "Appointment Letter - <candidate name>.doc". This will be stored on the Google Drive
- Google Doc Update node - Fill the placeholders in the appointment letter with the candidate specific details such as Candidate Name, Position offered, Salary, Date of Joining, etc.
- Google Drive Download node - Create a PDF version of the candidate's appointment letter. e.g. "Appointment Letter - <Candidate Name>.pdf" and download it to Google Drive
- Google Drive Upload node - Upload the PDF to Google Drive
- Gmail Send Message node - Send an email to the HR requesting to review the candidate's appointment letter and 'Approve' or 'Reject' the appointment letter. This is the Human-In-The-Loop step
- If Node (for routing) - will return "true" if HR approves and "false" if HR rejects
If HR approves, go to Step 9 and Step 10
- Google Drive Download node - Get the PDF file
- Gmail Send Message node - Send an email to the candidate with the appointment letter (PDF) as the attachment
How to use
- The Form trigger node is used as an example but feel free to replace this with other triggers such as Google Sheet
- Create an Appointment Letter Google document with the follwing fields - Date, Candidate Name, Position Name, Fixed CTC, Joining Date and To be signed by Date. See sample letter format below:
<Appointment Letter.doc> (Google Document)
Appointment Letter
[Date]
Dear [Candidate Name],
Congratulations! We are pleased to offer you the [Position Name] at ABC Company.
Fixed CTC - [Fixed CTC]
Joining Date - [Joining Date]
Requirements
Google drive for upload and downloading the file
Gmail for sending emails
Sign the letter by - [To be signed by Date]
Signature