Scheduling for Freelancers: Creating Invoices in Freshbooks

Auto generating an invoices for your x.ai meetings using Zapier and Freshbooks

Time is money and time spent trying to make money is different than time spent making money. x.ai can help save on the time it takes to make money thanks to the new updates to their zapier integration.

In my first post of this series, I explain how to you can use x.ai to facilitate booking and payments for your consultations. We’ve also integrated x.ai and Trello so you can manage your business consultations in the same place you manage your operations. In my last post, I showed you how to invoice clients in Quickbooks LINK whenever they book a certain type of meeting with you.

Today, we’ll walk through how to setup an invoice in Freshbooks after a meeting is booked in x.ai.

What is Freshbooks?

Freshbooks is an online accounting software designed for small and medium-sized businesses. Freshbooks targets service-based businesses, freelancers, and solopreneurs that need a way to track expenses and revenue for simple financial reporting.If you’re tracking your income in Freshbooks, you’re gonna want to record sales or paid services that are scheduled via your x.ai page. Here’s how you do it:

What do you need to connect x.ai and Freshbooks?

You’ll need

  • A Freshbooks Account
  • A Zapier Account
  • A x.ai Account – at least the individual subscription
  • 30 minutes

Account for new meetings in Freshbooks

The Steps

  1. Setup Zapier by authorizing x.ai
  2. Pull a sample meeting into Zapier
  3. Create a filter for your meetings
  4. Find or create a new customer in Freshbooks
  5. Create an invoice for each meeting

Getting Zapier Setup – Steps 1-2

If you’re following along from a prior post in this series, then you can skip right along to step 4.

The team at x.ai has created this handy guide to help you connect to Zapier. Once you’re connected, create a new trigger from x.ai. We’ll start with the “New Meeting Scheduled” Trigger Event. Choose your account and then, select “Test Trigger.” The information Zapier finds is what we’ll use. For this guide, you’ll want to find a meeting that matches the template or meeting page you would like to invoice.

Pro tip! If you haven’t booked a meeting from your calendar pages in a while, create a meeting just to use in this test scenario. It’s genius, because it makes sure you don’t create an invoice in relation to a friend/client as an accident. 😳

Filter Your Meetings – Step 3

This zap is going to fire every time a new meeting is scheduled which isn’t our goal. We want to create an invoice for each consultation meeting and not the other kinds. To do this, we’ll need to introduce a filter for the next step. A filter “Only proceed[s] when a condition is met.”

We want to use the Meeting Template URL as the filter for our meetings. To do this, we’ll want to set the Meeting Template URL as the condition. Then, insert the name of your meeting name in the field on the right. This tells Zapier to only continue if the meeting template matches your consultation meeting template.

For this demonstration, I’m using one of my free meeting templates. This way I can send a test meeting without needing to disable payments. When I’m done creating the zap, I’ll come back to this step and change the template url to match my consultations. That said, test your filter to make sure it’s working correctly before moving on to the next step.

Creating a New Invoice For Each Meeting – Steps 4-5

If you haven’t already, connect Freshbooks to your Zapier account. Once that is done, you’ll want to use the “Find Customer” Action Event. This will allow us to find or create the Customer you’re invoicing in Freshbooks before creating the invoice.

It’s a good idea to check “Create Freshbooks New client if it doesn’t exist yet?” to make sure your zap doesn’t return an error if you’re dealing with a new customer. So, now that your customer exists, we can create your invoice.

Add another step to your zap. This time use the “Create Invoice” Action Event.

When asked for a customer, submit a custom response and add the customer ID you found in your last step.

Now it’s time to fill in your invoice particulars. If this isn’t your usual job, reach out to your book-keeper or business partner who usually creates the invoices directly in Freshbooks. You’ll want to make sure you track these data points properly. Trust me.

Once you’ve filled in all of your payment details, test your zap! How did you do?

For extra caution, you’ll want to log into Freshbooks and verify that the Invoice is setup properly there.

This tutorial covers how to create an invoice, but don’t stop there! Add more steps to this zap to send the invoice, email your book keeper, and even add a message to slack that a new appointment has been booked!

Enoma is a writer, speaker, and entrepreneur who loves to empower makers and creators to do good, and do it well. She runs Stackrie, an automation consulting firm helping small teams with big goals get stuff done—with less manual effort.


Schedule every meeting instantly. For free. Forever.