🎉 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 Post Gravity Forms Submissions to Your Own Mattermost, Rocket.Chat or Zulip

GravityExtra
How to Post Gravity Forms Submissions to Your Own Mattermost, Rocket.Chat or Zulip

Your team already lives in a chat window. When a lead fills in a form on your site, the fastest way to act on it is to drop the details straight into the channel where the right people are already talking. If you run your own chat server, you can do that without handing a single byte to an outside service. The Gravity Forms Self-Hosted Chat Premium Add-on posts each submission to your own Mattermost, Rocket.Chat or Zulip server, in the channel or stream you choose, with a message you write from the form’s own answers.

This guide explains why self-hosted chat is a good fit for form notifications, how the add-on connects to each of the three servers, and how to build a feed that posts exactly what you want, where you want it. Everything described here runs between your WordPress site and the chat server you control. Nothing is sent to a hosted chat provider, and nothing is routed through GravityExtra.

Why post form submissions to a self-hosted chat server

E-mail is still the default way to hear about a new form entry, but a busy inbox is a poor place to react quickly. A message in a channel is seen by everyone who should see it, it can be replied to in a thread, and it keeps the whole team in one place. If you have already chosen to host your own chat, you did it for a reason: control over your data, no per-seat pricing, and the freedom to run it inside your own network. Form notifications should respect that same choice.

That is the whole idea behind this add-on. It speaks only to the server you name, over HTTPS, with credentials you create and can revoke at any time. There is no middleman, no shared bot that other customers use, and no copy of your messages sitting on someone else’s servers. When a visitor submits a form, the message goes from your WordPress site to your chat server and nowhere else.

The three servers it supports

The add-on works with the three most popular self-hosted team chat servers, and it talks to each one the way that server expects.

  • Mattermost. Post with an incoming webhook, where you paste the webhook path your server gives you, or with the REST API using a bot access token. With the webhook you can set the channel and a display name; with the REST API you post to a channel id as the bot.
  • Rocket.Chat. Post with an incoming webhook path, or with the REST API using a personal access token and the matching user id. You can target a channel such as a public room or a direct message.
  • Zulip. Zulip organises conversations into streams and topics. The add-on posts with Zulip’s REST API, using a bot e-mail and API key, to the stream and topic you pick.

You choose one server for your site and connect once. Switching later is a matter of changing the setting and the credentials; your feeds keep working.

Connecting your server

Install and activate the add-on, then open Forms, Settings, Self-Hosted Chat and activate your GravityExtra licence key. Pick your chat server from the first menu and decide how to post: an incoming webhook or the REST API. Enter your base URL, which is just the host of your server, for example chat.your-company.org, with no path and no trailing slash. For the webhook mode, paste the webhook path. For the REST API mode, enter the bot token, and for Rocket.Chat and Zulip the user id or bot e-mail as well.

The Self-Hosted Chat settings screen in Gravity Forms: the chat server choice, the webhook or REST API mode, the base URL, the encrypted token, the default channel and the Check the connection button

The token is encrypted before it is stored, using a key derived from your site’s own security salts, and it is never shown again. The add-on only ever sends to the base URL you saved, so there is no way for the token to leak to another host. When your details are in, press Check the connection. The add-on asks your server a read-only question with the saved credentials and reports whether it reached the server. It posts nothing during this check, so you can test as often as you like.

Building a feed

A feed is a rule that says where to post, what to say and when. Open a form, go to Settings, Self-Hosted Chat and add a new feed. Give it a clear name, such as Website leads to Mattermost, so you can tell your feeds apart later. Set the channel or stream, add a Zulip topic if you use Zulip, and write the message.

A Self-Hosted Chat feed: the channel or stream, the Zulip topic, the message with merge tags and the condition

The message is where the add-on earns its keep. Use Gravity Forms merge tags to drop answers straight into the text. A booking form might post something like: New booking request from {Name:1} on the {Plan:2} plan, with the e-mail {Email:3}. Every server understands Markdown, so you can make the message easy to scan with bold labels, bullet lists and links. If you leave the channel empty, the feed uses the default channel from the settings, which keeps simple sites tidy. The channel field also accepts merge tags, so you can route a message to a different channel based on an answer, such as the region or department a visitor picked.

Because feeds are independent, one form can post a short alert to one channel and a full summary to another, each with its own condition. Conditional logic means a feed can fire only for some entries, for example only paid orders or only enquiries from a certain country. You can add as many feeds to a form as you need.

Posting that never makes the visitor wait

When an entry is saved, every matching feed is queued and a background job does the posting. The visitor sees the normal Gravity Forms confirmation at once; a slow or unreachable chat server never holds up the form and never shows an error on the page. This matters: a form should always feel instant, even when a downstream service is having a bad day.

The add-on also takes care never to post the same submission twice. Before a request leaves, it records that the message is on its way. If your server cannot be reached because of a brief network problem, the job is retried later with a growing delay. If a request times out or the reply cannot be read, the message might already have landed, so the add-on will not send it again; instead it marks the entry as unsure and gives you a reference to search for in your chat server. You stay in control, and a flaky connection never floods a channel with duplicates.

Seeing the result on every entry

Each post writes a note on the entry and fills a tidy box on the entry detail screen. The box shows the feed, the status, the channel the message went to and the message id your server returned. A failure is recorded as an error note with the reason, so you always know what happened without leaving WordPress.

The Self-Hosted Chat box on a Gravity Forms entry: the feed, the status posted, the channel and the message id the server returned

Three merge tags carry the result into your Gravity Forms notifications and confirmations: {chat_status} for the outcome, {chat_message_id} for the id your server returned, and {chat_channel} for the channel the message went to. Two notification events, one for a message that was posted and one for a message that could not be posted, let you e-mail your team when something needs a human. A daily cap gives you a safety net while you test a new feed, and two bulk actions in the entry list let you post to a group of entries at once, which is handy for catching up after your server was offline.

A worked example

Imagine a studio that takes booking requests through a Gravity Forms form. The team watches a channel called bookings in their own Mattermost server. They add one feed named Website bookings, set the channel to bookings, and write a message that reads: New booking request. Name {Name:1}. Plan {Plan:2}. Email {Email:3}. They turn on a condition so the feed only fires when the plan field is filled in. From then on, every real booking lands in the channel within a second of the visitor pressing submit, formatted and ready to act on, while the visitor simply sees the usual thank-you message. When the studio later opens a second location, they add a second feed that routes to a regional channel using a merge tag, with no change to the first. That is the kind of small, reliable automation that saves a team from refreshing an inbox all day.

Built for developers too

If you want to change a message on the fly, the gform_selfchat_message filter lets you adjust the channel, topic, display name or text before a feed posts, or cancel the message for a single entry. Two actions, gfsc_chat_sent and gfsc_chat_failed, fire after each result, so you can log to another system or trigger your own workflow. The whole client is written so the network call is handed in, which keeps the add-on predictable and easy to reason about.

Keep your notifications on your own infrastructure

If you have gone to the trouble of running your own chat, your form notifications should live there too, not in a third-party inbox or a hosted service. This add-on gives you fast, reliable posting to your own Mattermost, Rocket.Chat or Zulip server, with the safety of background jobs, retries and no duplicates, and the clarity of a note on every entry. For the full field reference and setup details, read the Self-Hosted Chat setup guide.

Ready to connect your forms to your own team chat? Get the Gravity Forms Self-Hosted Chat Premium Add-on and post your next submission straight into the channel where your team is already working.

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