🎉 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 Zammad Tickets from Gravity Forms Submissions

GravityExtra
How to Create Zammad Tickets from Gravity Forms Submissions

Contact forms and helpdesks often live in two separate places. A visitor fills in a form on your website, the message lands in somebody’s inbox, and a person on the team copies the name, the email address and the problem into the helpdesk by hand. Details get lost, replies are slow and the customer’s history is split in two. This guide shows how to send Gravity Forms submissions to Zammad automatically, so every form becomes a Zammad ticket for the right customer and the right group, using the Gravity Forms Zammad Premium Add-on and no code at all.

Why connect Gravity Forms to Zammad

Zammad is an open-source helpdesk. It collects email, chat, phone notes and web requests into tickets that a team can assign, prioritise, tag and close. Many organisations pick it because they can run it on their own server and keep their support data in their own hands, and there are hosted options for teams that prefer not to manage a server.

Website forms are usually the one channel that does not flow into it. Support requests, warranty claims, billing questions, quote requests and complaints all start on a form. When they reach Zammad on their own, you get:

  • One customer record. The ticket is filed for the Zammad customer with the same email address, so agents see every earlier ticket from that person.
  • No retyping. Names, email addresses and answers arrive exactly as they were typed, with uploaded files listed as links.
  • Routing from the start. The group, priority, state and tags are set from the form, so the ticket lands in the right queue with the right urgency.
  • A trail both ways. The Gravity Forms entry links to the ticket, and the ticket links back to the entry.

What you need

You need WordPress with Gravity Forms 2.9 or newer, PHP 7.4 or newer, the add-on with an active license, and a Zammad reachable over https. In Zammad, an administrator switches on Token Access under Settings, System, API, and the agent who will own the integration creates a personal token with the ticket.agent permission. That is all; there is no app to register and nobody to ask for approval.

Step 1: create the API token

Log in to Zammad as the agent the tickets should come from. Open the avatar menu, choose Profile and then Token Access, and create a token named something like “Website forms”. Tick ticket.agent, and also admin.user if that account may not create customers on your system. Copy the token right away, because Zammad shows it only once.

The token carries the rights of that agent. Tickets can only be created in groups the agent can access, which keeps form traffic exactly where you want it.

Step 2: connect the add-on

In WordPress, go to Forms, Settings, Zammad and activate your license. Then enter the address you open Zammad with, paste the token and type a default group such as Users or Support. Click Test connection: the add-on asks Zammad who the token belongs to and lists your groups, so you know at once that the address, the token and the group are right.

The Zammad settings page in Gravity Forms: license key, Zammad address, API token, default group and a Test connection button showing the connected agent
The settings page: Zammad address, API token, default group and the Test connection result.

The token is encrypted before it is saved and never shown again. If you would rather keep it out of the database, you can define it in wp-config.php instead.

Step 3: build the form

A good support form asks for what your agents need to start working: name, email, an optional phone number and company, a topic, an urgency and a free text field. Add a file upload for screenshots if your team works with them. Conditional logic keeps the form short, for example by showing an invoice number field only when the topic is Billing.

A front-end Gravity Form for contacting support with name, email, phone, company, topic, urgency and a message field
A support form on the site. The topic and urgency choices route the ticket.

Give the topic drop-down the names of your Zammad groups as its values, such as Support, Sales and Support::Billing. The visitor sees friendly labels, and the add-on receives the group names it needs.

Step 4: map the form to a ticket

Open the form settings, choose Zammad and add a feed. Map the customer email and name, then fill in the ticket:

  • Title, for example “Support request from {Company:4}”.
  • Group, either a fixed group or the merge tag of the topic drop-down with the :value modifier, so the group name is used rather than the label.
  • Body, with {all_fields} for a clean list of every answer.
  • Article type: a web message from the customer, so replies go straight to them, or an internal note for agents only.
  • Priority and state, fixed or from a form choice.
  • Tags, such as “website” plus the urgency.
The Zammad feed settings in Gravity Forms: customer email and name, ticket title, group, body, article type, priority, state, tags and the condition
A feed: the customer fields and every ticket option, with merge tags for routing.

Turn on the condition if only some submissions should become tickets. A common setup has two feeds on one form: one for customers that creates a ticket, and another that sends sales enquiries to a different group.

Step 5: send a test entry

Fill in the form as a visitor would. The add-on searches Zammad for a customer with that exact email address, creates one if needed, and creates the ticket with the first article in a single request. On the entry screen you will see a note with the ticket number and a link that opens the ticket in Zammad.

A Gravity Forms entry screen with the field values and a note confirming the Zammad customer and ticket were created, with the ticket link
The entry keeps a note with the ticket number and a link straight to the ticket in Zammad.

Tell people their ticket number

The add-on adds the merge tags {zammad_ticket_number}, {zammad_ticket_url} and {zammad_ticket_id}. Put the ticket number in the confirmation email so customers can quote it when they write back, and link the ticket in the internal email to your team. Two extra notification events, “Zammad ticket created” and “Zammad ticket failed”, let you send an email only when a ticket was made, or alert a support lead when it could not be.

Three routing ideas that work well

The same form can serve very different teams once the ticket fields come from the answers. These patterns are easy to set up and cover most support sites:

  • Route by topic. A drop-down with the values Support, Sales and Support::Billing sends each request to its own group. Agents in the billing group never see sales enquiries, and nobody has to sort the queue by hand.
  • Raise the priority from urgency. Map an urgency choice with the values low, normal and high to the priority. A customer who reports that orders are blocked gets a 3 high ticket that stands out in the overview, while a simple question stays at 2 normal.
  • Tag the source. Add a fixed tag such as website, plus the merge tag of the product or plan field. Zammad reports and views can then count requests per channel and per product without anybody filling in a field.

Because the condition is set per feed, you can also keep sales leads out of the helpdesk entirely: one feed for support topics with a condition on the topic, and nothing for the rest. Customers who choose “New project” can then go to your sales add-on or an email notification instead.

A short test checklist

Before you put the form live, spend five minutes on these checks. They catch almost every setup problem:

  1. Run Test connection and make sure the group you use appears in the list.
  2. Send one entry with a brand-new email address and confirm a new customer and a ticket appear in Zammad.
  3. Send a second entry with the same address and confirm the ticket is filed for the same customer.
  4. Pick each topic once and check that the ticket lands in the expected group with the expected priority and tags.
  5. Change the token to a wrong value, send an entry, and confirm the error note and the “ticket failed” email arrive. Then restore the token and use Resend Feeds on that entry.

Retries that never double up

A helpdesk full of duplicate tickets wastes everybody’s time. The add-on keeps the customer and ticket ids on the entry, so using Resend Feeds on an entry that already has a ticket does nothing but add a note. Each ticket also carries a reference to its entry. If Zammad created a ticket but the answer was lost on the way back, the next try finds that ticket by its reference instead of creating a second one. When two submissions from a new customer arrive at the same moment, the second one simply reuses the customer the first one created.

Security you can explain to your IT team

  • Only https addresses are accepted, and addresses on private or local networks are refused before any request is made.
  • The token is sent only in the Authorization header, never in a URL, and never written to a log or an entry note.
  • Redirects are never followed, so the token cannot be passed to another host.
  • The add-on contacts only your Zammad and the GravityExtra license server.

Common questions

Does it work with self-hosted Zammad?

Yes. Any Zammad reachable over https works, including one in a sub-folder or on a custom port. Token Access must be switched on.

What happens if Zammad is down?

The submission is saved as usual and the visitor sees the normal confirmation. The entry gets an error note with the reason, the “ticket failed” notification is sent, and you can use Resend Feeds once Zammad is back.

Will it overwrite customer details?

No. An existing customer is matched by exact email address and is never renamed by a form. A new customer is created with the name from the form.

Can I use Zapier or Make instead?

You can, but every submission then passes through another paid service, and retries can create duplicate tickets. The add-on talks to Zammad directly from your site, with no per-task fees and with the duplicate protection built in.

Where is the full setup guide?

Every option, error message and developer hook is described in the Gravity Forms Zammad setup guide.

Turn every form into a ticket

Your support forms are tickets that have not been opened yet. Connect Gravity Forms to Zammad once, and every request reaches the right group with the right priority and the customer already attached, without anyone copying a thing.

See the Zammad add-on

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