Zapier
Updated
On this page
The Zapier integration sends each new survey response to Zapier, and your Zap passes it on to another app: adds a row to a spreadsheet, posts a message in Slack or creates a contact in a CRM.
Before you start
- You need a Zapier account. You can create it during the setup.
- Set up the Zap from an account that has access to the survey's folder.
- In someone else's workspace, your role must allow integrations.
Setting up a Zap
- Open the survey and go to the Integrations tab.
- Click Zapier in the list. Zapier's list of apps you can connect to SurveyNinja opens.
- Choose an app. Zapier opens in the same browser tab.
- Sign in to Zapier or create an account.
- When Zapier asks to connect SurveyNinja, sign in to your SurveyNinja account in the window that opens and click Allow access.
- In the trigger settings, choose the survey.
- Test the trigger: Zapier loads the latest completed response as sample data. Then set up the action, map the survey answers to the fields of the other app and publish the Zap.
When the Zap is on, the Zapier integration turns on in the survey by itself, and each new completed response goes to Zapier.
Starting from Zapier
SurveyNinja is also in Zapier's app directory, under Forms & Surveys. If you already work in Zapier:
- Create a Zap and choose SurveyNinja as the trigger app and New Response as the event.
- Connect your SurveyNinja account: sign in to SurveyNinja in the window that opens and click Allow access.
- Choose the survey, test the trigger, set up the action and publish the Zap.
The result is the same as when you start from the survey: the Zapier integration turns on in the survey, and each new completed response goes to Zapier.
What data Zapier receives
For each response, Zapier gets:
- the answer to every question as a separate field named after the question (if two questions have the same title, the second one gets a number);
- all answers in one text field, all_responses;
- the survey ID, name and link: survey_id, name, link;
- the date and time SurveyNinja sent the response, send_at, in ISO 8601 format with the time zone offset;
- the promo code given to the respondent, promo_code, if the survey uses promo codes;
- the hidden variables of the response, extra_params, named in lowercase. Empty values are skipped;
- the response ID, answer_id, and is_complete, which is always true because only completed responses are sent.
In the sample data from the trigger test, promo_code is PROMOCODE123, each hidden variable has the value example, and answer_id is 0.
Use these fields in the action step, for example to put the answer to "Email" into the contact's email field in your CRM. To send only some responses, add a Filter step in Zapier, for example "continue only if the rating is less than 4".
Turning off the integration
Turn off or delete the Zap in Zapier. When no Zaps are connected to the survey anymore, the Zapier integration in the survey turns off by itself.
Limits
- Only completed responses are sent. Incomplete responses don't go to Zapier.
- The respondent's IP address, country and browser are not sent to Zapier.
If something doesn't work
- Responses don't reach Zapier. The Zap is off or not published. Check it in Zapier. The Zap history in Zapier shows each run and its errors.
- The Zap is on, but responses aren't sent. The workspace is on the Free plan, or your role doesn't allow integrations. In both cases the Zap is created, but responses don't go to it. Upgrade the plan or ask the workspace owner to change your role, then turn the Zap off and on again in Zapier.
- The trigger test shows only the survey fields, without answers. The survey has no completed responses yet. Submit a test response and test the trigger again.
- The survey isn't in Zapier's list. Zapier shows the surveys in the folders you have access to. Ask the workspace owner to give you access to the survey's folder.
- Responses stopped reaching your Zap. You lost access to the survey, for example you were removed from the workspace. Ask the owner to give you access back or to set up the Zap.
Alternative: webhooks
If you need scores or the raw response data in JSON, use webhooks (Basic plan and higher) with the Webhooks by Zapier app and the Catch Hook trigger (needs a paid Zapier plan). Paste the address from Zapier into the webhook settings in SurveyNinja.
Chi-Square Test: Formula, Worked Example and How to Read the Result