Test an integration
Test every integration before it sends surveys to customers. A test shows that your system sends the right people to the right campaign with the right data, and that the survey is sent as expected. This page describes the method that works for all integrations. Each integration's setup guide only describes how to trigger a test event in that system.
At a glance
- You need: the integration set up, a campaign in app.nps.today, and permission to edit campaigns
- Result: a test campaign member on the campaign, with the right data and the expected status
Choose how to test
| Test with | What happens | Use it when |
|---|---|---|
| Your own contact details (your email address or phone number) | The survey is sent to you. You can see the email or SMS and answer it. | You can trigger the event in your system with yourself as the customer, for example a test ticket or a test call from your own phone. |
| Real customer data, with send-outs blocked | Customers are added to the campaign and stay on the Scheduled tab. No survey is sent. | You can only test with real events, for example live calls in a contact center. |
To block send-outs, turn on Block campaign send outs on the campaign. See Block all send-outs (testing).
Blocked surveys are not sent later
Campaign members added while send-outs are blocked do not get a survey when you turn the setting off again.
Steps
- Prepare the campaign. Either use your own contact details in the test, or turn on Block campaign send outs.
- Trigger a test event in your system. The setup guide for your integration describes how, in its Verify it worked section.
- In app.nps.today, click Campaigns in the left menu and open the campaign.
-
Find the test campaign member on the campaign tabs:
- Delivered: the survey was sent.
- Scheduled: the campaign member is waiting to be sent, for example because of a send-out delay. With Block campaign send outs turned on, test campaign members always end up here.
- Failed: the survey could not be sent.
If the campaign member is not on any tab, nps.today did not receive the event. See If nothing arrives.
-
Click the campaign member to open the Campaign member details page, and check:
- Respondent: the name, email address or phone number are correct.
- Responsible: the right employee is set, if your integration sends one.
- Custom Data: the extra data from your system is there, if your integration sends any.
- History: the status of the survey. See Read the status.
- If you tested with your own contact details, answer the survey and check that the response appears on the Responses tab.
Read the status
The History section shows a status code for each step. These are the most common reasons a test survey is not sent:
| Status | Short name | What to check |
|---|---|---|
| 4001 | Duplicate | The same respondent is already on the campaign, and duplicates are not allowed. Use another test contact, or see Allow duplicates. |
| 4002 | Throttled | The respondent got another survey recently. See Throttling. |
| 4003 | CallDurationTooShort | The call was shorter than the minimum call duration. See IVR set-up. |
| 4004 | InvalidPhone | The phone number is not in the E.164 format, for example +4512345678. |
| 4005 | InvalidEmail | The email address is not valid. |
| 4006 | AlreadyUnsubscribed | The respondent has unsubscribed. Use another test contact. |
| 4007 | CampaignEnded | The campaign is closed. |
| 4008 | DuplicatedDetected | The same respondent got a survey less than 30 seconds ago. |
For all codes, see Status codes.
If nothing arrives
If no campaign member is added, the event did not reach nps.today, or the request was rejected:
- API, webhook or automation platform: check the response in your system's log or run history. An HTTP error such as
401or400explains what is wrong. See Authentication and errors. - Campaign ID: check that your system uses the right campaign ID. See Find campaign IDs.
- API key: check that the key still exists and is active under Account > Authentication > Api keys. See Create an API key.
- Contact center integrations: check the IVR mapping and click Test on it. See IVR set-up. Integrations that read call data from Meridix can take up to 20 minutes. See Meridix-based integrations.
Go live
When the test works:
- If you blocked send-outs, turn Block campaign send outs off again.
- Delete your test responses and campaign members, so they do not count in your results. See Delete a response or campaign member.
- Check the campaign's sending rules, for example send-out delay, reminders and throttling.
- Watch the first live campaign members on the Delivered and Failed tabs.