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

Gravity Forms Pipefy Integration Add-on

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. What you need
  2. Step 1: Create the service account in Pipefy
  3. Step 2: Save the service account (Forms, Settings, Pipefy)
  4. Step 3: Create a feed (Form, Settings, Pipefy)
  5. How values are sent
  6. What happens after a submission
  7. The entry page, notes, merge tags and notifications
  8. Follow the card
  9. Developer hooks
  10. What it does not do
  11. Troubleshooting
  12. Updating from version 1.0
  13. Frequently asked questions
  14. Can I send to several pipes?
  15. Does it need a Pipefy partner agreement or approval?
  16. Can it attach uploaded files?

The Gravity Forms Pipefy Add-On creates a Pipefy card in a pipe (or a record in a database table) for each matching Gravity Forms entry. A feed maps your form fields to the fields of the pipe start form, sets the title, phase, labels, assignees and due date, and a background job sends the card to Pipefy. It connects with your own Pipefy service account, so the cards appear in your own Pipefy organization and nothing passes through a GravityExtra server.

What you need

  • WordPress 5.8 or newer, PHP 7.4 or newer, Gravity Forms 2.5 or newer.
  • A Pipefy organization and a service account. Only a Super Admin of the organization can create one. Pipefy no longer supports personal access tokens, so version 2 uses a service account.
  • The service account needs a role in the pipe (or table) that may create cards (or records).
  • A Gravity Extra licence key (Forms, Settings, Pipefy).
  • Know your Pipefy plan: Pipefy counts every API request against a monthly allowance (the Pipefy help center lists 20 for Starter, 500 for Business and 10,000 for Enterprise; check your own plan). Each card is one request. Use the Monthly cap of requests setting to stay inside your allowance.

Step 1: Create the service account in Pipefy

  1. In Pipefy click the name of your company or your profile image, then Members and Permissions.
  2. Open the Service Accounts tab and click Create Service Account.
  3. Give it a name (up to 20 characters), choose its role in the organization and the life of its tokens (from 5 minutes to 30 days; it cannot be changed later, the add-on asks for a new token when one ends).
  4. Open the service account in the list and copy its Client ID, its Client Secret and its token endpoint.
  5. Add the service account to the pipe or table as a member with a role that may create cards or records.

Step 2: Save the service account (Forms, Settings, Pipefy)

  1. Activate your licence key.
  2. Paste the Client id, the Client secret and the Token endpoint and click Save Settings. The token endpoint must be an https address of a pipefy.com host; the add-on refuses any other address, so the secret can never be sent anywhere else. The secret is stored encrypted with your site’s security keys and is never shown again. Leave the box empty on later saves to keep it, type a new one to replace it, or tick Remove the stored client id, secret, token endpoint and token when saving. If you change the WordPress security keys (AUTH_KEY, SECURE_AUTH_KEY and their salts), enter the secret again.
  3. Click Check the connection. The add-on asks Pipefy for a token and for who the token belongs to (one API request) and creates nothing. The token is stored encrypted and is renewed automatically when it ends.

Pipefy connection and licence settings in Gravity Forms

Setting What it does
Client id, Client secret, Token endpoint The service account. Changing the client id, the secret or the endpoint ends the stored token.
Monthly cap of requests The add-on counts its own requests to the Pipefy API (a card is one request, a check is one request, “Show the fields” is one request) and stops sending for the rest of the month (UTC) at this number. Empty or 0: no cap. The note of a refused entry says so, and “Send to Pipefy again” in the entry list sends it later.
Webhook box Shows the address, the header name and the secret used by “Follow the card” (see below). “Make a new secret when saving” replaces the secret.

Step 3: Create a feed (Form, Settings, Pipefy)

Pipefy feed settings in Gravity Forms: pipe, phase, title and field mapping

  1. Give the feed a name and choose Create: a card in a pipe, or a record in a database table.
  2. Type the Pipe or table id: the number in the address of the pipe (app.pipefy.com/pipes/123456), or the id of the table.
  3. Click Show the fields of this pipe or table. The add-on asks Pipefy (one request, nothing is created) and lists the field ids, labels, types, required fields and options of the pipe start form (or of the table), the ids of the pipe labels and the ids of its phases. Use these ids below.
  4. Phase id (cards only, optional): the phase the card starts in. Empty: the first phase of the pipe.
  5. Title: text with merge tags, for example Request from {Name (First):1.3}. Empty: no title is sent.
  6. Pipefy fields: a table. On the left type the id of a Pipefy field; on the right choose a form field, or type text with merge tags. Empty values are not sent. Mapping Gravity Forms fields to Pipefy start form fields
  7. Due date field, Label ids and Assignee ids (optional): a date field of the form (year-month-day, with an optional time), and lists of ids separated by commas. Assignees must be members of the pipe or table.
  8. Follow the card (cards only): see below.
  9. Condition: conditional logic, as on any Gravity Forms feed. You can add several feeds to one form, for example one per pipe.

How values are sent

Form field or text What Pipefy receives
Text, e-mail, number, paragraph, name, address Text (a name or an address is joined with spaces). HTML is removed. A value is cut at 20,000 characters.
Checkboxes A list of the ticked choices (for checklist fields).
Multi select A list of the selected choices.
Date field The date as DD/MM/YYYY, the form Pipefy documents for date fields.
Product field The product name.
File upload The address of the file as text. Pipefy attachment fields need a file uploaded to Pipefy first, which this add-on does not do.
Typed text like ["A","B"] A list (for checklists, label ids, assignee ids or connected card ids).
Select, radio The choice value. For a Pipefy label field use the label id as the choice value.

Pipefy checks the values against the type of each field and answers with a message when one does not fit (a date that is not DD/MM/YYYY, an option that does not exist, a required field that is missing). The entry note shows Pipefy’s own words and no card is made.

What happens after a submission

The visitor never waits for Pipefy. The feed queues a background job for the entry. The job asks Pipefy for a token (or reuses the stored one), builds the request from your feed and sends it as one GraphQL request to api.pipefy.com. Pipefy answers with the card id and its phase.

  • Temporary problems are retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours when Pipefy asks to slow down (HTTP 429, a usage-limit answer) or when nothing could reach Pipefy (a DNS or connection failure before the request left). A longer wait asked by Pipefy is respected.
  • It never sends twice. A timeout, a connection reset, a server error (HTTP 5xx) or an answer without a card are “unsure”: the card may exist. The add-on does not retry; the note says “Look in Pipefy” and the entry list offers Send to Pipefy again if the card is missing.
  • Refusals are final with Pipefy’s own message and a hint (wrong pipe id, missing required field, a value that does not fit, no permission).
  • A card that was made is remembered for the entry, so a job that runs twice never makes a second card.

The entry page, notes, merge tags and notifications

Pipefy note and box on a Gravity Forms entry

  • Entry notes: the card id, title, pipe and phase with a link to the card (app.pipefy.com/open-cards/<id>), or the reason it failed.
  • Pipefy box on the entry page with the card, its title, its phase and a link.
  • Merge tags for notifications and confirmations: {pipefy_card_id}, {pipefy_card_url}, {pipefy_status} and {pipefy_phase}. Add _<feed id> (for example {pipefy_card_id_12}) to choose a feed when the form has several. A record has an id and no card address.
  • Notification events: “Pipefy: the card or record is created” and “Pipefy: the card or record failed”, each sent once after the result.
  • Bulk actions in the entry list: Send to Pipefy (skip finished) and Send to Pipefy again (creates another card), in groups of 5.

Follow the card

Switch on Follow the card in a feed that creates cards. After the first card of a pipe the add-on creates a webhook in Pipefy for card.move and card.done. When a card moves to another phase or is done, Pipefy calls your site and the add-on adds a note to the entry (“moved from Inbox to Doing by …”), stores the phase (for {pipefy_phase}) and runs the gpf_card_event action.

  • Pipefy does not sign webhook calls. The add-on asks Pipefy to send a secret in the header X-GravityExtra-Pipefy and refuses every call without the right secret (HTTP 403), also when no secret exists. The secret is created by the add-on, stored encrypted and shown in the webhook box of the settings page.
  • Only cards the add-on created are followed. Calls about other cards, other events, or the same event twice are ignored. A call larger than 64 KB is refused.
  • Pipefy must be able to reach your site: it needs a public https address. On a site that is not public the note says that no webhook was created. Use the gpf_hook_url filter if your public address differs from the site address.
  • If the add-on cannot create the webhook (no permission, or the answer got lost) the card is still made and a note says so. An answer that got lost is never repeated; check the webhooks of the pipe in Pipefy.

Developer hooks

// Change what is sent, or cancel (return false).
add_filter( 'gform_pipefy_card_pre_send', function ( $plan, $feed, $entry ) {
    // $plan: target (card|record), target_id, title, fields (list of array( field id, value text or list )),
    //        phase_id, label_ids, assignee_ids (text with commas), due_date (ISO 8601 text).
    $plan['title'] = 'Web request ' . $entry['id'];
    $plan['fields'][] = array( 'company', 'Added by code' );
    return $plan;
}, 10, 3 );

// After the card or record is made. $state: card, kind, title, phase, phase_id, target_id.
add_action( 'gform_pipefy_post_process', function ( $state, $entry, $feed, $form ) {}, 10, 4 );

// When no card could be made.
add_action( 'gpf_failed', function ( $entry, $feed, $form, $message ) {}, 10, 4 );

// When Pipefy reports a move or a done card ($event: action, card, from, to, on, by).
add_action( 'gpf_card_event', function ( $event, $entry_id, $feed_id ) {}, 10, 3 );

// Allow a token endpoint host besides pipefy.com, and set the webhook address.
add_filter( 'gpf_token_hosts', function ( $hosts ) { $hosts[] = 'sso.yourcompany.com'; return $hosts; } );
add_filter( 'gpf_hook_url', function ( $url ) { return 'https://www.yoursite.com/wp-json/gravityextra-pipefy/v1/hook'; } );

What it does not do

It creates cards and table records only. It does not upload attachments, move or update cards, create connected or child cards, look up records in tables, or send e-mails through Pipefy. File upload fields are sent as the address of the file, as text.

Troubleshooting

Message in the entry note What to do
Pipefy refused the service account Check the client id, the client secret and the token endpoint on the service account page, and that the service account still exists. Save the settings again.
The token endpoint is missing or is not an https address of a pipefy.com host Copy the token endpoint from the service account page.
Pipe not found / RESOURCE_NOT_FOUND Check the pipe or table id, the phase id and the field ids (use “Show the fields”).
Permission denied / PERMISSION_DENIED Give the service account a role in the pipe or table that may create cards or records.
Required field is missing / RECORD_INVALID Map every required field of the pipe start form.
Invalid input / INVALID_INPUT A value does not fit its field. Check the type in the field list (date, e-mail, options, label ids).
The monthly cap … is reached Raise the cap, or send the entry again next month.
It was not repeated, to avoid a second card Open the pipe in Pipefy. If the card is there, nothing to do. If not, use “Send to Pipefy again”.

Updating from version 1.0

Install the new zip over the old plugin once (version 1.0 had no updater), then activate your licence key under Forms, Settings, Pipefy and save a service account. The personal access token typed in version 1.0 is removed. Version 1.0 never sent a card to Pipefy, so feeds from it have no pipe id: open each feed, type the pipe id and map the fields. Until then the feed adds a note and sends nothing.

Frequently asked questions

Can I send to several pipes?

Yes. Add one feed per pipe and give each feed its own conditional logic.

Does it need a Pipefy partner agreement or approval?

No. You create the service account in your own organization and use your own credentials.

Can it attach uploaded files?

No. Pipefy attachments need a file uploaded to Pipefy first. The address of the uploaded file can be sent into a text field.

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