🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Amelia Bridge Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Before You Start
  4. Quick Start
  5. The Rule of a Form
  6. The Field Map
  7. What Happens to the Entry
  8. Merge Tags
  9. Prefill From the Last Booking
  10. Book Now: Open the Amelia Booking Page With a Choice
  11. One Thing to Know About Amelia Cancels
  12. Add-on Settings
  13. Developer Hooks
  14. Troubleshooting
  15. Frequently Asked Questions
  16. Does it need the paid version of Amelia?
  17. Does it create bookings or customers in Amelia?
  18. Does it make requests to an outside service?
  19. Are old bookings imported?
  20. What happens when my license expires?
  21. Every booking, in your entries

Video walkthrough

Gravity Forms Amelia Bridge: Turn Free Amelia Bookings into Gravity Forms Entries
Amelia bookings become Gravity Forms entries Watch on YouTube

The Amelia Bridge connects Gravity Forms to the free Amelia booking plugin. Every booking that a customer makes in Amelia becomes a Gravity Forms entry, so your intake forms, notifications, feeds, entry lists and exports can work with bookings like they work with any other submission. When the booking is canceled or moved, the entry follows. A form can be filled in for a returning customer from their last booking, and a redirect can send a visitor to your Amelia booking page with the service and the employee already chosen. Everything is done with the hooks that Amelia documents and that the free version fires. The add-on never writes anything into Amelia.

The Amelia screen in the settings of a Gravity Forms form: a switch to use the form for Amelia bookings, the choice between a new entry and adding to an existing one, the events to react to, the service filter and the field map
The rule of one form: what to react to and which field receives each piece of the booking.

What You Get

  • Bookings as entries. A rule per form: a new entry for every booking made in Amelia, with the customer, the service, the date and time, the status and more placed in the fields you choose.
  • A link to the intake form. Instead of a new entry, the booking can be added to the latest entry with the same email, for example the brief a customer filled in before booking.
  • Cancel and move follow. A canceled or moved booking updates the status, the date and the time in its entry and adds a note. Nothing new is created.
  • Notifications and feeds. Optionally send the notifications of the form and let the feeds of your other add-ons (a CRM, a mailing list, a webhook) process the entry.
  • Merge tags. Print the service, the start, the status or the booking number of the entry in a notification or a confirmation.
  • Prefill. Fill a form for the logged-in customer from their last booking.
  • Book now links. A merge tag that builds the address parameters Amelia reads, to open the booking page with a service, an employee, a category or a location chosen.
  • Filters. Follow only some services or events, only appointments or only events, only new bookings or also changes.

Before You Start

You need Gravity Forms 2.9 or newer, the Amelia booking plugin (the free version from the WordPress plugin directory is enough) and an active license key for this add-on. The add-on listens to the Amelia booking hooks. Amelia fires them in every version, including the free one.

Here is what the add-on does not do, so you can plan around it. It does not create customers, services or appointments in Amelia from a Gravity Forms submission. Amelia offers that only through the REST API of its highest plan, and the free version has no API key. It does not fill in Amelia’s own booking form from the address, because Amelia documents no parameter for the customer name or email. And the hooks pass the employee as a number, so the employee name is not available. Use the Book now link when you want a form to lead into a booking.

Quick Start

  1. Install and activate the add-on, then activate your license key in Forms → Settings → Amelia. The page tells you which Amelia version is active.
  2. Create a form for your bookings. Add the fields you want to fill, for example Name, Email, Phone and text fields for the service and the status, a Date field and a Time field.
  3. Open Settings → Amelia of that form and switch on Use this form for Amelia bookings.
  4. In the field map choose the field for each piece of the booking you want to keep. Leave the others empty.
  5. Save. Make a test booking in Amelia and open Entries: the booking is there, with a note.

The Rule of a Form

The rule is in the form settings, so every form decides for itself. Several forms can follow the same bookings, for example one that logs every booking and one that only follows a single service.

Setting What it does
Use this form for Amelia bookings The master switch of the form.
When a booking is made Create a new entry, or add the booking to the latest entry of this form from the last two days whose email field matches the customer. When no entry matches, a new one is created. An entry that already holds a booking is never overwritten.
Email field to match The field that is compared with the customer’s email. Only used when adding to an existing entry.
React to Booking made, booking canceled, booking moved. A cancel or a move updates the entry that was made for that booking and never creates one.
Bookings of Services (appointments), events, or both.
Only these service or event IDs Comma separated Amelia ids. Empty means all of them.
Send this form’s notifications Sends the notifications of the form that are set to Form is submitted, with the booking in the entry.
Run the feeds of other add-ons Lets the feeds of the form process the entry as if the form had been submitted.

The Field Map

Each row is one piece of the booking and a drop-down with the fields of the form. A Name field can receive the customer name and is split into first and last name. A Date field gets the date in its own format (month first, day first and the other Gravity Forms formats), and a Time field gets the time in its own style.

Row Value
Customer name, first name, last name As typed in Amelia.
Customer email, phone The email is saved in lower case.
Service or event name and ID The name of the service or the event, and its Amelia id.
Employee ID The Amelia id of the employee.
Start, start date, start time, end In the time zone of the Amelia booking (your site time zone).
Booking status approved, pending, canceled, rejected or no-show, as Amelia reports it.
Number of people, price From the booking.
Amelia booking ID, appointment or event ID Useful for support and for matching with Amelia.
Internal notes The internal notes of the appointment.

What Happens to the Entry

A Gravity Forms entry made from an Amelia booking, with the Amelia booking box on the side listing the customer, the service, the start time, the status and the booking number, and notes that say the booking was moved and canceled in Amelia
The entry keeps the booking: the mapped fields, an Amelia booking box and a note for every change.

Every entry made from a booking carries four pieces of entry meta: the booking id, the status, the start and the whole booking as data. They are offered as columns and filters in the entry list, and they are how a later cancel or move finds its entry. The entry detail page has an Amelia booking box with the booking, and a note is added for the booking and for every change.

In Amelia In the entry
A booking is made A new entry (or the booking is added to the matching entry), with the notifications and feeds you switched on.
A booking is canceled, in the customer panel or by an administrator The status field, the status meta and a note are updated.
A booking is moved, by a customer or in the Amelia calendar The date, time and status fields, the start meta and a note are updated. When an administrator moves an appointment that holds several bookings, each booking updates its own entry.
The same booking is reported twice One entry per form. A booking that already has an entry is skipped.

If a customer is registered on your site with the same email, the entry is linked to that user, so the entry list shows who it belongs to.

Merge Tags

The booking of an entry can be printed in any notification or confirmation of the form:

New booking {amelia:booking_id}
Service: {amelia:service}
When: {amelia:start}
Status: {amelia:status}
Merge tag Result
amelia:start The start date and time.
amelia:service The service or event name.
amelia:status The current status of the booking.
amelia:booking_id The Amelia booking number.
amelia:email, amelia:full_name, amelia:phone and the other rows of the field map The same values as in the field map.

The four most useful tags are listed in the merge tag menu of the form editor. A tag for an entry that has no booking prints nothing.

Prefill From the Last Booking

A Rebook form for a logged-in customer with the name, the email, the last service and the date of the last session already filled in from the latest Amelia booking
A returning customer sees the form already filled in from their last booking.

For a logged-in customer, any field that allows dynamic population can be filled from the customer’s latest booking. In the field settings, switch on Allow field to be populated dynamically and use one of these parameter names:

Parameter name Value
amelia_full_name, amelia_first_name, amelia_last_name The customer name of the latest booking.
amelia_email, amelia_phone The email and the phone.
amelia_service, amelia_service_id, amelia_provider_id The last service and the employee.
amelia_start, amelia_start_date, amelia_start_time The last session. Date and Time fields get their own format.
amelia_status, amelia_persons, amelia_price The rest of the booking.

A customer without a booking gets the name and the email of their WordPress account. A visitor who is not logged in gets nothing. The add-on keeps the latest booking of each customer in one option of your site, up to 500 customers, and you can switch that off in Forms → Settings → Amelia. With the option off, nothing is kept and the prefill falls back to the WordPress account.

Book Now: Open the Amelia Booking Page With a Choice

Amelia’s booking forms read the service, the employee, the category and the location from the address of the page. The merge tag amelia_book_query prints exactly that part of the address, so a Gravity Forms confirmation can lead a visitor straight into the booking. Create a confirmation of the type Redirect and use an address like this:

https://example-studio.invalid/book/?{amelia_book_query:service=3,4;employee=2}&contact={Name:1}

Replace the address with the page that holds your Amelia booking form, and the numbers with the ids from Amelia. Use commas for several ids of one kind. The tag accepts service, employee, category and location, separated by semicolons. Anything that is not a number is dropped, so the address is always clean. The merge tags of Gravity Forms work next to it, as in the contact value above.

One Thing to Know About Amelia Cancels

When a customer cancels from the link in Amelia’s email, Amelia shows its own confirmation page. In the free version it fires its cancel hook on that route only when a cancel success address is set in the notification settings of Amelia. Without that address nothing is reported, so the entry cannot follow. Set the cancel success address in Amelia, or let customers cancel from the customer panel. Cancels made by an administrator and cancels from the customer panel always arrive.

Add-on Settings

Setting What it does
Amelia connection Shows whether Amelia is active and which version.
Remember the latest booking of each customer Keeps the name, email, phone and last booking in one option for the prefill. Switch it off to keep nothing.

Developer Hooks

gfxamelia_entry_saved runs after an entry was made or completed for a booking. It receives the entry id, the booking as an array with the keys of the field map, and the form. gfxamelia_entry_updated runs after a cancel or a move updated an entry, with the same three values.

// Add a note and tag the entry every time the add-on saves a booking.
add_action( 'gfxamelia_entry_saved', function ( $entry_id, $booking, $form ) {
    GFAPI::add_note( $entry_id, 0, 'Desk', 'New booking for ' . $booking['service'] . ' on ' . $booking['start'] );
}, 10, 3 );

Troubleshooting

Problem Check
No entry after a booking The license key must be active, the switch of the form must be on, Booking made must be ticked, and the type (services or events) and the service ids must match the booking. Bookings made before the rule was saved are not imported.
A cancel does not reach the entry The entry must have been made by the add-on, and Amelia must report the cancel. See the note about the link in the cancel email above.
The date or the time is empty Map a Date field and a Time field, or use a text field for the start. The Date field and the Time field need a single field each.
The notification did not go out Switch on Send this form’s notifications, and check that the notification is set to Form is submitted and that its conditions are met.
The prefill is empty The visitor must be logged in, the field must allow dynamic population with one of the parameter names above, and the add-on must have seen a booking of that email (or the option to remember must be on).
The employee shows as a number Amelia passes the employee id only. Keep a small table of ids and names in your notification text if you need names.

Frequently Asked Questions

Does it need the paid version of Amelia?

No. It works with the free version from the plugin directory and with the paid versions, because it uses the booking hooks they all fire.

Does it create bookings or customers in Amelia?

No. It reads bookings from Amelia. Creating records from outside needs the REST API of Amelia’s highest plan.

Does it make requests to an outside service?

No. Everything happens inside your site.

Are old bookings imported?

No. The add-on reacts to new bookings, cancels and moves from the moment the rule is saved.

What happens when my license expires?

The add-on stops reacting to bookings. Your forms, entries and the data already saved stay as they are.

Every booking, in your entries

Turn bookings made in Amelia into Gravity Forms entries that follow cancels and moves.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr