Basic requirements
Our automated invoicing system is suited for freelancers who work with time-tracking apps, such as Harvest, Clockify, or Toggl. The resulting automated scenario relies on Harvest, but you can change this app for another time-tracking app as long as it is supported by Make.
On top of this, you will need a Make account (it can be a free one), a Google account, and an invoice template. We recommend making a copy of the template and adding it to a folder in your Google Drive account before proceeding.
Step 1: Creating the Make scenario
The first step in creating a Make scenario is to open the scenario builder. Once you log in to your Make account, you'll be taken to your Dashboard. On the top right of your screen, you'll see a "Create a new scenario" button. Click it, and you will land on the scenario builder.
In the scenario builder, you'll notice a circle with a plus sign in it, and an animated cursor showing you where to click to get started. Once you click on the circle, the list of available apps will appear. Search for "Harvest" and select the "List Time Entries" module as the scenario starter.
Step 2: Configuring the Harvest module
After selecting the Harvest module, you'll need to connect your Harvest account to Make. In the configuration box, click the "Add" button to grant authorization. Once authorized, configure the module by mapping the "ignore" keyword function to the "Number of entries to return" field.
The key configuration is setting up the date ranges dynamically. Since invoices need to cover the previous month, we'll use Make's date functions to automatically calculate these dates. The formulas ensure the scenario always fetches the correct time period without manual adjustment.
Pro tip: Make has built-in date functions similar to Excel that let you manipulate dates in powerful ways. The formulas might look complex at first, but you can copy-paste them directly into your scenario.
Where to find functions on Make
When configuring any module, clicking in a field reveals all available functions. The date functions we'll use include addDays (adds/subtracts days), setDate (sets day of month), formatDate (formats date output), and parseDate (converts string to date). These allow precise control over date calculations.
Step 3: Total hours by hourly rate calculation
After fetching time entries, we need to calculate total billable hours. Make's Numeric Aggregator tool sums up all hours from the Harvest entries. Add this tool by searching for "Tools" in the scenario builder and selecting Numeric Aggregator.
Configure it with the SUM function, mapping the "Hours" data from Harvest. This gives you the total hours worked during the period, which you'll then multiply by your hourly rate to calculate the invoice total.
Step 4: Setting up the filter
An important refinement is adding a Filter to ensure only time entries from the previous month are included. This prevents accidentally billing for the current month when the scenario runs on the 1st.
The Filter compares the month name of each entry against the previous month. Only matching entries pass through to the calculation steps. This ensures accurate billing even when running the automation across month boundaries.
Step 5: Setting up the variables to calculate the due
Now we'll create variables to store calculated values using the "Set multiple variables" tool. These variables will be used when generating the invoice. The key variables include:
- Total hours (rounded to 2 decimal places)
- Invoice amount (hours × rate)
- Month name (for invoice labeling)
- Your name and address (static info)
Each variable is created with specific formulas to ensure accurate calculations and proper formatting for the invoice.
Step 6: Creating the invoice
With calculations complete, we'll generate the actual invoice using Google Docs. The "Create a Document from a template" module uses your pre-made template, populating variables like:
- Invoice ID (formatted date)
- Bill date (current date/time)
- Due date (14 days from now)
- Client details
- Amount due
The module saves each new invoice to your specified Google Drive folder, creating a searchable record of all issued invoices.
Step 7: Download and email the invoice
After creating the invoice document, we'll convert it to PDF for sending. The "Download a file" Google Drive module fetches the newly created invoice and converts it to PDF format automatically.
This step ensures clients receive invoices in a universal format that can't be easily modified. PDFs also maintain consistent formatting across devices and email clients.
Step 8: Configuring the Gmail module
The final action is emailing the invoice to your client. The "Send an email" Gmail module lets you customize:
- Recipient address (can be multiple)
- Email subject line
- Message body
- PDF attachment
- CC/BCC recipients
You can use variables from earlier steps to personalize each email while maintaining a professional template structure.
Step 9: Testing the scenario
Before scheduling regular runs, test the scenario using the "Run once" button. Verify that:
- Correct time entries are fetched
- Calculations are accurate
- Invoice generates properly
- Email sends with correct attachment
Once confirmed working, schedule the scenario to run automatically on the 1st of each month. The scheduler lets you specify exact timing and handles all future executions automatically.