Skip to main content

Single Followup Question

To add a single followup question for an open-end, follow these steps: First, initialize the API request data in an <exec> block. This sets up the headers and prepares the request body:
Next, make the API request using the <logic> block. This sends the request to Aftercare’s API and waits for the response:
After receiving the response, process it in another <exec> block. This handles both successful responses and errors:
Now, display the followup question to the respondent using a <textarea> element:
Finally, store the followup question in a variable for data export and reporting:

Multiple Followup Questions

To implement multiple followup questions that continue until the AI determines no more questions are needed, follow these steps: First, initialize the API request data and tracking variables. This sets up the headers and prepares the variables we’ll need to track multiple followups:
Next, set up the loop structure that will handle multiple followups. This includes the loop label and the initial check for maximum followups:
Now, prepare the API request. For the first followup, we use the initial question and response. For subsequent followups, we use the previous followup question and response:
Make the API call to get the followup question:
Process the API response and check if we should continue with followups:
Display the followup question to the respondent and get their response:
Check if we should continue with more followups:
Finally, set up the end of the followup section and store all responses for reporting:

Data Quality Evaluation

To evaluate the quality of responses using Aftercare’s Data Quality API, follow these steps: First, initialize the API request data in an <exec> block. This sets up the headers and prepares the request body:
Next, make the API request using the <logic> block. This sends the request to Aftercare’s Data Quality API and waits for the response:
After receiving the response, process it in another <exec> block. This handles both successful responses and errors:
You can then either:
  1. Store these values in your survey data for analysis
  2. Access the Aftercare platform to view and download the quality evaluations
Need help? Contact our support team