🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 27, 2026

How to Create Appwrite Documents from Gravity Forms Submissions

GravityExtra
How to Create Appwrite Documents from Gravity Forms Submissions

A form on your website collects a name, an email address and a few answers, and then that data usually sits in the WordPress database or an inbox, far from the app or dashboard that should use it. If your product or your team runs on Appwrite, the open-source backend server and self-hostable alternative to Firebase, there is a cleaner path: write every submission straight into an Appwrite collection as a document. This guide shows how to send Gravity Forms submissions to Appwrite automatically, mapping each field to a collection attribute, using the Gravity Forms Appwrite Premium Add-on and no code at all.

Why send Gravity Forms to Appwrite

Appwrite gives a project its own databases, authentication, storage and functions, and a lot of teams choose it because they can self-host it and keep their data in their own hands, with a managed cloud option for those who prefer not to run a server. Its Databases API stores data as collections of documents, where a collection defines typed attributes, much like a table defines columns.

Website forms are often the one source of data that never reaches that backend. Lead forms, booking requests, sign-ups, surveys and support requests all start on a Gravity Form. When they flow into Appwrite on their own, you get:

  • One source of truth. Submissions land in the same collection your app already reads, so a dashboard, a mobile app or an automation can use them at once.
  • No retyping or exports. Names, emails and answers arrive exactly as they were typed, mapped to the attributes you choose.
  • Your own infrastructure. The data goes to your Appwrite endpoint, whether that is Appwrite Cloud or a server you host, under your own terms.
  • Structure from the start. Each field maps to a typed attribute, so the document is clean and queryable, not a blob of raw form data.

What you need

You need WordPress with Gravity Forms 2.5 or newer, PHP 7.4 or newer, the add-on with an active license, and an Appwrite project reachable over https. In Appwrite you create a database, a collection with the attributes you want to fill, and an API key with the documents write scope. There is no marketplace app to register and nobody to ask for approval; the integration uses your own project id and key.

Step 1: prepare Appwrite

In the Appwrite Console, open your project and create a database, noting its Database ID. Inside it, create a collection and note its Collection ID, then add the attributes you want, for example name (string), email (email), plan (string) and message (string). Under Overview, Integrations, API keys, create a key with the documents.write scope (and databases.read so the connection test can read the database), and copy it; Appwrite shows the full value once. Finally note your Project ID from Settings and your endpoint: https://cloud.appwrite.io/v1 on Appwrite Cloud, or your own address ending in /v1 when self-hosted.

Step 2: connect the add-on

In WordPress, go to Forms, Settings, Appwrite and activate your license. Enter the endpoint, the project id, the API key and the default database id, then click Check the connection. The add-on reads the database once to confirm that the endpoint, the project id, the key and the database id are all correct, without storing anything.

The Appwrite settings page in Gravity Forms: license key, endpoint, project id, API key, default database id and a Check the connection button
The settings page: endpoint, project id, API key and default database id.

The API key is encrypted before it is saved, with a secret derived from your WordPress salts, and it is never shown again or written to a log. Every request is locked to the host of your endpoint, so the key can only ever reach your own Appwrite.

Step 3: map fields to attributes

Open a form, go to Settings, Appwrite and add a feed. Give it a name, set the collection id, and leave the database id empty to use the default or set it to write to a different database. Then build the attribute map: each row connects an attribute key in your collection to a form field, or to a custom value you type where merge tags work. Keep the attribute keys exactly as they are in Appwrite, and make sure each value fits the attribute type.

The Appwrite feed settings in Gravity Forms: collection id, database id and the attribute to field map
A feed: the collection id, an optional database override and the attribute map.

What happens on submit

When the form is submitted, the visitor sees your normal confirmation; Appwrite is never mentioned to them, and a slow server never blocks the form. Behind the scenes the add-on builds the document from your map, gives it a unique id and creates it with a single POST to /databases/{databaseId}/collections/{collectionId}/documents, authenticated with the project and key headers. The entry gets a note with the new document id and the collection, and the document id and status are stored on the entry for your notifications and columns.

A Gravity Forms entry screen with the field values and an Appwrite box confirming the document was created
The entry keeps a note and an Appwrite box with the status and document id.

Because the call is fully guarded, a failure only writes a note and fires a notification event. A timeout is treated as “unsure” and is never repeated on its own, so you never get a duplicate document without checking first. Two merge tags, {aw_doc_id} and {aw_status}, and two notification events let you confirm a create or be alerted to a failure.

Frequently asked questions

What do I enter for the endpoint, project id and API key? The endpoint is your Appwrite API address ending in /v1 (https://cloud.appwrite.io/v1 on Appwrite Cloud). The project id comes from your project settings, and the API key is created under Integrations with at least the documents write scope. The key is sent in the X-Appwrite-Key header and the project id in X-Appwrite-Project.

Where do I find the database and collection ids? In the Appwrite Console under Databases: each database shows its Database ID, and each collection inside it shows its Collection ID. You set the database id once in the settings (a feed can override it) and the collection id on each feed.

How does attribute mapping work? Each feed row maps one attribute key to a form field or a typed value. The attribute keys must already exist in the collection, and the values must match their types; Appwrite refuses a document with an unknown attribute or a value that does not fit. Multi-value fields are joined into a comma-separated string.

Does it work with self-hosted Appwrite? Yes. Enter your own endpoint ending in /v1. Self-hosted and Appwrite Cloud behave the same way, and the add-on only ever contacts the endpoint you set.

Is my data private? No form data is sent to GravityExtra. It goes only to your Appwrite server, which you run on Appwrite Cloud or self-host. The API key is encrypted at rest with a secret derived from your site salts, never shown again and never logged.

For the full walkthrough, every feed option and troubleshooting, see the Gravity Forms Appwrite setup guide.

Put your form data where your app lives

Your forms already collect the data your product needs; the only question is where it goes. With the Gravity Forms Appwrite Premium Add-on, every submission becomes a clean, typed document in your own Appwrite collection, with your endpoint and key encrypted at rest, a connection test, merge tags, notification events and a call that never blocks the submission. Map your fields once and let each form fill your backend on its own.

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