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

Gravity Forms Kommo Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Create a long-lived token in Kommo
  4. Install and connect
  5. Create a feed
  6. Contact
  7. Lead
  8. What happens on submit
  9. Merge tags and notifications
  10. Retries never create duplicates
  11. Errors and what they mean
  12. Security and privacy
  13. For developers
  14. Questions
  15. Do I need a Kommo marketplace app or partner approval?
  16. Can one form send leads to different pipelines?
  17. What happens to a returning customer?
  18. Are file uploads sent?

Video walkthrough

Gravity Forms Kommo Add-On Setup Guide: Contacts, Leads & Pipelines (WordPress Side)
Video setup guide: Gravity Forms Kommo Watch on YouTube

The Gravity Forms Kommo Premium Add-on connects your WordPress forms to Kommo (formerly amoCRM), the sales CRM built around pipelines and conversations. When someone sends a form, the add-on finds the contact with the same email address or phone number, or creates one, links the company, and creates a lead in the pipeline and stage you choose, with the sale value, the responsible user, custom fields, tags and a note that lists every answer. Your sales team sees the new deal in Kommo a moment after the visitor clicks Send.

It works with your own Kommo account through a long-lived token of a private integration. You do not need a marketplace app, a partner account or any approval from Kommo: an account administrator creates the token in a minute, you paste it into Gravity Forms, and the add-on stores it encrypted. The add-on only ever talks to your own Kommo address. This guide covers the setup, every feed option, retries, notifications and what each error means.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer.
  • An active license key for this add-on.
  • A Kommo account (any paid plan or the trial) and a user with administrator rights to create the token.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else, so a form is never left half connected.

Create a long-lived token in Kommo

The add-on uses the Kommo REST API (version 4) with a long-lived token. Kommo issues these tokens to private integrations, which are integrations used only in your own account. Creating one does not publish anything and needs no review:

  1. Log in to Kommo as an account administrator and open Settings → Integrations.
  2. Click Create integration and choose a private integration. Give it a clear name such as “Website forms” and save it.
  3. Open the new integration, go to the Keys and scopes tab and click Generate long-lived token.
  4. Choose how long the token should last. Kommo allows anything from one day to five years; pick a date that suits your security policy and put a reminder in your calendar.
  5. Copy the token straight away. Kommo shows it only once. Treat it like a password.

The token acts with the rights of the user who created it, so every contact, company and lead the form creates is visible in Kommo’s history as coming from that integration. You can revoke the token at any time from the integration’s Authorization tab; the form then stops sending until you paste a new one.

Install and connect

  1. Upload and activate the add-on in Plugins → Add New → Upload Plugin.
  2. Open Forms → Settings → Kommo, paste your license key and activate it. The Kommo fields appear once the license is active.
  3. In Kommo account, enter the address you open Kommo with, for example yourcompany.kommo.com. The short name yourcompany is enough, and a copied browser address with a page path is cleaned up for you. Older yourcompany.amocrm.com addresses work too.
  4. Paste the long-lived token and click Save Settings. The token is encrypted before it is written to the database and is never shown again.
  5. Click Test connection. The add-on reads your account and your pipelines and shows, for example, “Connected to Northwind Studio. Pipelines: Sales (5 stages), Partners (2 stages).” If something is wrong you see Kommo’s answer instead, such as an expired token.
The Kommo settings page in Gravity Forms: license key, Kommo account address, long-lived token and a Test connection button showing the account and its pipelines
The settings page: your Kommo account, the encrypted long-lived token and the Test connection result.

If you prefer to keep the token out of the database, define it in wp-config.php instead: define( ’GFKM_API_TOKEN’, ’your token’ );. The settings page then says that the token comes from wp-config.php and hides the token field.

Create a feed

Open the form, go to Settings → Kommo and click Add New. A feed decides what happens in Kommo for each entry of this form. You can add several feeds to one form, for example one per pipeline, each with its own condition. The pipeline, stage, user and custom field lists are read from your Kommo account when you open the feed, so they always match your setup.

The Kommo feed settings in Gravity Forms: contact email, phone, name and company, contact matching, pipeline and stage selectors, responsible user, sale value, tags, custom field maps, note and condition
The feed: contact details and matching, the pipeline and stage, the lead fields and the note.

Contact

  • Email and Phone: the merge tags of your email and phone fields, for example {Email:2} and {Phone:3}. At least one of them must have a value, because they are how the contact is found again.
  • First name and Last name: for example {Name (First):1.3} and {Name (Last):1.6}. If you only have one name box, put it in First name; the add-on splits a full name into first and last name.
  • Company: optional. A company with exactly this name is linked to the lead. If there is none, a new company is created together with the lead.
  • Find an existing contact by: Email, then phone (the default), Email only, Phone only, or Always create a new contact. Matching is exact: the email must be the same (upper or lower case does not matter) and the phone must be the same number, so “+1 415 555 0123” and “(415) 555-0123” match. A similar but different address is never used.
  • Existing contact: when ticked, a matched contact gets the name from the form and the mapped custom fields. Empty answers never clear a value, and an email or phone the contact already has is never overwritten; a missing one is added.
  • Contact custom fields: pick a Kommo contact field on the left and a form field on the right, for example Position and your Job title field.

Lead

  • Lead name: the title of the deal, {form_title} #{entry_id} by default. Merge tags work, for example Website enquiry: {Company:4}.
  • Pipeline and Stage: the pipeline the lead goes into and its stage. The stage list only shows the stages of the chosen pipeline, and a stage of another pipeline cannot be saved. Leave the stage on “First stage of the pipeline” to let Kommo use the first stage.
  • Responsible user: the Kommo user the lead, a new contact and a new company are assigned to. Account default leaves the choice to Kommo.
  • Sale value: optional, the lead budget as a whole number, for example {Budget:7} or {form_total}. Currency formatting from the form is removed.
  • Tags: optional, comma separated, for example website, {Service:5}. Duplicates are removed and up to 20 tags are sent.
  • Lead custom fields: map any Kommo lead field to a form field. Text fields receive the text; number fields a number; date fields a Kommo date; checkbox fields yes or no; list fields the option whose label matches the answer; and multi-select fields every matching option of a checkbox field. An answer that is not one of the options is left out rather than failing the lead.
  • Note: a note added to the lead, {all_fields} by default, which becomes a tidy “Label: answer” list of every field the visitor saw. Fields hidden by conditional logic are left out. Leave the box empty for no note.
  • Entry link: adds the form name and a link to the Gravity Forms entry at the end of the note.
  • Condition: only create a lead when the entry matches your rules, for example only when Budget is greater than 1000.

What happens on submit

The visitor sees your normal confirmation. Behind it the add-on finds the contact by email, then by phone, looks for the company by name and creates the lead. When the contact or company is new, the lead, the contact and the company are created together in one request to Kommo’s complex lead endpoint, so they are linked from the start. Then the note is added to the lead.

A front-end Gravity Form for a project enquiry with name, email, phone, company, lead source, services, budget, start date, project details and job title
A project enquiry form: each answer can feed the contact, the company or a lead field.

The entry gets a note that says exactly what was done, for example “contact #4401 created, company #5501 created, lead #9101 created in Sales / Qualified, tags website, Referral, note added”, with a link to the lead in Kommo. The lead link, the lead ID and the contact link are also saved as entry fields that you can show as columns in the entry list.

A Gravity Forms entry screen with the answers and a note confirming the Kommo contact, company and lead were created in the Sales pipeline, with the lead link
The entry: the answers and a note with the contact, company, lead and pipeline stage, linked to Kommo.

Merge tags and notifications

The add-on adds four merge tags you can use in confirmations and notifications:

  • {kommo_lead_id}: the ID of the lead.
  • {kommo_lead_url}: the address of the lead in Kommo.
  • {kommo_contact_id} and {kommo_contact_url}: the contact.

It also adds two notification events in Settings → Notifications → Event: Kommo lead created and Kommo lead failed. A typical setup sends the sales team an email on “lead created” with {kommo_lead_url}, and sends the site owner an email on “lead failed”, so no enquiry goes unnoticed if the token expires.

Retries never create duplicates

Gravity Forms lets you send an entry again with Resend or a retry. The add-on makes sure a second run never creates a second contact, company or lead:

  • The IDs of the lead, the contact and the company are kept on the entry. When the lead already exists for this entry and feed, nothing is sent and the note says so.
  • The contact is matched by its exact email or phone, and the company by its exact name, so a retry finds the ones created the first time.
  • If Kommo created the lead but the answer was lost on the way back (a timeout), the next run first looks for a lead with exactly the same name, created after the first try and linked to the same contact. If it finds one it uses it. If Kommo cannot be asked, the add-on creates nothing rather than risk a duplicate, and says so in the note.
  • Two runs at the same moment for the same entry are not possible: the second one stops with a note.

Errors and what they mean

A failed call never blocks the form: the entry is always saved and the visitor always sees the confirmation. The entry gets an error note with Kommo’s own answer, and the “Kommo lead failed” notification is sent. Common answers:

  • HTTP 401: the token is not valid or has expired. Generate a new long-lived token and paste it in the settings.
  • HTTP 402: the Kommo account is not paid. Renew the plan in Kommo.
  • HTTP 403: the user behind the token may not do this, for example create leads in that pipeline.
  • HTTP 400 with a field path: Kommo refused a value, for example a pipeline or custom field that was deleted. Open the feed, check the selections and save it again.
  • HTTP 429: too many requests in a short time. Kommo limits how fast an account can be called; send the entry again a little later.
  • A redirect: the account address points somewhere else. Use the address you open Kommo with.

A failed note, a contact that could not be updated or a custom field list that could not be read is a warning, not a failure: the lead is kept and the warning is written in the entry note.

Security and privacy

  • The long-lived token is encrypted with AES-256-GCM using your site’s own secret keys, never shown again, never written to logs or notes, and removed when the add-on is uninstalled.
  • The token is sent only in the Authorization header over HTTPS, and only to your own Kommo address on kommo.com, amocrm.com or amocrm.ru. Any other address is refused before a request is made, and redirects are never followed.
  • Only the answers you map, and the note you choose, are sent to Kommo.
  • Only users who may edit Gravity Forms settings can run Test connection.

For developers

  • Filters gfkm_contact_input and gfkm_lead_input change the contact and the lead before they are sent.
  • Action gfkm_lead_created runs with the lead ID and the contact ID; action gfkm_failed runs with the error text.
  • Filter gfkm_timeout sets the request timeout in seconds (20 by default).

Questions

Do I need a Kommo marketplace app or partner approval?

No. The add-on uses a private integration in your own account and its long-lived token, which any account administrator can create.

Can one form send leads to different pipelines?

Yes. Add one feed per pipeline and give each a condition, for example by the service the visitor chooses.

What happens to a returning customer?

They keep one contact card. The contact is found by email or phone, and the new lead is linked to it.

Are file uploads sent?

The note lists the address of each uploaded file, so your team can open it from the lead.

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