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

Gravity Forms Startquestion Integration Add-on

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. What you need
  2. Step 1: Get your StartQuestion API keys
  3. Step 2: Save the keys (Forms, Settings, StartQuestion)
  4. Step 3: Create a feed (Form, Settings, StartQuestion)
  5. What happens when someone submits the form
  6. Merge tags and notifications
  7. Retries and safety
  8. Entry list actions
  9. For developers
  10. Updating from version 1.0.1
  11. What the add-on does not do
  12. Troubleshooting
  13. Privacy

The Gravity Forms StartQuestion Add-On adds the people who fill in a Gravity Forms form to a survey in your StartQuestion account and, if you choose, e-mails them the survey invitation. For each matching entry a background job creates the contact (the e-mail address and up to 15 labels), adds it to the survey as a respondent, and queues the invitation e-mail from one of the invitation templates of your own StartQuestion account. It connects with the API keys of your own StartQuestion account, so everything happens in your account and nothing passes through a GravityExtra server.

The add-on sends people to a survey. It does not send answers into StartQuestion: the StartQuestion API has no call that records a survey answer, so scores, NPS ratings and open answers can only be given by the respondent in the survey itself.

What you need

  • WordPress 5.8 or newer, PHP 7.4 or newer, Gravity Forms 2.5 or newer.
  • A StartQuestion account on a plan that includes the API. StartQuestion’s price list shows the API on the Team and Enterprise plans; the add-on cannot use the API on a smaller plan (StartQuestion then answers that the plan does not allow it, and the add-on shows that message).
  • For invitations: a survey that is published and gives each respondent a personal link, and at least one invitation e-mail template in your StartQuestion account.
  • A Gravity Extra licence key (Forms, Settings, StartQuestion).

Step 1: Get your StartQuestion API keys

  1. Sign in to your StartQuestion account.
  2. Open Account, Settings, Integrations, StartQuestion API (v2). It shows a Client ID and a Client Secret.
  3. Keep them private: they open your account’s API. StartQuestion’s terms ask you not to hand your login to third parties; the add-on stores the keys on your own site, encrypted.

Step 2: Save the keys (Forms, Settings, StartQuestion)

StartQuestion API credentials settings in Gravity Forms

  1. Activate your licence key.
  2. Paste the Client ID and the Client Secret and click Save Settings. Both are stored encrypted with your site’s security keys and are never shown again. Leave the boxes empty on later saves to keep them, type new ones to replace them, or tick Remove the stored Client ID, Client Secret and access token when saving. If you change the WordPress security keys (AUTH_KEY, SECURE_AUTH_KEY and their salts), enter the keys again.
  3. Click Check the connection. The add-on asks StartQuestion for an access token and reads your list of surveys, and tells you how many it found. It creates nothing. The access token lasts an hour; the add-on keeps it (encrypted), asks for a new one only when it ended, and never asks from two processes at once, because StartQuestion limits how many new tokens an account may ask for per hour.
Setting What it does
Client ID, Client Secret The API keys of your StartQuestion account (one word each, no spaces).
Daily cap of respondents Stops adding respondents for the rest of the day (UTC) once this many were added by all feeds. Empty or 0: no cap.

If StartQuestion refuses the keys, the settings page says so, jobs that arrive meanwhile get a note and make no request, and saving the right keys works again at once.

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

StartQuestion feed: survey and e-mail mapping

  1. Give the feed a name.
  2. Choose the Survey. The list comes from your StartQuestion account; if it cannot be read, type the number of the survey (digits only; it is in the address of the survey in your account).
  3. In Respondent, map the form field that holds the e-mail address.
  4. In Labels (optional), fill the labels of the contact. StartQuestion contacts have up to 15 labels (Label 1 to Label 15, named as you defined them in your account: first name, company and so on). Each row picks a label and a form field, or a typed text with merge tags. StartQuestion feed: labels, invitation and conditional logic A typed label (for example label3 or just 3) is saved by Gravity Forms as gf_custom with the text in custom_key, and a typed value as gf_custom with the text in custom_value; the add-on reads both.
  5. Choose Existing respondents:
    • Reuse a respondent with the same e-mail (recommended): when the survey already has a respondent with that exact e-mail address, that respondent is used: nobody is added twice, and a respondent who was already invited (or whose invitation waits to be mailed) is not invited again; the note says so.
    • Always add a new respondent: a new contact and respondent are made every time.
  6. Choose the Invitation:
    • Only add the respondent to the survey: nothing is e-mailed. The personal link of the respondent is kept in the entry note, the entry box and the merge tag {startquestion_survey_link}, so you can send it yourself (for example in a Gravity Forms confirmation e-mail).
    • Add the respondent and send the invitation e-mail: choose the Invitation e-mail template (the list comes from your account, or type its number) and optionally Send the invitation after a number of minutes (0 to 10080). StartQuestion sends the e-mail with that template from the mail settings of your account.
  7. Use Condition to add the respondent only for some entries, for example only when a consent box is ticked. A form can have several feeds (for example one per survey).

What happens when someone submits the form

  1. The entry is saved and the visitor sees the confirmation at once. The add-on only queues a background job; it never makes the visitor wait for StartQuestion and an error never reaches the visitor.
  2. The job checks the feed and the entry (a missing survey, a missing template, or an e-mail address that is not valid is refused before anything is sent, with a note on the entry).
  3. It looks for the respondent in the survey (when “Reuse” is chosen), otherwise creates the contact, adds it to the survey and, if the feed says so, queues the invitation. It then reads the respondent back to keep the personal token and link.
  4. The entry gets a note with the respondent, the survey, the mailing and the personal link. The entry page has a StartQuestion box with the same.

StartQuestion box on a Gravity Forms entry

Merge tags and notifications

Merge tag Value
{startquestion_respondent_id} The respondent id in StartQuestion
{startquestion_respondent_token} The personal token of the respondent (when StartQuestion gave one)
{startquestion_survey_link} The personal survey link of the respondent (surveys with a personal link for each respondent)
{startquestion_contact_id} The contact id made for the entry (empty when an existing respondent was reused)
{startquestion_mailing_id} The id of the invitation mailing
{startquestion_status} ok, fail, retrying, queued or sending

Add _<feed id> to a tag to read a particular feed (for example {startquestion_respondent_id_12}); without it the newest result of the entry is used. The tags are empty until the job has finished. Two notification events are offered on forms that have a feed: StartQuestion: the respondent is added and StartQuestion: the respondent failed; each is sent once, after the result.

Retries and safety

  • Temporary problems (StartQuestion unreachable, HTTP 5xx or 408 on a read, 429, a token that could not be had now) are retried in the background after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours (6 attempts); a longer Retry-After is respected.
  • Never sent twice after it left: a request that creates a contact, a respondent or an invitation e-mail is only repeated when nothing can have reached StartQuestion (a name that could not be resolved, a refused connection) or when StartQuestion said “too many requests”. After a timeout, a connection reset, any server error (5xx), or a success answer that is not the record, the add-on does not repeat the request: it cannot know whether the record or the e-mail exists. The note says to look in StartQuestion, and Send to StartQuestion again in the entry list tries again on purpose. “Skip finished” never redoes such an entry. After an unsure try, “again” with “Reuse” finds the respondent that was made, and a respondent who was already invited gets no second invitation.
  • Refusals are final and shown with the reason: an unknown survey or template (404), a resource of another account (401), a survey that is not published or has no personal links (400), a plan without API access (402), the invitation limit of the account used up (403).
  • One job per entry and feed at a time; a finished entry is never added again by a repeated job.
  • The Client ID, Client Secret and access token are stored encrypted, never shown, never put in a note or a log, and only sent to auth.startquestion.com and www.startquestion.com.

The add-on has no webhook address: it never waits for a call from StartQuestion, so there is no incoming request to protect.

Entry list actions

  • Send to StartQuestion (skip finished) queues entries that were not added yet.
  • Send to StartQuestion again (adds again) runs the chosen entries again, in groups of 5 (with “Reuse”, a respondent already in the survey is found, not duplicated).

For developers

Hook Use
gform_startquestion_respondent (filter) Receives array( 'survey_id' => ..., 'contact' => array( 'email' => ..., 'label1' => ... ), 'invite' => bool, 'template_id' => ..., 'delay' => minutes ), the feed and the entry before anything is sent. Return the array, or something that is not an array to cancel (the entry gets a note).
gsq_respondent_added (action) Fires after the respondent is in StartQuestion: the result (survey, contact, respondent, token, link, mailing, receivers), entry, feed, form.
gsq_failed (action) Fires when no respondent could be added or the invitation failed: entry, feed, form, message.

Updating from version 1.0.1

Version 1.0.1 never reached StartQuestion: it posted to an address that does not exist, with an “API key” that StartQuestion does not have. Install this version over the old plugin (same folder and file). Your licence key and your feeds are kept. The API key typed in 1.0.1 is removed (a notice on the settings page says so). Old feeds have no survey and no e-mail field, so their jobs stop with a note until you open each feed and choose them. The old “Submit Response” module is gone: StartQuestion cannot receive answers through its API.

What the add-on does not do

  • It does not send survey answers, scores or NPS ratings into StartQuestion, and it does not read results back.
  • It does not create or change surveys, questions or invitation templates, send reminders, unsubscribe addresses, or change an existing contact.
  • It does not use StartQuestion’s webhooks, its Zapier connection or its prefilled-answer links.

Troubleshooting

Entry note or message What to do
StartQuestion is not connected Save the Client ID and Client Secret under Forms, Settings, StartQuestion.
StartQuestion refused the Client ID and Client Secret Copy them again from Account, Settings, Integrations, StartQuestion API (v2) and save them.
The plan of this account does not allow this (402) The API is part of the Team and Enterprise plans.
… refused the request as invalid … published and use a personal link Publish the survey and give each respondent a personal link, or choose “Only add the respondent to the survey”.
… could not find the survey, contact or template Edit the feed and choose a survey and a template of this account.
… belongs to the same account The survey or the template belongs to another StartQuestion account.
The limit of invitations of the account may be used up (403) Check the invitation allowance of your StartQuestion plan.
StartQuestion reported 0 recipients for the invitation The address may have asked not to be invited, or the survey has no personal links.
… may or may not have been created … not repeated Look in StartQuestion. If the respondent or the e-mail is missing, use “Send to StartQuestion again”.
The daily cap … is reached Raise the cap, or use “Send to StartQuestion again” tomorrow.

Privacy

When a feed is active, the e-mail address and the label values (for example a name) of a submitted form are sent to StartQuestion (www.startquestion.com) to add the person to a survey of your StartQuestion account and, if the feed says so, to e-mail an invitation. StartQuestion processes the data under its own terms; those terms ask for a written data processing agreement before you load other people’s personal data into your account, and you need a legal basis (for example consent, which a feed condition can check) for inviting someone. The add-on adds this to the WordPress privacy policy guide.

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