AskNicely

App · 11 actions

Send NPS surveys, manage contacts, and read responses and scores.

Actions

ActionWhat it does
Add contacts in bulkAdd or update many contacts at once.
Add or update contactAdd a contact to AskNicely, or update the one with this email, without sending a survey.
Deactivate contactMake a contact inactive so they get no more surveys.
Erase contacts' personal dataRemove all personal data of these contacts (a GDPR erasure) and block them from being added or surveyed again.
Get contactLook up a contact by email, ID or another field.
Get daily statisticsGet sent, opened and answered counts and the NPS, day by day.
Get NPSGet your Net Promoter Score over the last days.
Get survey statisticsCount the surveys sent, delivered, opened and answered over the last days, with promoters, passives and detractors.
List responsesList survey responses with each contact's answer, comment and dates.
List unsubscribed contactsList the contacts who unsubscribed from AskNicely surveys.
Send surveyAdd or update a contact and send them a survey, if your contact rules allow it.

Add contacts in bulk

Add or update many contacts at once. AskNicely processes them shortly after.

Inputs

ContactscontactslistRequired
The contacts, each with an email and optionally a name, a segment and custom fields ending in _c.
Send surveyssend_surveystrue/false
Also send a survey to each contact your contact rules allow.Default: false.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "success": true
  }
}

Add or update contact

Add a contact to AskNicely, or update the one with this email, without sending a survey.

Inputs

EmailemailtextRequired
The contact's email address.
Namenametext
The contact's full name. Leave empty to give a first and last name instead.
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Segmentsegmenttext
The segment to put the contact in, such as VIP Customer.
Custom fieldscustom_fieldsobject
Custom data for the contact, as names and values, such as city: Portland. Each name is sent with AskNicely's _c ending.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "result": [
      {
        "email": "example",
        "id": "example",
        "msg": "example",
        "survey_sent": true
      }
    ],
    "success": true,
    "surveys_sent": 1
  }
}

Deactivate contact

Make a contact inactive so they get no more surveys. Adding them again reactivates them.

Inputs

Email or valuevaluetextRequired
What to look the contact up by: their email address, or the value of the field chosen in Match field.
Match fieldmatch_fieldtext
The contact field to match: email, id, or a custom field such as branch_location_c.Default: email.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "data": {
      "active": "example",
      "created": "example",
      "email": "example",
      "id": "example",
      "importedattime": "example",
      "lastemailed": "example",
      "name": "example",
      "scheduled": "example",
      "segment": "example",
      "source": "example",
      "unsubscribetime": "example"
    },
    "msg": "example",
    "success": true
  }
}

Erase contacts' personal data

Remove all personal data of these contacts (a GDPR erasure) and block them from being added or surveyed again. This can't be undone.

Inputs

EmailsemailslistRequired
The email addresses of the contacts to erase.
Notify account ownernotify_account_ownertrue/false
Email the account's main user that the contacts were erased.Default: true.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "msg": "example",
    "success": true
  }
}

Get contact

Look up a contact by email, ID or another field.

Inputs

Email or valuevaluetextRequired
What to look the contact up by: their email address, or the value of the field chosen in Match field.
Match fieldmatch_fieldtext
The contact field to match: email, id, or a custom field such as branch_location_c.Default: email.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "data": {
      "active": "example",
      "created": "example",
      "email": "example",
      "id": "example",
      "importedattime": "example",
      "lastemailed": "example",
      "name": "example",
      "scheduled": "example",
      "segment": "example",
      "source": "example",
      "unsubscribetime": "example"
    },
    "success": true
  }
}

Get daily statistics

Get sent, opened and answered counts and the NPS, day by day.

Inputs

Daydatedate
Only this day. Leave empty for every day.
Segmentsegmenttext
Only contacts in this segment.
Sent aftersent_afterdate and time
Only surveys sent at or after this time.
Sent beforesent_beforedate and time
Only surveys sent at or before this time.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "data": [
      {
        "comment_length": "example",
        "comment_responded_percent": "example",
        "csat": "example",
        "day": "example",
        "delivered": "example",
        "detractors": "example",
        "fivestar": "example",
        "month": "example",
        "nps": "example",
        "opened": "example",
        "passives": "example",
        "promoters": "example",
        "responded": "example",
        "sent": "example",
        "surveys_opened_responded_percent": "example",
        "surveys_responded_percent": "example",
        "weekday": "example",
        "year": "example"
      }
    ],
    "success": true
  }
}

Get NPS

Get your Net Promoter Score over the last days.

Inputs

Daysdaysnumber
How many days back from today to count.At least 1. Default: 30.
Custom field filtersfiltersobject
Count only contacts whose custom data matches, as names and values, such as country: Canada. Every pair must match.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "NPS": "example"
  }
}

Get survey statistics

Count the surveys sent, delivered, opened and answered over the last days, with promoters, passives and detractors.

Inputs

Daysdaysnumber
How many days back from today to count.At least 1. Default: 30.
Question typequestion_typetext
Count only surveys that lead with this kind of question.One of: nps, csat, fivestar (5 star).
Custom field filtersfiltersobject
Count only contacts whose custom data matches, as names and values, such as country: Canada. Every pair must match.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "delivered": 1,
    "detractors": 1,
    "opened": 1,
    "passives": 1,
    "promoters": 1,
    "responded": 1,
    "responserate": "example",
    "sent": 1
  }
}

List responses

List survey responses with each contact's answer, comment and dates.

Inputs

Sincesincedate and time
Only responses after this time. Leave empty for all.
Untiluntildate and time
Only responses before this time. Leave empty for up to now.
Includeincludetext
Which surveys to list.One of: answered (Answered surveys), raw (Every survey sent), published (Published testimonials). Default: answered.
Sort bysort_bytext
The date Since, Until and the order go by.One of: sent (Date sent), responded (Date answered). Default: sent.
Orderordertext
The order of the responses.One of: desc (Newest first), asc (Oldest first). Default: desc.
Pagepagenumber
The page to read, starting at 1.At least 1. Default: 1.
Page sizepage_sizenumber
Responses per page, up to 999.From 1 to 999. Default: 100.
Include case closed timeinclude_case_statustrue/false
Also return when each response's case was closed.Default: false.
Custom field filtersfiltersobject
Count only contacts whose custom data matches, as names and values, such as country: Canada. Every pair must match.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "data": [
      {
        "answer": "example",
        "answerlabel": "example",
        "case_closed_time": "example",
        "comment": "example",
        "contact_id": "example",
        "created": "example",
        "email": "example",
        "lastemailed": "example",
        "name": "example",
        "note": "example",
        "opened": "example",
        "person_id": "example",
        "published": "example",
        "publishedname": "example",
        "question_type": "example",
        "responded": "example",
        "response_id": "example",
        "segment": "example",
        "sent": "example",
        "status": "example",
        "survey_template": "example"
      }
    ],
    "end_time": "example",
    "pagenumber": "example",
    "pagesize": "example",
    "since_time": "example",
    "success": true,
    "total": "example",
    "totalpages": "example"
  }
}

List unsubscribed contacts

List the contacts who unsubscribed from AskNicely surveys.

Inputs

Pagepagenumber
The page to read, starting at 1.At least 1. Default: 1.
Page sizepage_sizenumber
Contacts per page.From 1 to 1000. Default: 1000.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "data": [
      {
        "email": "example",
        "id": "example",
        "unsubscribetime": "example"
      }
    ],
    "success": true
  }
}

Send survey

Add or update a contact and send them a survey, if your contact rules allow it.

Inputs

EmailemailtextRequired
The contact's email address.
Namenametext
The contact's full name. Leave empty to give a first and last name instead.
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Segmentsegmenttext
The segment to put the contact in, such as VIP Customer.
Custom fieldscustom_fieldsobject
Custom data for the contact, as names and values, such as city: Portland. Each name is sent with AskNicely's _c ending.
Delay (minutes)delay_minutesnumber
Wait this many minutes before sending. A text survey accepts 15 to 50400 (35 days).At least 0.
Ignore contact rulesignore_contact_rulestrue/false
Send even if the contact was surveyed recently. AskNicely advises this for testing only.Default: false.
Deactivate after sendingdeactivate_aftertrue/false
Deactivate the contact once the survey is sent, so the daily scheduler skips them. Needs Ignore contact rules on.Default: false.

Outputs

dataobject
The response from AskNicely.
Example output
{
  "data": {
    "result": [
      {
        "email": "example",
        "id": "example",
        "msg": "example",
        "survey_sent": true
      }
    ],
    "success": true,
    "surveys_sent": 1
  }
}

On this page